Skip to content

Commit

Permalink
Merge pull request jazzband#733 from claudep/release_yml
Browse files Browse the repository at this point in the history
Replace setup.py by build in the release.yml file
  • Loading branch information
moggers87 authored Aug 3, 2024
2 parents a152732 + 1216704 commit 0ddd87a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tag number>
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
Expand Down

0 comments on commit 0ddd87a

Please sign in to comment.