Skip to content

Commit

Permalink
ci: fix rye publish issue
Browse files Browse the repository at this point in the history
It seems that a recent major release of importlib_metadata 8.0.0 removed deprecated support that twine 4.0.2 relies upon, which causes twine (and rye publish) to fail to run.

See astral-sh/rye#1180 for more details
  • Loading branch information
floherent authored Aug 6, 2024
1 parent 3924b44 commit 6f6ee34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Release

on:
workflow_dispatch: # Manually trigger a release.
# push:
# tags:
# - '[0-9]+.[0-9]+.[0-9]+' # Or whenever a new tag is pushed.

jobs:
publish:
Expand All @@ -17,6 +14,7 @@ jobs:
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
~/.rye/self/bin/pip install importlib_metadata==7.2.1
env:
RYE_VERSION: '0.35.0'
RYE_INSTALL_OPTION: '--yes'
Expand Down

0 comments on commit 6f6ee34

Please sign in to comment.