Skip to content

Commit a4aabc9

Browse files
authored
fix: update pixi envs for building (#104)
Currently the build ci is failing because the dev env doesnt have python-build. Here, I created a publish env (like other snakemake repos) that has the needed packages for building the wheel. fixes #102
1 parent 33ff0dd commit a4aabc9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

pyproject.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ snakedeploy = { path = ".", editable = true }
5252
[tool.pixi.environments]
5353
default = { solve-group = "default" }
5454
dev = { features = ["dev"], solve-group = "default" }
55+
publish = { features = ["publish"] }
5556

5657
[tool.pixi.tasks]
5758

@@ -60,11 +61,17 @@ format = "ruff format"
6061
check = "ruff check"
6162
test = "/bin/bash tests/test_client.sh"
6263
build-docs = "sphinx-build -b html docs/ docs/_build/html"
63-
build = { cmd = "python -m build", description = "Build the package into the dist/ directory" }
64-
check-build = { cmd = "python -m twine check dist/*", depends-on = [
65-
"build",
66-
], description = "Check that the package can be uploaded" }
64+
6765

6866
[tool.pixi.feature.dev.dependencies]
6967
conda = ">=25.7.0,<26"
7068

69+
[tool.pixi.feature.publish.dependencies]
70+
twine = ">=6.1.0,<7"
71+
python-build = ">=1.2.2,<2"
72+
73+
[tool.pixi.feature.publish.tasks]
74+
build = { cmd = "python -m build", description = "Build the package into the dist/ directory" }
75+
check-build = { cmd = "python -m twine check dist/*", depends-on = [
76+
"build",
77+
], description = "Check that the package can be uploaded" }

0 commit comments

Comments
 (0)