Skip to content

Commit c96510c

Browse files
authored
Merge pull request #335 from h-mayorquin/change_to_hatchling
Change build to hatchling
2 parents 35d2b19 + 6b2209f commit c96510c

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

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

+3-2
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

+8-9
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ 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+
[tool.hatch.build.targets.wheel]
35+
packages = ["src/probeinterface"]
36+
include = ["probeinterface/schema/probe.json.schema"]
3437

35-
[tool.setuptools]
36-
packages = ["probeinterface"]
37-
package-dir = {"probeinterface" = "src/probeinterface"}
38-
39-
[tool.setuptools.package-data]
40-
"probeinterface" = ["schema/probe.json.schema"]
41-
38+
[tool.hatch.build.targets.sdist]
39+
packages = ["src/probeinterface"]
40+
include = ["probeinterface/schema/probe.json.schema"]
4241

4342
[project.optional-dependencies]
4443

setup.py

-4
This file was deleted.

0 commit comments

Comments
 (0)