Skip to content

Commit 202c831

Browse files
committed
Limit metadata version for Jazzband's release process
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.
1 parent 15dc305 commit 202c831

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ dependencies = [
4242
Download = "https://pypi.org/project/django-debug-toolbar/"
4343
Homepage = "https://github.com/jazzband/django-debug-toolbar"
4444

45+
[tool.hatch.build.targets.sdist]
46+
# Jazzband's release process is limited to 2.2 metadata
47+
core-metadata-version = "2.2"
48+
4549
[tool.hatch.build.targets.wheel]
4650
packages = ["debug_toolbar"]
51+
# Jazzband's release process is limited to 2.2 metadata
52+
core-metadata-version = "2.2"
4753

4854
[tool.hatch.version]
4955
path = "debug_toolbar/__init__.py"

0 commit comments

Comments
 (0)