-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (68 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (68 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "calendar-cli"
dynamic = ["version"]
description = "Simple command-line CalDav client, for adding and browsing calendar items, todo list items, etc."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "GPL-3.0-or-later" }
authors = [{ name = "Tobias Brox", email = "t-calendar-cli@tobixen.no" }]
maintainers = [{ name = "Tobias Brox", email = "t-calendar-cli@tobixen.no" }]
classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
]
dependencies = [
"icalendar",
"caldav>=0.12-dev0",
"pytz", # pytz is supposed to be obsoleted, but see https://github.com/collective/icalendar/issues/333
"pyyaml",
"tzlocal",
"Click",
"six",
"vobject",
]
[project.optional-dependencies]
dev = ["pytest>=8.0", "ruff>=0.15", "pre-commit>=4.0"]
[project.scripts]
calendar-cli = "calendar_cli.legacy:main"
[project.urls]
Repository = "https://github.com/tobixen/calendar-cli"
Issues = "https://github.com/tobixen/calendar-cli/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "calendar_cli/_version.py"
[tool.hatch.build]
# Never ship editor backups / autosave files even if they linger in the tree.
exclude = [
"*~",
"#*#",
".#*",
"*.orig",
"*.bak",
]
[tool.hatch.build.targets.wheel]
packages = ["calendar_cli"]
[tool.hatch.build.targets.sdist]
include = ["calendar_cli", "bin", "README.md", "LICENSE.TXT"]
[tool.ruff]
# calendar-cli is a deliberately "legacy / long term support" codebase, so we
# do not enforce stylistic rules (line length, etc.) that would force a large
# reformat. Ruff is scoped to catching genuine errors.
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["F", "E9", "W605"]
# F841 (assigned-but-never-used) flags some legacy local variables we don't
# want to rewrite blindly; revisit when the surrounding code is refactored.
ignore = ["F841"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]