Skip to content

Commit

Permalink
Upgrade twine from 4.0.2 to 5.1.1
Browse files Browse the repository at this point in the history
Packaging opda with importlib_metadata 8.0.0 and twine 4.0.2 raises
an exception: "KeyError: 'license'". The exception results from a
change in importlib_metadata where requesting missing metadata used
to return None but now raises a KeyError. Upgrading twine to 5.1.1
resolves the issue.

For more information, see pypa/twine#977
which discusses the missing license metadata in twine 4.0.2, and
see pypa/twine#1125 for how the release
of importlib_metadata 8.0.0 triggered the issue.
  • Loading branch information
nicholaslourie committed Aug 1, 2024
1 parent 4c29921 commit 6565fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test = [
]
package = [
"build == 1.0.3",
"twine == 4.0.2",
"twine == 5.1.1",
]
ci = [
"lxml == 5.1.0",
Expand Down

0 comments on commit 6565fc9

Please sign in to comment.