forked from Nitrate/Nitrate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (138 loc) · 4.45 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (138 loc) · 4.45 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["setuptools", "wheel"]
[project]
name = "nitrate-tcms"
description = "A full-featured Test Case Management System"
readme = "README.rst"
authors = [
{name = "Nitrate Team"}
]
maintainers = [
{name = "Chenxiong Qi", email = "qcxhome@gmail.com"}
]
license = {text = "GPLv2+"}
keywords = ["test", "case", "plan", "run"]
requires-python = ">=3.10"
classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing"
]
dependencies = [
"beautifulsoup4==4.14.3",
"Django==4.2.30",
"django-contrib-comments==2.2.0",
"django-tinymce==3.5.0",
"django-uuslug==2.0.0",
"html2text==2025.4.15",
"odfpy==1.4.1",
"xmltodict==1.0.4",
"kobo==0.41.0",
]
dynamic = ["version"]
[project.optional-dependencies]
mysql = ["mysqlclient==2.2.8"]
pgsql = ["psycopg2==2.9.11"]
krbauth = ["kerberos==1.3.1"]
bugzilla = ["python-bugzilla==3.3.0"]
socialauth = ["social-auth-app-django==5.4.3"]
async = ["celery==5.6.3"]
docs = ["Sphinx >= 1.1.2", "sphinx_rtd_theme"]
mypy-check = [
# mypy check. Versions of these two packages have to be adjusted according
# to the version of Django in order to work together well.
"django-stubs==4.2.7",
"mypy>=1.7,<1.8",
]
devtools = [
"django-debug-toolbar",
"tox==4.52.1",
"tox-uv==1.35.2",
# Build tool to build sdist: python3 -m build
"build",
]
tests = [
"coverage[toml]==7.13.5",
"factory_boy==3.3.3",
"pytest==9.0.3",
"pytest-cov==7.1.0",
"pytest-django==4.12.0",
"sqlparse==0.5.5",
]
[project.urls]
Repository = "https://github.com/Nitrate/Nitrate"
Documentation = "https://nitrate.readthedocs.io/"
"Issue Tracker" = "https://github.com/Nitrate/Nitrate/issues"
"Source Code" = "https://github.com/Nitrate/Nitrate"
"Release Notes" = "https://nitrate.readthedocs.io/en/latest/releases/"
"Container Images" = "https://quay.io/organization/nitrate"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.dynamic]
version = {file = "VERSION.txt"}
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
namespaces = false
[tool.black]
line-length = 100
target-version = ['py310']
check = 1
diff = 1
[tool.isort]
line_length = 100
extend_skip = ["migrations"]
profile = "black"
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
ignore_missing_imports = 1
exclude = ["settings", "migrations"]
[tool.django-stubs]
django_settings_module = "tcms.settings.test"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tcms.settings.test"
python_files = "test_*.py"
addopts = "--cov=src/tcms/ --cov-report=term --cov-report=html --cov-report=xml"
# This magic value causes py.test does not collect arbitrary classes, like
# Nitrate's TestCase, TestPlan, and TestRun, that are wrongly treated as tests.
# This value lets py.test only collect classes that is derived from either
# django.test.TestCase or unittest.TestCase
# So, if anyone writes a test class with a name including this string, it is
# incorrect.
# Refer to http://doc.pytest.org/en/latest/customize.html#confval-python_classes
python_classes = "*xxxxxxxxx*"
# Reference: pytest-django document: managing_python_path.html#automatic-looking-for-django-projects
# Installation is skipped in tox testenv. pytest-django has to be able to discover the settings module.
# By following the document mentioned above, disable automatic discovery and set Python path explicitly.
# Note that src-layout is used and manage.py locates under src/ directory.
django_find_project = false
pythonpath = ". src"
[tool.coverage.run]
branch = true
[tool.coverage.report]
skip_covered = true
omit = [
"*/migrations/*.py",
"src/tcms/celery.py",
"src/tcms/__init__.py",
"src/tcms/settings/*.py",
"src/tcms/wsgi.py",
"*/urls.py",
"*/urls/*.py"
]
[tool.bandit]
exclude_dirs = ["/tests/"]
skips = ["B105", "B411"]
# B105: hardcoded_password_string - Empty strings in default Django settings
# B411: import_xmlrpclib - Using Fault for exceptions, not parsing untrusted XML