-
-
Notifications
You must be signed in to change notification settings - Fork 679
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (118 loc) · 3.99 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (118 loc) · 3.99 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
[build-system]
requires = ["setuptools>=63", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">= 3.9"
dynamic = ["version"]
name = "pip-tools"
description = "pip-tools keeps your pinned dependencies fresh."
readme = "README.md"
authors = [{ "name" = "Vincent Driessen", "email" = "me@nvie.com" }]
license = { text = "BSD" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = ["pip", "requirements", "packaging"]
dependencies = [
# direct dependencies
"build >= 1.0.0",
"click >= 8",
"pip >= 22.2",
"pyproject_hooks",
"typing_extensions >= 4.6.0; python_version < '3.11'",
"tomli; python_version < '3.11'",
# indirect dependencies
"setuptools", # typically needed when pip-tools invokes setup.py
"wheel", # pip plugin needed by pip-tools
]
[project.urls]
homepage = "https://github.com/jazzband/pip-tools/"
documentation = "https://pip-tools.readthedocs.io/en/latest/"
repository = "https://github.com/jazzband/pip-tools"
changelog = "https://github.com/jazzband/pip-tools/releases"
[project.optional-dependencies]
testing = [
"pytest >= 7.2.0",
"pytest-mock >= 3.15.1",
"pytest-rerunfailures",
"pytest-xdist",
"tomli-w",
# build deps for tests
"flit_core >=2,<4",
"poetry_core>=1.0.0",
]
coverage = ["covdefaults", "pytest-cov"]
[project.scripts]
pip-compile = "piptools.scripts.compile:cli"
pip-sync = "piptools.scripts.sync:cli"
[tool.isort]
profile = "black"
# explicitly mark 'build' as a third-party package
# otherwise, in some executions, `isort` can mistake `piptools.build` for
# `build` and treat it as a first-party module name
known_third_party = ["build"]
add_imports = "from __future__ import annotations"
[tool.mypy]
disallow_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
# Avoid error: Duplicate module named 'setup'
# https://github.com/python/mypy/issues/4008
exclude = "^tests/test_data/"
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.pytest.ini_options]
pythonpath = "tests/_plugins/_coverage"
addopts = [
# `pytest-xdist`:
"--numprocesses=auto",
# The `worksteal` distribution method is useful if the run times of different tests vary greatly,
# as it ensures more efficient resource usage, improving the performance of testing.
"--dist=worksteal",
# Show 20 slowest invocations:
"--durations=20",
]
norecursedirs = ".* build dist venv test_data piptools/_compat/* tests/_plugins"
testpaths = "tests piptools"
filterwarnings = ["always"]
markers = ["network: mark tests that require internet access"]
[tool.setuptools.packages.find]
# needed only because we did not adopt src layout yet
include = ["piptools*"]
[tool.setuptools_scm]
local_scheme = "dirty-tag"