-
Notifications
You must be signed in to change notification settings - Fork 4
Add pixi-build, use hatchling, remove GitInit task #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
23e1a17
7f8407c
b7cb841
89be975
f12a5b6
bdbe5dd
26b2f35
8edc4f8
40aa90e
57be2c5
4b84009
90c5461
654912e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,35 +2,39 @@ | |
| name = "{{ project_slug }}" | ||
| channels = ["conda-forge"] | ||
| platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"] | ||
| preview = ["pixi-build"] | ||
|
|
||
| [tasks] | ||
| postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ." | ||
| [package] | ||
| name = "{{ project_slug }}" | ||
| [package.build.backend] | ||
| name = "pixi-build-python" | ||
| version = "*" | ||
| [package.host-dependencies] | ||
| python = ">={{ minimal_python_version.replace('py3', '3.') }}" | ||
| hatchling = "*" | ||
|
|
||
| [dependencies] | ||
| python = ">={{ minimal_python_version.replace('py3', '3.') }}" | ||
| pip = "*" | ||
| setuptools = ">=61" | ||
| setuptools-scm = "*" | ||
| {{ project_slug if "." not in project_slug else ('"' ~ project_slug ~ '"') }} = { path = "." } | ||
|
|
||
| [feature.test.dependencies] | ||
| pytest = ">=6" | ||
| pytest = "*" | ||
| pytest-cov = "*" | ||
| mypy = "*" | ||
| [feature.test.tasks] | ||
| test = "pytest" | ||
| test-coverage = "pytest --cov={{ project_slug_snake_case }} --cov-report=xml --cov-report=term-missing" | ||
|
|
||
| [feature.build.dependencies] | ||
| python = "*" | ||
| hatchling = "*" | ||
| python-build = "*" | ||
| twine = "*" | ||
| wheel = "*" | ||
| twine = ">=6" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. putting this in |
||
| [feature.build.tasks] | ||
| build-wheel = "python -m build --no-isolation ." | ||
| check-wheel = "twine check dist/*" | ||
|
|
||
| [feature.lint.dependencies] | ||
| lefthook = "*" | ||
| insert-license-header = "*" | ||
| docformatter = "*" | ||
| ruff = "*" | ||
| prettier = "*" | ||
|
|
@@ -55,7 +59,7 @@ python = "3.14.*" | |
| {%- endif %} | ||
|
|
||
| [environments] | ||
| default = ["test", "lint"] | ||
| default = ["test", "build", "lint"] | ||
| {%- if minimal_python_version <= "py310" %} | ||
| py310 = ["py310", "test"] | ||
| {%- endif %} | ||
|
|
@@ -71,7 +75,3 @@ py313 = ["py313", "test"] | |
| {%- if minimal_python_version <= "py314" %} | ||
| py314 = ["py314", "test"] | ||
| {%- endif %} | ||
| {%- if build_docs %} | ||
| docs = ["docs"] | ||
| {%- endif %} | ||
| build = ["build"] | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run dependencies should be automatically picked up from pyproject.toml