-
Notifications
You must be signed in to change notification settings - Fork 151
/
pyproject.toml
146 lines (130 loc) · 3.55 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
146
[build-system]
requires = ["flit_core >=3.8,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "wheel"
description = "A built-package format for Python"
readme = "README.rst"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: System :: Archiving :: Packaging",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
]
keywords = ["wheel", "packaging"]
requires-python = ">=3.8"
dynamic = ["version"]
[project.urls]
Documentation = "https://wheel.readthedocs.io/"
Changelog = "https://wheel.readthedocs.io/en/stable/news.html"
"Issue Tracker" = "https://github.com/pypa/wheel/issues"
Source = "https://github.com/pypa/wheel"
[project.scripts]
wheel = "wheel.cli:main"
[project.entry-points."distutils.commands"]
bdist_wheel = "wheel.bdist_wheel:bdist_wheel"
[project.optional-dependencies]
test = [
"pytest >= 6.0.0",
"setuptools >= 65",
]
[tool.flit.sdist]
include = [
"LICENSE*",
"docs/**/*.py",
"docs/**/*.rst",
"docs/Makefile",
"docs/make.bat",
"manpages/*.rst",
"tests/**/*.py",
"tests/**/*.txt",
"tests/**/*.c",
"tests/**/*.h",
"tests/**/*.cfg",
"tests/testdata/macosx_minimal_system_version/*.dylib",
"tests/testdata/test-1.0-py2.py3-none-any.whl",
]
exclude = [
".cirrus.yml",
".github/**",
".gitignore",
".pre-commit-config.yaml",
".readthedocs.yml",
"**/__pycache__",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-rsfE", "--tb=short", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
"ignore::Warning:_pytest.*",
]
log_cli_level = "info"
testpaths = ["test"]
[tool.coverage.run]
source = ["wheel"]
omit = ["*/vendored/*"]
exclude_also = [
"@overload",
"if TYPE_CHECKING:"
]
[tool.coverage.report]
show_missing = true
exclude_also = [
"@abstractmethod",
]
[tool.ruff]
extend-exclude = ["src/wheel/vendored"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# Tox (https://tox.wiki/) is a tool for running tests in multiple virtualenvs.
# This configuration file will run the test suite on all supported python
# versions. To use it, "pipx install tox" and then run "tox" from this
# directory.
[tool.tox]
legacy_tox_ini = '''
[tox]
envlist = py38, py39, py310, py311, py312, py313, pypy3, lint, pkg
minversion = 4.0.0
skip_missing_interpreters = true
[testenv]
package = wheel
wheel_build_env = .pkg
depends = lint
commands = {env_python} -b -m pytest {posargs}
extras = test
set_env =
PYTHONWARNDEFAULTENCODING = 1
[testenv:lint]
depends =
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true
[testenv:pkg]
basepython = python3
deps =
build
flit>=3.8
commands = {envpython} -b -m pytest tests/test_sdist.py {posargs}
'''