From 202c831a8f8cf0d134c1a11d141f777ce38c650f Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Sun, 26 May 2024 09:34:53 -0500 Subject: [PATCH] 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. --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 5e8a47516..f44d5188e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"