Skip to content

Commit

Permalink
Release 7.0.0pre1 as 7.0.0, publish via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Mar 15, 2024
1 parent a06a2b4 commit 269d22a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "CI"
on: ["push", "pull_request"]
jobs:
publish:
name: "πŸ“¦ Publish Python distributions"
if: "startsWith(github.ref, 'refs/tags')"
runs-on: "ubuntu-latest"
environment: "publish"
permissions:
id-token: write
steps:
- uses: "actions/checkout@master"
- name: "🐍 Set up Python ${{ matrix.python-version }}"
uses: "actions/setup-python@v2"
with:
python-version: "3.12"
- name: "🐍 Display Python version"
run: "python --version"
- name: "🐍 Install wheel"
run: "python -m pip install wheel --user"
- name: "🐍 Build a binary wheel and a source tarball"
run: "python setup.py sdist bdist_wheel"
- name: "πŸ“¦ Publish package distributions to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setuptools.setup(
name='riemann-client',
version='7.0.0pre1',
version='7.0.0',

author="Sam Clements",
author_email="[email protected]",
Expand Down
7 changes: 0 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,3 @@ commands=sphinx-build -q -QE docs/ docs/_build/
deps=
sphinx
sphinx_rtd_theme

# Build a source package and python2/3 specific wheel packages
# $ tox -e "py{27,35}-release"

[testenv:py310-release]
commands=python setup.py sdist bdist_wheel upload
deps=wheel

0 comments on commit 269d22a

Please sign in to comment.