-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
80 lines (70 loc) · 1.8 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 = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "django-tos"
license = "BSD-3-Clause"
version = "1.1.0"
# Don't forget to update .github/workflows/django.yml when you update the
# minimum version of Python
requires-python = ">=3.9"
authors = [{name = "Frank Wiles", email = "frank@revsys.com"}]
description = "django-tos is a reusable Django application for setting Terms of Service."
readme = "README.rst"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Framework :: Django",
]
dependencies = [
"django>=4.2.26",
]
[dependency-groups]
dev = [
"coverage[toml]>=5.2.1",
]
[project.urls]
Homepage = "http://github.com/revsys/django-tos/"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages]
find = {namespaces = false}
[tool.coverage.run]
branch = true
omit = [
"tos/tests/*",
"tos_i18n/tests.py",
"*tests*",
"*migrations*",
"*management*",
"*urls*",
"*site-packages*",
"*src*",
"*manage*",
"*settings*",
".*venv*/",
"*venv*/",
]
[tool.coverage.report]
# 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",
"def __unicode__",
"def __repr__",
"if settings.DEBUG",
"raise NotImplementedError",
"from django\\.",
# 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 0:",
"if __name__ == .__main__.:",
]