-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate release to PyPI, remove Python 3.8 testing
- Loading branch information
Showing
6 changed files
with
52 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
pypi-publish: | ||
if: startsWith(github.ref, 'refs/tags') | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/tabulate-slip39 | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- name: Build | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install setuptools build | ||
python -m build -s | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# update contributors and CHANGELOG in README | ||
python -m pip install pre-commit | ||
python -m pre_commit run -a # and then commit changes | ||
tox -e py39-extra,py310-extra,py311-extra,py312-extra,py313-extra | ||
# tag version release | ||
python -m build -s # this will update tabulate/version.py | ||
python -m pip install . # install tabulate in the current venv | ||
python -m pip install -r benchmark/requirements.txt | ||
python benchmark/benchmark.py # then update README | ||
# move tag to the last commit | ||
# move tag to the last commit: eg. | ||
git tag v0.10.4 | ||
python -m build -s # update tabulate/version.py | ||
python -m build -nswx . | ||
git push # wait for all CI builds to succeed | ||
git push --tags # if CI builds succeed | ||
twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters