Skip to content

Commit

Permalink
Limit metadata version for Jazzband's release process
Browse files Browse the repository at this point in the history
Attempting to release with 2.3 caused the following:

Uploading distributions to https://upload.pypi.org/legacy/ [31mERROR [0m InvalidDistribution: Metadata is missing required fields: Name, Version. Make sure the distribution includes the files where those fields are specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1, 2.2.
  • Loading branch information
tim-schilling committed May 26, 2024
1 parent 15dc305 commit 202c831
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ dependencies = [
Download = "https://pypi.org/project/django-debug-toolbar/"
Homepage = "https://github.com/jazzband/django-debug-toolbar"

[tool.hatch.build.targets.sdist]
# Jazzband's release process is limited to 2.2 metadata
core-metadata-version = "2.2"

[tool.hatch.build.targets.wheel]
packages = ["debug_toolbar"]
# Jazzband's release process is limited to 2.2 metadata
core-metadata-version = "2.2"

[tool.hatch.version]
path = "debug_toolbar/__init__.py"
Expand Down

0 comments on commit 202c831

Please sign in to comment.