Skip to content

Commit 2cdade2

Browse files
committed
Limit core metadata to version 2.2
1 parent 7ed3e12 commit 2cdade2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

backend/src/hatchling/metadata/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if TYPE_CHECKING:
66
from hatchling.metadata.core import ProjectMetadata
77

8-
DEFAULT_METADATA_VERSION = '2.3'
8+
DEFAULT_METADATA_VERSION = '2.2'
99
LATEST_METADATA_VERSION = '2.3'
1010
CORE_METADATA_PROJECT_FIELDS = {
1111
'Author': ('authors',),

docs/history/hatchling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818

1919
- Metadata for the `wheel` target now defaults to the `PKG-INFO` metadata within source distributions
2020
- Add `dependencies` method to the build hook interface so that hooks can themselves dynamically define dependencies
21-
- Update the default version of core metadata to 2.3
21+
- Update the default version of core metadata to 2.2
2222
- Update SPDX license information to version 3.23
2323
- Improve error message for when the default heuristics for wheel file inclusion fail
2424

docs/plugins/builder/sdist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The builder plugin name is `sdist`.
1616

1717
| Option | Default | Description |
1818
| --- | --- | --- |
19-
| `core-metadata-version` | `"2.3"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use |
19+
| `core-metadata-version` | `"2.2"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use |
2020
| `strict-naming` | `true` | Whether or not file names should contain the normalized version of the project name |
2121
| `support-legacy` | `false` | Whether or not to include a `setup.py` file to support legacy installation mechanisms |
2222

docs/plugins/builder/wheel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The builder plugin name is `wheel`.
1616

1717
| Option | Default | Description |
1818
| --- | --- | --- |
19-
| `core-metadata-version` | `"2.3"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use |
19+
| `core-metadata-version` | `"2.2"` | The version of [core metadata](https://packaging.python.org/specifications/core-metadata/) to use |
2020
| `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` |
2121
| `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` |
2222
| `strict-naming` | `true` | Whether or not file names should contain the normalized version of the project name |

0 commit comments

Comments
 (0)