-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (78 loc) · 2.34 KB
/
pyproject.toml
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
81
82
83
84
85
86
87
88
89
90
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "when"
dynamic = ["version"]
description = "Calculate and convert times across time zones and cities of significant population"
license = { file = "LICENSE" }
readme = { file = "README.md", content-type = "text/markdown" }
keywords = ["time", "timezone", "timezones"]
authors = [
{ name = "David Krauth", email = "[email protected]" },
]
requires-python = ">=3.10"
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
]
dependencies = [
"python-dateutil>=2.8.0",
"toml>=0.10.2",
"requests",
"fullmoon",
]
[project.scripts]
when = "when.__main__:main"
[project.urls]
Homepage = "https://github.com/dakrauth/when"
[tool.setuptools]
package-dir = {"" = "src"}
packages = ["when", "when.db"]
[tool.setuptools.dynamic]
version = { attr = "when.__version__"}
[tool.ruff]
cache-dir = ".dev/ruff"
line-length = 100
indent-width = 4
[tool.ruff.lint]
ignore = ["E741"]
[tool.pytest.ini_options]
cache_dir = "./.dev/pytest_cache"
[tool.coverage.run]
branch = true
source = [ "when", "tests" ]
data_file = "./.dev/.coverage"
[tool.coverage.html]
directory = "./.dev/coverage"
title = "When Coverage"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
ignore_errors = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:"
]