forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
172 lines (159 loc) · 5.23 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
[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.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 = [
"beautifulsoup4",
"chardet",
"conda >=23.7.0",
"conda-index >=0.4.0",
"conda-package-handling >=2.2.0",
"filelock",
"frozendict >=2.4.2",
"jinja2",
"jsonschema >=4.19",
"libarchive-c",
"menuinst >=2",
"packaging",
"pkginfo",
"psutil",
"pytz",
"pyyaml",
"requests",
"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.9"
[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-index error
"ignore::PendingDeprecationWarning:conda_index",
"ignore::DeprecationWarning:conda_index",
# ignore conda-libmamba-solver error
"ignore::PendingDeprecationWarning:conda_libmamba_solver",
"ignore::DeprecationWarning:conda_libmamba_solver",
# ignore conda-package-streaming error
"ignore:conda.core.index._supplement_index_with_system is pending deprecation:PendingDeprecationWarning:conda",
"ignore:conda.core.index._make_virtual_package is pending deprecation:PendingDeprecationWarning:conda",
# ignore tarfile
"ignore:Python 3.14 will, by default, filter extracted tar archives:DeprecationWarning",
]
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]
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
]