forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (170 loc) · 6.14 KB
/
pyproject.toml
File metadata and controls
183 lines (170 loc) · 6.14 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
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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling >=1.12.2",
"hatch-vcs >=0.2.0",
]
[project]
authors = [{name = "Anaconda, Inc.", email = "conda@continuum.io"}]
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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"beautifulsoup4",
"chardet",
"conda >=25.11.0",
# Disabled due to conda-index not being available on PyPI
# "conda-index >=0.4.0",
"conda-package-handling >=2.2.0",
"filelock",
"frozendict >=2.4.2",
"jinja2",
"jsonschema >=4.19",
"libarchive-c",
"packaging",
"pkginfo",
"psutil",
"pyyaml",
"requests",
"evalidate >=2,<3",
"tomli ; python_version<'3.11'",
"tqdm",
]
description = "tools for building conda packages"
dynamic = ["version"]
license = {file = "LICENSE"}
name = "conda-build"
readme = "README.md"
requires-python = ">=3.10"
[project.entry-points.conda]
conda-build = "conda_build.plugin"
[project.scripts]
conda-build = "conda_build.cli.main_build:execute"
conda-convert = "conda_build.cli.main_convert:execute"
conda-debug = "conda_build.cli.main_debug:execute"
conda-develop = "conda_build.cli.main_develop:execute"
conda-inspect = "conda_build.cli.main_inspect:execute"
conda-metapackage = "conda_build.cli.main_metapackage:execute"
conda-render = "conda_build.cli.main_render:execute"
conda-skeleton = "conda_build.cli.main_skeleton:execute"
[project.urls]
changelog = "https://github.com/conda/conda-build/blob/main/CHANGELOG.md"
documentation = "https://docs.conda.io/projects/conda-build/en/stable/"
repository = "https://github.com/conda/conda-build"
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:", # ignoring type checking imports
]
omit = ["conda_build/skeletons/_example_skeleton.py"]
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_build", "conda_build/templates/*", "conda_build/cli-*.exe"]
[tool.hatch.build.hooks.vcs]
version-file = "conda_build/_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_build", # 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", # show 16 slowest tests
"--junitxml=junit.xml",
# "--splitting-algorithm=least_duration", # not available yet
# "--store-durations", # not available yet
"--strict-markers",
"--tb=native",
"-vv",
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ALLOW_UNICODE",
"ELLIPSIS",
]
filterwarnings = [
# elevate conda's deprecated warning to an error
"error::PendingDeprecationWarning:conda",
"error::DeprecationWarning:conda",
# elevate conda-build's deprecated warning to an error
"error::PendingDeprecationWarning:conda_build",
"error::DeprecationWarning:conda_build",
# ignore numpy.distutils error
'ignore:\s+`numpy.distutils` is deprecated:DeprecationWarning:conda_build._load_setup_py_data',
# ignore conda-package-streaming error
"ignore:conda.core.index._supplement_index_with_system is pending deprecation:PendingDeprecationWarning:conda",
# TEMPORARY: Remove once CLS is released with https://github.com/conda/conda-libmamba-solver/pull/691
"ignore:conda.plugins.CondaSolver:PendingDeprecationWarning",
"ignore:conda.plugins.CondaSolver:DeprecationWarning",
# ignore conda prefix data deprecation
"ignore:conda.core.prefix_data:DeprecationWarning",
# ignore conda prefix data pending deprecation (including pip_interop_enabled)
"ignore:conda.core.prefix_data:PendingDeprecationWarning",
# ignore conda index deprecation
"ignore:conda.core.index._supplement_index_with_system is deprecated:DeprecationWarning",
# ignore conda trust deprecation
"ignore:conda.trust:DeprecationWarning",
"ignore:conda.trust:PendingDeprecationWarning",
# ignore conda link PrefixActions deprecation
"ignore:conda.core.link.PrefixActions is deprecated and will be removed in 26.3:DeprecationWarning",
"ignore:conda.core.link.PrefixActions is pending deprecation and will be removed in 26.3:PendingDeprecationWarning",
# ignore conda PathType -> PathEnum rename deprecation
"ignore:conda.models.enums.PathType is pending deprecation:PendingDeprecationWarning",
# ignore conda CONDA_PACKAGE_EXTENSIONS deprecation (use plugin_manager.get_package_extractors() instead)
"ignore:conda.base.constants.CONDA_PACKAGE_EXTENSIONS is pending deprecation:PendingDeprecationWarning",
]
markers = [
"serial: execute test serially (to avoid race conditions)",
"slow: execute the slow tests if active",
"sanity: execute the sanity tests",
"no_default_testing_config: used internally to disable monkeypatching for testing_config",
"benchmark: execute the benchmark tests",
"memray: memory use tests",
]
minversion = 3.0
norecursedirs = ["tests/test-recipes/*"]
testpaths = ["tests"]
[tool.ruff]
show-fixes = true
target-version = "py39"
[tool.ruff.lint]
flake8-type-checking = {exempt-modules = [], strict = true}
ignore = [
"E402", # module level import not at top of file
"E722", # do not use bare 'except'
"E731", # do not assign a lambda expression, use a def
]
pycodestyle = {max-line-length = 120}
# see https://docs.astral.sh/ruff/rules/
select = [
"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
]