-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
145 lines (126 loc) · 3.81 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
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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "dfetch"
authors = [{name = "Ben Spoor", email = "dfetch@spoor.cc"}]
description = "Dependency fetcher"
readme = "README.md"
requires-python = ">=3.7"
keywords = ["dfetch", "vendoring", "dependencies"]
license = {text = "MIT"}
classifiers = [
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
]
dependencies = [
"PyYAML==6.0.2",
"coloredlogs==15.0.1",
"pykwalify==1.8.0",
"halo==0.0.31",
"colorama==0.4.6",
"typing-extensions==4.7.1; python_version <= '3.7.0'",
"typing-extensions==4.12.2; python_version > '3.7.0'",
"sarif-om==1.0.4",
"semver==3.0.2",
"patch-ng==1.18.1",
"importlib-resources==5.4.0; python_version <= '3.7.0'",
"cyclonedx-python-lib==4.2.2",
"infer-license==0.1.0; python_version <= '3.10.0'",
"infer-license==0.2.0; python_version > '3.10.0'",
'setuptools; python_version >= "3.12"', # contains 'pkg_resources' for infer-license
]
dynamic = ["version"]
[project.urls]
Documentation = "https://dfetch.readthedocs.io/"
Repository = "https://github.com/dfetch-org/dfetch"
[project.optional-dependencies]
development = [
# Quality dependencies
'black==24.10.0',
'doc8==1.1.2',
'pydocstyle==6.3.0',
'radon==6.0.1',
'xenon==0.9.3',
'types-PyYAML==6.0.12.20241221',
'codespell==2.3.0',
'mypy==1.14.0',
#'flake8==5.0.4', # version 6.x.x requires python >= 3.8.1 (but 3.7 support window is until 2023-06-27)
'bandit==1.8.0',
'vulture==2.14',
'pyroma==4.2',
'isort==5.13.2',
'pylint==3.3.3',
"tomli; python_version < '3.11'", # Tomllib is default in 3.11, required for letting codespell read the pyproject.toml
'pre-commit==4.0.1',
]
docs =[
'sphinx==8.1.3',
'sphinx-argparse==0.5.2',
'plantweb==1.3.0',
'sphinxcontrib.asciinema==0.3.8',
# 'sphinx_design==0.3.0' # Required for landing page, but requires sphinx <6
]
test = [
'pytest==8.3.4',
'pytest-cov==6.0.0',
'behave==1.2.6',
]
casts = [
'asciinema==2.4.0',
]
[project.scripts]
dfetch = "dfetch.__main__:main"
[tool.setuptools.dynamic]
version = {attr = "dfetch.__version__"}
[tool.setuptools.packages.find]
include = ["dfetch", "dfetch.*"]
[tool.setuptools.package-data]
dfetch = ["resources/*.yaml"]
[tool.isort]
profile="black"
# See https://github.com/PyCQA/flake8/issues/234 😢
[tool.flake8]
max-line-length = 120
max-complexity = 10
select = "B,C,E,F,W,T4"
ignore = "W503"
[tool.mypy]
files="dfetch"
ignore_missing_imports = true
strict = true
[tool.doc8]
ignore-path="doc/_build,doc/static/uml/styles/plantuml-c4"
max-line-length=120
verbose=0
ignore="D002,D004"
[tool.pylint.format]
max-line-length=120
disable="logging-fstring-interpolation"
min-similarity-lines=10
[tool.pydocstyle]
convention="google"
[tool.pytest]
filterwarnings = """
ignore:.*Using or importing the ABCs.*is deprecated:DeprecationWarning
ignore:.*the imp module.*is deprecated:DeprecationWarning
"""
[tool.coverage.run]
branch= true
source = ["dfetch"]
[tool.coverage.report]
show_missing= true
[tool.codespell]
skip = "*.cast,./venv,**/plantuml-c4/**,./example,.mypy_cache,./doc/_build/**,./build,*.patch,.git,**/generate-casts/demo-magic/**"