forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
208 lines (192 loc) · 5.33 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling >=1.12.2",
"hatch-vcs >=0.2.0",
]
[project]
authors = [{name = "Anaconda, Inc.", email = "[email protected]"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"archspec >=0.2.3",
"boltons >=23.0.0",
"charset-normalizer",
"conda-libmamba-solver >=23.11.0",
"conda-package-handling >=2.2.0",
"distro >=1.5.0",
"frozendict >=2.4.2",
"jsonpatch >=1.32",
"menuinst >=2",
"packaging >=23.0",
"platformdirs >=3.10.0",
"pluggy >=1.0.0",
"pycosat >=0.6.3",
"requests >=2.28.0,<3",
"ruamel.yaml >=0.11.14,<0.19",
"setuptools >=60.0.0",
"tqdm >=4",
"truststore >=0.8.0; python_version>='3.10'",
"zstandard >=0.15",
]
description = "OS-agnostic, system-level binary package manager."
dynamic = ["version"]
license = {file = "LICENSE"}
name = "conda"
readme = "README.md"
requires-python = ">=3.8"
[project.scripts]
conda = "conda.cli.main_pip:main"
[project.urls]
changelog = "https://github.com/conda/conda/blob/main/CHANGELOG.md"
documentation = "https://docs.conda.io/projects/conda/en/stable/"
repository = "https://github.com/conda/conda"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: py$PYTHON_MAJOR_VERSION no cover",
"pragma: $TEST_PLATFORM no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"def __repr__",
'\s*\.\.\.$',
"if TYPE_CHECKING:", # ignoring type checking imports
]
omit = [
"*/site-packages/*",
'*\site-packages\*',
"conda/_vendor/*",
"conda/console.py",
"conda/cli/activate.py",
"conda/cli/main_package.py",
"conda/exports.py",
"conda/gateways/connection/adapters/ftp.py",
"conda/gateways/connection/adapters/s3.py",
"conda_env/*",
"tests/*",
"utils/*",
]
show_missing = true
skip_covered = true
sort = "Miss"
[tool.coverage.run]
# store relative paths in coverage information
relative_files = true
[tool.hatch.build]
include = ["conda", "conda_env"]
[tool.hatch.build.hooks.vcs]
version-file = "conda/_version.py"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "dirty-tag"
[tool.pytest.ini_options]
addopts = [
"--color=yes",
# "--cov=conda", # passed in test runner scripts instead (avoid debugger)
"--cov-append",
"--cov-branch",
"--cov-report=term", # print summary table to screen
"--cov-report=xml", # for codecov/codecov-action upload
"--durations=16",
"--junitxml=test-report.xml",
"--splitting-algorithm=least_duration",
"--store-durations",
"--strict-markers",
"--tb=native",
"-vv",
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ALLOW_UNICODE",
"ELLIPSIS",
]
markers = [
"integration: integration tests that usually require an internet connect",
"slow: slow running tests",
"benchmark: benchmark tests",
"memray: memory use tests",
]
minversion = 3.0
norecursedirs = [
"tests/data/*",
"tests/integration/*",
"tests/plugins/data/*",
"docs",
".git",
]
pythonpath = [
# faking a test-plugin to test ImportError handling
"tests/plugins/data/test-plugin",
]
testpaths = ["tests"]
[tool.ruff]
exclude = [
"conda/_vendor",
"conda/auxlib",
"tests/data/conda_format_repo",
"tests/data/env_metadata",
"tools/vendoring",
]
target-version = "py38"
[tool.ruff.lint]
extend-per-file-ignores = {"docs/*" = ["D1"], "tests/*" = ["D1"]}
flake8-type-checking = {exempt-modules = [], strict = true}
ignore = [
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"E402", # module level import not at top of file
"E501", # line too long
"E722", # do not use bare 'except'
"E731", # do not assign a lambda expression, use a def
]
pydocstyle = {convention = "pep257"}
# see https://docs.astral.sh/ruff/rules/
select = [
"D1", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"ISC", # flake8-implicit-str-concat
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.vendoring]
destination = "conda/_vendor/"
namespace = "conda._vendor"
patches-dir = "tools/vendoring/patches"
protected-files = ["__init__.py", "vendor.txt", "README.md"]
requirements = "conda/_vendor/vendor.txt"
[tool.vendoring.license.fallback-urls]
frozendict = "https://raw.githubusercontent.com/Marco-Sulla/python-frozendict/master/LICENSE.txt" # LGPL
[tool.vendoring.transformations]
drop = [
# contains unnecessary scripts
"bin/",
]
substitute = []
[tool.vendoring.typing-stubs]
# prevent stubs from being generated
frozendict = []