File tree 3 files changed +11
-15
lines changed
3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ jobs:
18
18
- name : Install Tools
19
19
run : |
20
20
python -m pip install --upgrade pip
21
- pip install setuptools wheel twine build
21
+ pip install twine build
22
22
- name : Package and Upload
23
23
env :
24
24
STACKMANAGER_VERSION : ${{ github.event.release.tag_name }}
25
25
TWINE_USERNAME : __token__
26
26
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
27
27
run : |
28
- python -m build --sdist --wheel
28
+ # python -m build is backend-independent
29
+ python -m build
29
30
twine upload dist/*
Original file line number Diff line number Diff line change @@ -28,17 +28,16 @@ changelog = "https://probeinterface.readthedocs.io/en/main/release_notes.html"
28
28
29
29
30
30
[build-system ]
31
- requires = [" setuptools>=62.0 " ]
32
- build-backend = " setuptools.build_meta "
31
+ requires = [" hatchling " ]
32
+ build-backend = " hatchling.build "
33
33
34
+ [tool .hatch .build .targets .wheel ]
35
+ packages = [" src/probeinterface" ]
36
+ include = [" probeinterface/schema/probe.json.schema" ]
34
37
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" ]
42
41
43
42
[project .optional-dependencies ]
44
43
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments