Skip to content

Commit a35d5ac

Browse files
committed
change build to hatchling
1 parent 5e96807 commit a35d5ac

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ jobs:
1818
- name: Install Tools
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine build
21+
pip install twine build
2222
- name: Package and Upload
2323
env:
2424
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
2525
TWINE_USERNAME: __token__
2626
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2727
run: |
28-
python -m build --sdist --wheel
28+
# python -m build is backend-independent
29+
python -m build
2930
twine upload dist/*

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ changelog = "https://probeinterface.readthedocs.io/en/main/release_notes.html"
2828

2929

3030
[build-system]
31-
requires = ["setuptools>=62.0"]
32-
build-backend = "setuptools.build_meta"
31+
requires = ["hatchling"]
32+
build-backend = "hatchling.build"
3333

34-
35-
[tool.setuptools]
36-
packages = ["probeinterface"]
37-
package-dir = {"probeinterface" = "src/probeinterface"}
34+
[tool.hatch.build.targets.wheel]
35+
packages = ["src/probeinterface"]
3836

3937

4038
[project.optional-dependencies]

0 commit comments

Comments
 (0)