Closed geodab closed 4 months ago
Thanks for the clear report! Sounds like https://github.com/astral-sh/rye/blob/03d535d29a4f26ed68f446268fb90484b6024e90/rye/src/bootstrap.rs#L51 should be bumped?
Thanks for the clear report! Sounds like
should be bumped?
what the way to bump twine version in rye project?
I can confirm that the fix from @geodab works. My Github actions failed due this bug, but I was able to publish my package locally from my machine.
If anyone are having issues in their Github actions when publishing packages using Rye, I added an additional step that patches Rye with the update Twine and it works fine for me. Consider this is temporary patch though. It uses the environmental variable from setup-rye
.
- name: Set up Rye
uses: eifinger/setup-rye@v3
- name: Patch Rye
run: |
echo "Patching Rye with Twine 5.1.1"
$RYE_HOME/self/bin/pip install twine==5.1.1
Steps to Reproduce
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.
The simplest way to reproduce is to run
~/.rye/self/bin/twine --version
.The error can be fixed by either downgrading importlib_metadata to 7.2.1 or upgrading twine to 5.1.1, e.g., by running either
~/.rye/self/bin/pip install importlib_metadata==7.2.1
or~/.rye/self/bin/pip install twine==5.1.1
.Additional details and explanation can be found at https://github.com/pypa/twine/issues/1125 and https://github.com/abichinger/semantic-release-pypi/pull/39.
Expected Result
Either:
Or:
Actual Result
Version Info
Stacktrace
No response