From b1b967fb88a706891cce646c20a72ca5f398d5a3 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 25 Jan 2024 04:12:18 +0100 Subject: [PATCH] Chore: Update release instructions / recipe It now uses the canonical `build` package for building both source-, and binary wheel packages to be uploaded to PyPI. -- https://pypi.org/project/build/ --- Makefile | 10 ++++------ setup.py | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0c4713c..7a7102c 100644 --- a/Makefile +++ b/Makefile @@ -53,18 +53,16 @@ coverage: clean ## Check code coverage locally open htmlcov/index.html release: clean # Package and upload a release to PyPI - python setup.py sdist - python setup.py bdist_wheel + python -m build twine check dist/* twine upload --repository pypi dist/* - open https://pypi.python.org/pypi/python-epo-ops-client + open https://pypi.org/project/python-epo-ops-client/ release-test: clean # Package and upload a release to testpypi - python setup.py sdist - python setup.py bdist_wheel + python -m build twine check dist/* twine upload --repository testpypi dist/* - open https://testpypi.python.org/pypi/python-epo-ops-client + open https://test.pypi.org/project/python-epo-ops-client/ sdist: clean python setup.py sdist diff --git a/setup.py b/setup.py index 1302214..5b3118a 100755 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ extras = { "develop": [ "black<24", + "build<2", "ruff==0.0.285; python_version >= '3.7'", "twine<5", "wheel<1",