From 590a160d9cfb8775eae64212e666e0aca4a8b34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Tue, 21 Jul 2026 12:07:23 +0200 Subject: [PATCH 1/2] fix: use python -m build in make publish, drop setup.py PyPI now rejects sdist filenames from the legacy `setup.py sdist` path (hyphenated) since it enforces PEP 625 normalized names (underscore). Switch to `python -m build`, which also produces a wheel. setup.py was just a `setup()` shim; replaced with a minimal pyproject.toml declaring the setuptools build backend. --- Makefile | 5 ++++- pyproject.toml | 3 +++ setup.py | 4 ---- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/Makefile b/Makefile index 150194b..13c0acb 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,10 @@ install: ## Install dependencies in local virtualenv folder publish: ## Publish the library to the central PyPi repository # build and upload archive - $(VENV_RUN); ./setup.py sdist && twine upload $(BUILD_DIR)/*.tar.gz + rm -rf $(BUILD_DIR) + $(VENV_RUN); $(PIP_CMD) install --upgrade build twine && \ + python -m build --sdist --wheel && \ + twine upload $(BUILD_DIR)/* test: ## Run automated tests ($(VENV_RUN); test `which localstack` || pip install .[test]) && \ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fed528d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py deleted file mode 100755 index ac42fe2..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env python - -from setuptools import setup -setup() From b3f5b60abb7a31a544f974d451954610ee571b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Tue, 21 Jul 2026 12:24:53 +0200 Subject: [PATCH 2/2] wip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cristian Pallarés --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b894e9..cdcd043 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,5 @@ jobs: - name: Test run: make test + env: + LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}