Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
- name: Install Tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
pip install twine build
- name: Package and Upload
env:
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build --sdist --wheel
# python -m build is backend-independent
python -m build
twine upload dist/*
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ changelog = "https://probeinterface.readthedocs.io/en/main/release_notes.html"


[build-system]
requires = ["setuptools>=62.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/probeinterface"]
include = ["probeinterface/schema/probe.json.schema"]

[tool.setuptools]
packages = ["probeinterface"]
package-dir = {"probeinterface" = "src/probeinterface"}

[tool.setuptools.package-data]
"probeinterface" = ["schema/probe.json.schema"]

[tool.hatch.build.targets.sdist]
packages = ["src/probeinterface"]
include = ["probeinterface/schema/probe.json.schema"]

[project.optional-dependencies]

Expand Down
4 changes: 0 additions & 4 deletions setup.py

This file was deleted.