-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (97 loc) · 2.56 KB
/
pyproject.toml
File metadata and controls
115 lines (97 loc) · 2.56 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "django-swingtime"
dynamic = ["version"]
description = "A Django calendaring application"
license = "MIT"
license-files = [
"LICENSE",
"AUTHORS.txt"
]
keywords = ["django", "calendar", "events"]
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
{ name = "David A Krauth", email = "dakrauth@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Office/Business :: Scheduling",
]
dependencies = [
"Django>=5.2,<6.1",
"python-dateutil>=2.8.2",
"django-vanilla-views"
]
[project.urls]
Homepage = "https://github.com/dakrauth/django-swingtime"
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-cov",
"pytest-django",
"responses",
]
dev = [
"flake8",
"ruff",
"build",
"twine",
"ipdb",
]
docs = [ "sphinx", "sphinx-rtd-theme" ]
[tool.setuptools.dynamic]
version = { attr = "swingtime.__init__.__version__"}
[tool.setuptools]
packages = ["swingtime", "swingtime.migrations"]
[tool.ruff]
cache-dir = "temp/ruff"
line-length = 100
indent-width = 4
[tool.pytest.ini_options]
pythonpath = "."
minversion = "6.0"
testpaths = [ ".", ]
filterwarnings = [
# "ignore::PendingDeprecationWarning",
"error",
"ignore:Swingtime view function",
]
DJANGO_SETTINGS_MODULE = "tests.settings"
django_find_project = false
addopts = "-rf"
[tool.coverage.run]
branch = true
source = [ "swingtime" ]
omit = [ "**/migrations/**", "swingtime/old_forms.py" ]
[tool.coverage.html]
directory = "build/coverage"
title = "Swingtime Coverage report"
[tool.coverage.report]
ignore_errors = true
# Regexes for lines to exclude from consideration
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__.:"
]