From 269d22aa15896ee77c28fa5625014ad1c1ffb307 Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Fri, 15 Mar 2024 22:50:46 +0000 Subject: [PATCH] Release 7.0.0pre1 as 7.0.0, publish via GitHub Actions --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ setup.py | 2 +- tox.ini | 7 ------- 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a1d1226 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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" diff --git a/setup.py b/setup.py index ac7d2f8..9b9a186 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setuptools.setup( name='riemann-client', - version='7.0.0pre1', + version='7.0.0', author="Sam Clements", author_email="sam.clements@datasift.com", diff --git a/tox.ini b/tox.ini index e2ee582..a0513f4 100644 --- a/tox.ini +++ b/tox.ini @@ -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