From 2cdade270783f29972bcafdd52573541d1f1a489 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Fri, 15 Mar 2024 22:42:38 -0400 Subject: [PATCH] Limit core metadata to version 2.2 --- backend/src/hatchling/metadata/spec.py | 2 +- docs/history/hatchling.md | 2 +- docs/plugins/builder/sdist.md | 2 +- docs/plugins/builder/wheel.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/hatchling/metadata/spec.py b/backend/src/hatchling/metadata/spec.py index 501a88260..c3616a268 100644 --- a/backend/src/hatchling/metadata/spec.py +++ b/backend/src/hatchling/metadata/spec.py @@ -5,7 +5,7 @@ if TYPE_CHECKING: from hatchling.metadata.core import ProjectMetadata -DEFAULT_METADATA_VERSION = '2.3' +DEFAULT_METADATA_VERSION = '2.2' LATEST_METADATA_VERSION = '2.3' CORE_METADATA_PROJECT_FIELDS = { 'Author': ('authors',), diff --git a/docs/history/hatchling.md b/docs/history/hatchling.md index 0e40e9d49..f34ef9cb4 100644 --- a/docs/history/hatchling.md +++ b/docs/history/hatchling.md @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Metadata for the `wheel` target now defaults to the `PKG-INFO` metadata within source distributions - Add `dependencies` method to the build hook interface so that hooks can themselves dynamically define dependencies -- Update the default version of core metadata to 2.3 +- Update the default version of core metadata to 2.2 - Update SPDX license information to version 3.23 - Improve error message for when the default heuristics for wheel file inclusion fail diff --git a/docs/plugins/builder/sdist.md b/docs/plugins/builder/sdist.md index eed7f017b..21c926241 100644 --- a/docs/plugins/builder/sdist.md +++ b/docs/plugins/builder/sdist.md @@ -16,7 +16,7 @@ The builder plugin name is `sdist`. | Option | Default | Description | | --- | --- | --- | -| `core-metadata-version` | `"2.3"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use | +| `core-metadata-version` | `"2.2"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use | | `strict-naming` | `true` | Whether or not file names should contain the normalized version of the project name | | `support-legacy` | `false` | Whether or not to include a `setup.py` file to support legacy installation mechanisms | diff --git a/docs/plugins/builder/wheel.md b/docs/plugins/builder/wheel.md index 62a29d1a1..164792b45 100644 --- a/docs/plugins/builder/wheel.md +++ b/docs/plugins/builder/wheel.md @@ -16,7 +16,7 @@ The builder plugin name is `wheel`. | Option | Default | Description | | --- | --- | --- | -| `core-metadata-version` | `"2.3"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use | +| `core-metadata-version` | `"2.2"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use | | `shared-data` | | A mapping similar to the [forced inclusion](../../config/build.md#forced-inclusion) option corresponding to [data](https://peps.python.org/pep-0427/#the-data-directory) that will be installed globally in a given Python environment, usually under `#!python sys.prefix` | | `extra-metadata` | | A mapping similar to the [forced inclusion](../../config/build.md#forced-inclusion) option corresponding to extra [metadata](https://peps.python.org/pep-0427/#the-dist-info-directory) that will be shipped in a directory named `extra_metadata` | | `strict-naming` | `true` | Whether or not file names should contain the normalized version of the project name |