From 1216704f8aaf96a45ccf1dc75bd255614b954706 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 1 Aug 2024 11:47:01 +0200 Subject: [PATCH] Replace setup.py by build in the release.yml file --- .github/workflows/release.yml | 6 +++--- CONTRIBUTING.rst | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf3bd09bf..971b4f64b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,12 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U setuptools twine wheel + python -m pip install -U setuptools build twine - name: Build package run: | - python setup.py --version - python setup.py sdist --format=gztar bdist_wheel + python -m build --version + python -m build twine check dist/* - name: Upload packages to Jazzband diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index aab90cfd9..1a5ad9794 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -62,12 +62,14 @@ The following actions are required to push a new version: make tx-pull -* Package and upload:: +* Trigger the packaging and upload:: bumpversion [major|minor|patch] - git push && git push --tags - python setup.py sdist bdist_wheel - twine upload dist/* + git tag + git push --tags + +The `.github/workflows/release.yml` file should do the remaining work and +publish the release to PyPi. .. _issue tracker: https://github.com/jazzband/django-two-factor-auth/issues .. _source code: https://github.com/jazzband/django-two-factor-auth