From 0f0f7cff384f3c9a17f577fd2328194a84d66c4e Mon Sep 17 00:00:00 2001 From: Laurie O Date: Tue, 14 Oct 2025 00:04:09 +1000 Subject: [PATCH 1/2] Build with 'build' --- .github/workflows/release.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5689dc1..59b71797 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} diff --git a/Makefile b/Makefile index e5bcb308..39f90d1e 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ release-test: sdist twine upload --repository-url https://test.pypi.org/legacy/ dist/* sdist: clean - python setup.py sdist bdist_wheel + python -m build -d dist . ls -l dist test: From 90bbf2d092ca47820fd686e9a80e24168b72645e Mon Sep 17 00:00:00 2001 From: Laurie O Date: Tue, 14 Oct 2025 00:07:02 +1000 Subject: [PATCH 2/2] Declare build backend and requirements --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..fed528d4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta"