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