From d13b4bb2236b0f5cc707b93341328c078781eccf Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Wed, 8 Jan 2025 12:18:42 +0100 Subject: [PATCH 1/2] Might solve our release issue Taken from https://github.com/jazzband/djangorestframework-simplejwt/blob/master/.github/workflows/release.yml That successfully publised a release yesterday --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7be9e8..47bd02a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release on: push: tags: - - '*' + - "*" jobs: build: @@ -17,20 +17,22 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: "3.11" - name: Install dependencies run: | python -m pip install -U pip python -m pip install -U setuptools twine wheel + - name: Build package run: | python setup.py --version python setup.py sdist --format=gztar bdist_wheel twine check dist/* + - name: Upload packages to Jazzband if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1.12.3 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: jazzband password: ${{ secrets.JAZZBAND_RELEASE_KEY }} From 72e084625b162c61dfcea0248eb1d087f010baf0 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Wed, 8 Jan 2025 12:25:31 +0100 Subject: [PATCH 2/2] Prepare for new release --- README.md | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e342f22..e4ad163 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,12 @@ by enabling a cached backend. See [Advanced Usage](#advanced-usage) ## Changelog +## 4.0.3 (not released) + ## 4.0.2 (not released) +- Upgrade pypa/gh-action-pypi-publish as an attempt to fix publication of releases to pypi. + ## 4.0.1 (2025-01-07) Same as 4.0.0 with a fix on setup.py version diff --git a/setup.py b/setup.py index 5c2d428..f4487b1 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def readfile(filename): setup( name="django-fsm-log", - version="4.0.1", + version="4.0.2", description="Transition's persistence for django-fsm", long_description=readfile("README.md"), long_description_content_type="text/markdown",