forked from conda/conda-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
192 lines (175 loc) · 4.61 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "conda_lock"
description = "Lockfiles for conda"
authors = [
{ name = "Marius van Niekerk", email = "marius.v.niekerk@gmail.com" },
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]
license-files = { paths = ["LICENSE"] }
dependencies = [
# conda-lock dependencies
"click >=8.0",
"click-default-group",
"ensureconda >=1.3",
"gitpython >=3.1.30",
"jinja2",
"pydantic >=1.10",
"pyyaml >= 5.1",
'tomli; python_version<"3.11"',
"typing-extensions",
# conda dependencies
"ruamel.yaml",
"toolz >=0.12.0,<1.0.0",
# The following dependencies were added in the process of vendoring Poetry 1.1.15.
# poetry:
"cachecontrol[filecache] >=0.12.9",
# poetry:
"cachy >=0.3.0",
# cleo, poetry:
"clikit >=0.6.2",
# poetry:
"crashtest >=0.3.0",
# poetry:
"html5lib >=1.0",
# poetry:
"keyring >=21.2.0",
# poetry:
"packaging >=20.4",
# poetry:
"pkginfo >=1.4",
# poetry, conda-lock:
"requests >=2.18",
# poetry:
"tomlkit >=0.7.0",
# poetry:
"virtualenv >=20.0.26",
# urllib3 is a dependency of requests and poetry, v2 removes some deprecated features that our vendored version of
# poetry relies on.
"urllib3 >=1.26.5,<2.0",
]
[project.scripts]
conda-lock = "conda_lock:main"
[project.urls]
Homepage = "https://github.com/conda/conda-lock"
Repository = "https://github.com/conda/conda-lock"
Documentation = "https://conda.github.io/conda-lock/"
"Issue Tracker" = "https://github.com/conda/conda-lock/issues"
"Conda-Forge Feedstock" = "https://github.com/conda-forge/conda-lock-feedstock"
"Anaconda.org" = "https://anaconda.org/conda-forge/conda-lock"
[tool]
[tool.check-manifest]
ignore = [
"*.yml",
".coveragerc",
"Makefile",
"docs",
"docs/*",
"*.enc",
"tests",
"tests/*",
]
[tool.coverage.run]
omit = [
"*/conda_lock/_vendor/*",
]
source = [
"conda_lock/*",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build]
exclude = [
"tests",
]
[tool.pytest.ini_options]
addopts = "-vrsx -n auto"
flake8-max-line-length = 105
flake8-ignore = ["docs/* ALL", "conda_lock/_version.py ALL"]
filterwarnings = "ignore::DeprecationWarning"
[tool.vendoring]
destination = "conda_lock/_vendor"
namespace = "conda_lock._vendor"
requirements = "conda_lock/_vendor/vendor.txt"
protected-files = ["__init__.py", "README.md", "LICENSES.md", "vendor.txt"]
patches-dir = "conda_lock/scripts/vendor_poetry/patches"
[tool.vendoring.transformations]
drop = [
"bin",
"conda_env",
# From cleo we only need cleo.io.io_mixin
'^cleo\/(?!io$|io\/io_mixin\.py$).*$',
"poetry/console",
"poetry/publishing",
"poetry/utils/shell.py",
"poetry/core/_vendor/six.py",
"poetry/core/_vendor/six.LICENSE",
]
substitute = [
# simple substitution patch to fix conda.exports
{ match = 'conda\.base\.context', replace = 'conda_lock.vendor.conda.base.context' },
{ match = '"pypoetry"', replace = '"pypoetry-conda-lock"' }
]
[tool.conda-lock]
channels = ["conda-forge", "nodefaults"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64", "osx-arm64", "linux-aarch64"]
[tool.conda-lock.dependencies]
# This is necessary to pull in the lockfile/filelock dependency
# since we don't handle the optional dependency.
cachecontrol-with-filecache = ">=0.12.9"
[tool.ruff]
target-version = "py38"
ignore = [
"E501",
"F401",
"F403",
# Disabled during migration to Ruff:
"A001",
"A002",
"A003",
"C401",
"C405",
"C408",
"C409",
"C413",
"C414",
"C416",
"RUF012",
"RUF015",
]
line-length = 89
select = [
"A", # flake8-builtins
# "B", # flake8-bugbear
"B006", # Do not use mutable data structures for argument defaults
"C4", # flake8-comprehensions
"C9", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"RUF", # ruff rules
"W", # pycodestyle warnings
]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.isort]
lines-after-imports = 2
lines-between-types = 1
known-first-party = ["attr"]