| 1 |
[build-system] |
| 2 |
requires = ["hatchling>=1.27.0", "hatch-vcs"] |
| 3 |
build-backend = "hatchling.build" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "recurring-ical-events" |
| 7 |
license = "GPL-3.0-or-later" |
| 8 |
license-files = ["LICENSE"] |
| 9 |
keywords = ["icalendar", "calendar", "ics", "rfc5545", "scheduling", "events", "todo", "journal", "alarm"] |
| 10 |
dynamic = ["urls", "version"] |
| 11 |
authors = [ |
| 12 |
{ name="Nicco Kunzmann", email="[email protected]" }, |
| 13 |
] |
| 14 |
maintainers = [ |
| 15 |
{ name="Nicco Kunzmann", email="[email protected]" }, |
| 16 |
] |
| 17 |
description = "Calculate recurrence times of events, todos, alarms and journals based on icalendar RFC5545." |
| 18 |
readme = "README.rst" |
| 19 |
requires-python = ">=3.8" |
| 20 |
|
| 21 |
# see https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 22 |
classifiers = [ |
| 23 |
"Development Status :: 5 - Production/Stable", |
| 24 |
"Intended Audience :: Developers", |
| 25 |
"Operating System :: OS Independent", |
| 26 |
"Topic :: Office/Business :: Scheduling", |
| 27 |
"Intended Audience :: Developers", |
| 28 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 29 |
"Topic :: Utilities", |
| 30 |
"Natural Language :: English", |
| 31 |
"Programming Language :: Python :: 3", |
| 32 |
"Programming Language :: Python :: 3 :: Only", |
| 33 |
"Programming Language :: Python :: 3.8", |
| 34 |
"Programming Language :: Python :: 3.9", |
| 35 |
"Programming Language :: Python :: 3.10", |
| 36 |
"Programming Language :: Python :: 3.11", |
| 37 |
"Programming Language :: Python :: 3.12", |
| 38 |
"Programming Language :: Python :: 3.13", |
| 39 |
] |
| 40 |
|
| 41 |
# install requirements depending on python version |
| 42 |
# see https://www.python.org/dev/peps/pep-0508/#environment-markers |
| 43 |
dependencies = [ |
| 44 |
'icalendar >= 6.1.0, < 7.0.0', |
| 45 |
'python-dateutil >= 2.8.1, < 3.0.0', |
| 46 |
'x-wr-timezone >= 1.0.0, < 3.0.0; python_version >= "3.9"', |
| 47 |
'x-wr-timezone == 0.*; python_version <= "3.8"', |
| 48 |
'backports.zoneinfo; python_version == "3.7" or python_version == "3.8"', |
| 49 |
'tzdata', |
| 50 |
'typing_extensions; python_version <= "3.9"', |
| 51 |
] |
| 52 |
|
| 53 |
[project.optional-dependencies] |
| 54 |
test = [ |
| 55 |
'pytest', |
| 56 |
'pytest-cov', |
| 57 |
'restructuredtext-lint', |
| 58 |
'pygments', |
| 59 |
'pytz >= 2023.3', |
| 60 |
] |
| 61 |
|
| 62 |
[tool.hatch.metadata.hooks.vcs.urls] |
| 63 |
#[project.urls] |
| 64 |
Homepage = "https://recurring-ical-events.readthedocs.io/" |
| 65 |
Repository = "https://github.com/niccokunzmann/python-recurring-ical-events" |
| 66 |
"Source Archive" = "https://github.com/niccokunzmann/python-recurring-ical-events/archive/{commit_hash}.zip" |
| 67 |
Issues = "https://github.com/niccokunzmann/python-recurring-ical-events/issues" |
| 68 |
Documentation = "https://github.com/niccokunzmann/python-recurring-ical-events" |
| 69 |
Changelog = "https://github.com/niccokunzmann/python-recurring-ical-events?tab=readme-ov-file#changelog" |
| 70 |
"Fund with GitHub Sponsors" = "https://github.com/sponsors/niccokunzmann" |
| 71 |
"Fund with Polar" = "https://polar.sh/niccokunzmann/python-recurring-ical-events" |
| 72 |
"Fund with Open Collective" = "https://opencollective.com/open-web-calendar" |
| 73 |
"Fund with Tidelift" = "https://tidelift.com/funding/github/pypi/recurring-ical-events" |
| 74 |
|
| 75 |
[tool.hatch.version] |
| 76 |
source = "vcs" |
| 77 |
|
| 78 |
[tool.hatch.version.raw-options] |
| 79 |
# see https://github.com/ofek/hatch-vcs/issues/43#issuecomment-1553065222 |
| 80 |
local_scheme = "no-local-version" |
| 81 |
|
| 82 |
[tool.hatch.build.hooks.vcs] |
| 83 |
version-file = "recurring_ical_events/_version.py" |
| 84 |
|
| 85 |
[tool.hatch.metadata] |
| 86 |
allow-direct-references = true |
| 87 |
|
| 88 |
[tool.ruff] |
| 89 |
target-version = "py38" |
| 90 |
|
| 91 |
[tool.ruff.lint] |
| 92 |
select = ["ALL"] |
| 93 |
ignore = [ |
| 94 |
"ANN", # flake8-annotations |
| 95 |
"B020", # Loop control variable {name} overrides iterable it iterates |
| 96 |
"C401", # Unnecessary generator (rewrite as a set comprehension) |
| 97 |
"C901", # {name} is too complex ({complexity} > {max_complexity}) |
| 98 |
"COM812", # Trailing comma missing |
| 99 |
"D1", # Missing docstring |
| 100 |
"D2", # docstrings stuffs |
| 101 |
"D4", # docstrings stuffs |
| 102 |
"EM10", # Exception string usage |
| 103 |
"ERA001", # Found commented-out code |
| 104 |
"FBT002", # Boolean default positional argument in function definition |
| 105 |
"FIX", # TODO comments |
| 106 |
"ISC001", # Implicitly concatenated string literals on one line (to avoid with formatter) |
| 107 |
"N818", # Exception name {name} should be named with an Error suffix |
| 108 |
"PLR091", # Too many things (complexity, arguments, branches, etc...) |
| 109 |
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable |
| 110 |
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar |
| 111 |
"RUF015", # Prefer next({iterable}) over single element slice |
| 112 |
"S101", # Use of assert detected |
| 113 |
"TD", # TODO comments |
| 114 |
"TRY003", # Avoid specifying long messages outside the exception class |
| 115 |
"UP007", # Use | None instead of Optional |
| 116 |
] |
| 117 |
extend-safe-fixes = [ |
| 118 |
"PT006", # Wrong type passed to first argument of @pytest.mark.parametrize; expected {expected_string} |
| 119 |
] |
| 120 |
|
| 121 |
[tool.ruff.lint.per-file-ignores] |
| 122 |
"recurring_ical_events/test/*" = [ |
| 123 |
"B011", # Do not assert False (python -O removes these calls), raise AssertionError() |
| 124 |
"DTZ001", # datetime.datetime() called without a tzinfo argument |
| 125 |
"E501", # Indentation is not a multiple of {indent_size} |
| 126 |
"N802", # Function name {name} should be lowercase |
| 127 |
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception |
| 128 |
"PT012", # pytest.raises() block should contain a single simple statement |
| 129 |
"PT015", # Assertion always fails, replace with pytest.fail() |
| 130 |
"T201", # print found |
| 131 |
"N803", # ZoneInfo should be lowercase |
| 132 |
] |
| 133 |
"example.py" = [ |
| 134 |
"T201", # print found |
| 135 |
] |