From 9271c986e8c5068463b4b606ff17057d5c9d53e3 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 4 Oct 2024 16:45:27 -0400 Subject: [PATCH] chore: clean up SDist and extra file Signed-off-by: Henry Schreiner --- CHANGELOG.rst | 166 ------------------------------------------------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 167 deletions(-) delete mode 100644 CHANGELOG.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst deleted file mode 100644 index f4d3173..0000000 --- a/CHANGELOG.rst +++ /dev/null @@ -1,166 +0,0 @@ -+++++++++ -Changelog -+++++++++ - -0.9.0 (beta 5: 27-09-2024) -========================== - -Features: - -- Add TypedDict's in new module for typing pyproject.toml dicts -- ``all_errors=True`` causes ``ExceptionGroup``'s to be emitted -- Support METADATA 2.1+ JSON format with new ``.as_json()`` method - - -Internal and CI: - -- Require 100% coverage - -Refactoring: - -- Spit up over multiple files -- Remove data fetcher, use static types wherever possible - - - -0.9.0 (WIP) -=========== - -This release adds PEP 639 support (METADATA 2.4), refactors the RFC messages, -and adds a lot of validation (including warnings and opt-in errors). The beta -releases are intended for backend authors to try out the changes before a final -release. - -Features: - -- Added PEP 639 support for SPDX license and license files, METADATA 2.4 -- Validate extra keys (warning, opt-in error) -- Validate project name -- Validate entrypoint group names -- Setting a non-dynamic field is an error - -Fixes: - -- Correct typing for emails -- Match EmailMessage spacing -- Handle multilines the way setuptools does with smart indentation -- Warn on multiline Summary (``project.description``) - - -Refactoring: - -- Move fetcher methods -- Put validation in method -- Make ``RFC822Message`` compatible with and subclass of ``EmailMessage`` class with support for Unicode -- Remove indirection accessing metadata_version, add ``auto_metadata_version`` -- Rework how dynamic works, add ``dynamic_metadata`` -- Use dataclass instead of named tuple -- chore: use named arguments instead of positional - - -Internal and CI: - -- Add 3.13 to testing -- Add ruff-format -- Actions and dependabot -- Better changelog auto-generation -- Generate GitHub attestations for releases -- Add PyPI attestations -- ``macos-latest`` now points at ``macos-14`` -- Refactor and cleanup tests -- Add human readable IDs to tests -- Fix coverage context - - -0.8.0 (17-04-2024) -================== - -- Support specifying the ``metadata_version`` as 2.1, 2.2, or 2.3 -- Always normalize extras following PEP 685 -- Preserve the user-specified name style in the metadata. ``.canonical_name`` added to get the normalized name -- Require "version" in the dynamic table if unset (following PEP 621) -- Support extras using markers containing "or" -- Support empty extras -- Using ``.as_rfc822()`` no longer modifies the metadata object -- Fix email-author listing for names containing commas -- Separate core metadata keywords with commas, following the (modified) spec -- An error message reported ``project.license`` instead of ``project.readme`` -- Produce slightly cleaner tracebacks - Fix a typo in an exception message -- Subclasses now type check correctly -- The build backend is now ``flit-core`` - - -0.7.1 (30-01-2023) -================== - -- Relax ``pypa/packaging`` dependency - - -0.7.0 (18-01-2023) -================== - -- Use UTF-8 when opening files -- Use ``tomllib`` on Python >= 3.11 - - -0.6.1 (07-07-2022) -================== - -- Avoid first and last newlines in license contents - - -0.6.0 (06-07-2022) -================== - -- Make license and readme files ``pathlib.Path`` instances -- Add the license contents to the metadata file -- Add support for multiline data in metadata fields - - -0.5.0 (09-06-2022) -================== - -- Renamed project to ``pyproject_metadata`` -- Support multiple clauses in requires-python -- Error out when dynamic fields are defined -- Update dynamic field when setting version - - -0.4.0 (30-09-2021) -================== - -- Use Core Metadata 2.1 if possible -- Fix bug preventing empty README and license files from being used - - -0.3.1 (25-09-2021) -================== - -- Avoid core metadata ``Author``/``Maintainer`` fields in favor of ``Author-Email``/``Maintainer-Email`` - - -0.3.0.post2 (15-09-2021) -======================== - -- Fix Python version requirement - - -0.3.0.post1 (13-09-2021) -======================== - -- Add documentation - - -0.3.0 (13-09-2021) -================== - -- Added ``RFC822Message`` -- Refactor ``StandardMetadata`` as a dataclass -- Added ``StandardMetadata.write_to_rfc822`` and ``StandardMetadata.as_rfc822`` - - -0.1.0 (25-08-2021) -================== - -- Initial release diff --git a/pyproject.toml b/pyproject.toml index 6bdde2c..5fb6e1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ changelog = "https://pep621.readthedocs.io/en/stable/changelog.html" homepage = "https://github.com/pypa/pyproject-metadata" [tool.flit.sdist] -include = ["LICENSE", "tests/**", "docs/**", "CHANGELOG.rst"] +include = ["LICENSE", "tests/**", "docs/**", ".gitignore"] [tool.pytest.ini_options]