22name = "{{ project_slug }}"
33channels = ["conda-forge"]
44platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
5+ preview = ["pixi-build"]
56
6- [tasks]
7- postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
7+ [package]
8+ name = "{{ project_slug }}"
9+ [package.build.backend]
10+ name = "pixi-build-python"
11+ version = "*"
12+ [package.host-dependencies]
13+ python = ">={{ minimal_python_version.replace('py3', '3.') }}"
14+ hatchling = "*"
815
916[dependencies]
10- python = ">={{ minimal_python_version.replace('py3', '3.') }}"
11- pip = "*"
12- setuptools = ">=61"
13- setuptools-scm = "*"
17+ {{ project_slug if "." not in project_slug else ('"' ~ project_slug ~ '"') }} = { path = "." }
1418
1519[feature.test.dependencies]
16- pytest = ">=6 "
20+ pytest = "* "
1721pytest-cov = "*"
1822mypy = "*"
1923[feature.test.tasks]
2024test = "pytest"
2125test-coverage = "pytest --cov={{ project_slug_snake_case }} --cov-report=xml --cov-report=term-missing"
2226
2327[feature.build.dependencies]
28+ python = "*"
29+ hatchling = "*"
2430python-build = "*"
25- twine = "*"
26- wheel = "*"
31+ twine = ">=6"
2732[feature.build.tasks]
2833build-wheel = "python -m build --no-isolation ."
2934check-wheel = "twine check dist/*"
3035
3136[feature.lint.dependencies]
3237lefthook = "*"
33- insert-license-header = "*"
3438docformatter = "*"
3539ruff = "*"
3640prettier = "*"
@@ -55,7 +59,7 @@ python = "3.14.*"
5559{% - endif %}
5660
5761[environments]
58- default = ["test", "lint"]
62+ default = ["test", "build", " lint"]
5963{% - if minimal_python_version <= "py310" %}
6064py310 = ["py310", "test"]
6165{% - endif %}
@@ -71,7 +75,3 @@ py313 = ["py313", "test"]
7175{% - if minimal_python_version <= "py314" %}
7276py314 = ["py314", "test"]
7377{% - endif %}
74- {% - if build_docs %}
75- docs = ["docs"]
76- {% - endif %}
77- build = ["build"]
0 commit comments