-
Notifications
You must be signed in to change notification settings - Fork 104
/
pyproject.toml
220 lines (202 loc) · 5.99 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
209
210
211
212
213
214
215
216
217
218
219
220
[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",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
license-files = { paths = ["LICENSE"] }
dependencies = [
# conda-lock dependencies
"click >=8.0",
"click-default-group",
"ensureconda >=1.4.4",
"gitpython >=3.1.30",
"jinja2",
# constraint on version comes from poetry and conda
"packaging >=23.1",
# constraint on version comes from poetry and conda
"platformdirs >=3.10.0,<5.0.0",
"pydantic >=2",
"pyyaml >= 5.1",
# constraint on version comes from poetry
"requests >=2.26,<3.0",
"ruamel.yaml",
"semver >=3,<4",
"setuptools",
# constraint on version comes from poetry
'tomli >=2.0.1,<3.0.0 ; python_version <"3.11"',
# constraint on version comes from poetry
"tomlkit >=0.11.4,<1.0.0",
"typing-extensions",
# conda dependencies
"boltons >=23.0.0",
"charset-normalizer",
"zstandard >=0.15",
# The following dependencies were added in the process of vendoring Poetry 1.8.3.
"build >=1.0.3,<2.0.0",
"cachecontrol[filecache] >=0.14.0,<0.15.0",
"crashtest >=0.4.1,<0.5.0",
"dulwich >=0.21.2,<0.22.0",
"fastjsonschema >=2.18.0,<3.0.0",
'importlib-metadata >= 4.4 ; python_version <"3.10"',
"installer >=0.7.0,<0.8.0",
"keyring >=24.0.0,<25.0.0",
"pexpect >=4.7.0,<5.0.0",
"pkginfo >=1.10,<2.0",
"pyproject-hooks >=1.0.0,<2.0.0",
"requests-toolbelt >=1.0.0,<2.0.0",
"shellingham >=1.5,<2.0",
"trove-classifiers >= 2022.5.19",
"virtualenv >=20.23.0,<21.0.0",
'xattr >=1.0.0,<2.0.0 ; sys_platform == "darwin"',
]
[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 = [
"-rsx",
"--verbose",
"--doctest-modules",
"--numprocesses=auto",
"--ignore-glob=**/vendor_poetry/**",
"--ignore-glob=**/_vendor/**"
]
log_level = "DEBUG"
testpaths = ["tests", "conda_lock"]
[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",
"poetry/publishing",
"poetry/utils/shell.py",
"poetry/core/_vendor/six.py",
"poetry/core/_vendor/six.LICENSE",
"tests",
"conda/shell",
# Drop everything in grayskull/ except for the listed files:
# - __init__.py
# - strategy/__init__.py
# - strategy/parse_poetry_version.py
'^grayskull\/(?!__init__\.py$|strategy\/parse_poetry_version\.py$|strategy\/__init__\.py$)',
]
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"' },
# Patch a syntax warning in conda_lock/_vendor/conda/_vendor/appdirs.py:82
# (invalid escape sequence '\D')
{ match = ' """Return full path to the user-shared data dir', replace = ' r"""Return full path to the user-shared data dir' },
# Rapidfuzz is a dependency of cleo but is only used to suggest similar names
# for CLI apps. We don't need this functionality in conda-lock, and removing
# this import allows us to drop it as a dependency.
{ match = 'from rapidfuzz.distance import Levenshtein', replace = ''}
]
[tool.conda-lock]
channels = ["conda-forge", "nodefaults"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64", "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"
line-length = 88
extend-exclude = ["conda_lock/_vendor"]
[tool.ruff.lint]
ignore = [
"E501",
"F401",
"F403",
# Disabled during migration to Ruff:
"A001",
"A002",
"A003",
"C401",
"C405",
"C408",
"C409",
"C413",
"C414",
"C416",
"RUF012",
"RUF015",
]
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
"UP", # pyupgrade
"TID", # flake8-tidy-imports
"A", # flake8-builtins
"BLE", # flake8-blind-except
]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1