Skip to content

Commit

Permalink
Force CI to not use broken twine 5.1.0 distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Jun 25, 2024
1 parent 490ce8b commit 6dfd9c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,20 @@ jobs:
python -m pytest
- name: Build A Python Distribution
# Note: We are explicitly using twine 5.0.0 here. There is a bug in twine 5.1.0 (released 5/16/2024) where they
# are not populating the Home-page field in their distribution's wheel metadata file, which causes the twine
# library it to fail on import with the following error:
# Traceback (most recent call last):
# File ".../twine", line 5, in <module>
# from twine.__main__ import main
# File ".../site-packages/twine/__init__.py", line 40, in <module>
# __uri__ = metadata["home-page"]
# ~~~~~~~~^^^^^^^^^^^^^
# File ".../site-packages/importlib_metadata/_adapters.py", line 54, in __getitem__
# raise KeyError(item)
# KeyError: 'home-page'
run: |
pip install build twine
pip install build==1.2.1 twine==5.0.0
python -m build
twine check dist/*
Expand Down

0 comments on commit 6dfd9c0

Please sign in to comment.