forked from conda/conda-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
175 lines (147 loc) · 4.47 KB
/
pyproject.toml
File metadata and controls
175 lines (147 loc) · 4.47 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "conda-pypi"
description = "Better PyPI interoperability for the conda ecosystem."
readme = "README.md"
authors = [
{ name = "Jaime Rodríguez-Guerra", email = "jrodriguez@quansight.com" },
]
license = "MIT"
license-files = [
"LICENSE",
]
classifiers = [
"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 :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.10"
dependencies = [
# "conda >=25.11.0",
# "conda-rattler-solver >=0.0.5",
"build",
"conda-index >=0.7.0",
"conda-package-streaming >=0.11",
"installer",
"packaging",
"pip",
"platformdirs",
"unearth",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/conda/conda-pypi"
[project.entry-points.conda]
conda-pypi = "conda_pypi.plugin"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64", "linux-aarch64"]
[tool.pixi.dependencies]
# must match project.dependencies (sans python and conda)
python = ">=3.10"
conda = ">=26.1"
conda-index = ">=0.7.0"
conda-package-streaming = ">=0.11"
conda-rattler-solver = ">=0.0.6"
packaging = "*"
pip = "*"
unearth = "*"
[tool.pixi.pypi-dependencies]
"conda-pypi" = { path = ".", editable = true }
[tool.pixi.tasks]
dev = 'python -c "from conda_pypi.python_paths import ensure_externally_managed as e; e()"'
[tool.pixi.feature.build]
dependencies = { anaconda-client = "*", conda-build = "*" }
tasks = { build = "conda build recipe" }
[tool.pixi.feature.lint.dependencies]
python = "3.12.*"
pre-commit = "*"
[tool.pixi.feature.lint.tasks]
lint = "pre-commit"
pre-commit = "pre-commit"
[tool.pixi.feature.docs.tasks]
docs = { cmd = "sphinx-build -M dirhtml . _build", cwd = "docs" }
serve = { cmd = "python -m http.server", cwd = "docs/_build/dirhtml" }
clean = { cmd = "rm -rf _build", cwd = "docs" }
[tool.pixi.feature.docs.dependencies]
python = "3.10.*"
conda-sphinx-theme = "*"
linkify-it-py = "*"
myst-parser = "*"
sphinx = "*"
sphinx-argparse = "*"
sphinx-copybutton = "*"
sphinx-design = "*"
sphinx-reredirects = "*"
sphinx-sitemap = "*"
[tool.pixi.feature.test.tasks]
test = 'python -c "from conda_pypi.python_paths import ensure_externally_managed as e; e()" && python -mpytest -m "not benchmark"'
benchmark= 'python -c "from conda_pypi.python_paths import ensure_externally_managed as e; e()" && python -mpytest --codspeed'
[tool.pixi.feature.test.dependencies]
pytest = "7.4.3.*"
fmt = "!=10.2.0"
pytest-mock = "3.12.0.*"
pytest-xprocess = "*"
pytest-codspeed = ">=3.0.0,<5"
# Build system dependencies
unearth = ">=0.17.2"
python-build = "*"
python-installer = ">=0.7"
packaging = ">=24"
# Dependencies for corpus tests
sqlalchemy = "*"
python-multipart = "*"
pyyaml = "*"
zstandard = "*" # Will be in stdlib as compression.zstd in Python 3.14+
# Build backend for flit tests
flit = "*"
[tool.pixi.feature.py310.dependencies]
python = "3.10.*"
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.py313.dependencies]
python = "3.13.*"
[tool.pixi.feature.py314.dependencies]
python = "3.14.*"
[tool.pixi.feature.canary]
channels = ["conda-forge", {channel = "conda-canary/label/dev", priority = -1}]
[tool.pixi.feature.canary.dependencies]
conda = { version = ">=26.1", channel = "conda-canary/label/dev" }
[tool.pixi.feature.release.dependencies]
rever = "*"
[tool.pixi.environments]
release = ["release"]
build-py310 = ["build", "py310"]
build-py311 = ["build", "py311"]
build-py312 = ["build", "py312"]
build-py313 = ["build", "py313"]
build-py314 = ["build", "py314"]
docs = ["docs"]
lint = ["lint"]
test-py310 = ["test", "py310"]
test-py311 = ["test", "py311"]
test-py312 = ["test", "py312"]
test-py313 = ["test", "py313"]
test-py314 = ["test", "py314"]
test-canary = ["test", "py313", "canary"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "conda_pypi/_version.py"
[tool.ruff]
line-length = 99
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
[tool.coverage.run]
source = ["conda_pypi/", "tests/"]
omit = ["conda_pypi/__init__.py"]