From 3419a1ca5bd1bea72a4bdfe7a1b0ec8fafa2d6ed888775fa54cfa8f918759b7a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 26 Jan 2026 08:24:05 +0000 Subject: [PATCH] - update to 0.10.0: * This release adds support for PEP 794 (METADATA 2.5), the new import-names(paces) fields. Support hasn't rolled out in other packages yet, but once it does, you can be ready for it with this release. * As usual, nothing changes if you don't specify the new fields or the new METADATA version. * Add PyPy 3.11 testing * Add Python 3.14 classifier * Use PEP 639 license * Use dependency groups * Enable branch coverage * Enabled most Ruff linting rules on codebase - Required by meson-python OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-metadata?expand=0&rev=11 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + pyproject-metadata-0.10.0.tar.gz | 3 ++ pyproject-metadata-0.9.1.tar.gz | 3 ++ python-pyproject-metadata.changes | 65 +++++++++++++++++++++++++++ python-pyproject-metadata.spec | 74 +++++++++++++++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyproject-metadata-0.10.0.tar.gz create mode 100644 pyproject-metadata-0.9.1.tar.gz create mode 100644 python-pyproject-metadata.changes create mode 100644 python-pyproject-metadata.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyproject-metadata-0.10.0.tar.gz b/pyproject-metadata-0.10.0.tar.gz new file mode 100644 index 0000000..aae612b --- /dev/null +++ b/pyproject-metadata-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0e5d416d0851b89198cb112ff568adbb75da7d4941ca23f5a16690163785277 +size 42348 diff --git a/pyproject-metadata-0.9.1.tar.gz b/pyproject-metadata-0.9.1.tar.gz new file mode 100644 index 0000000..3409b55 --- /dev/null +++ b/pyproject-metadata-0.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95213045cf74cb32642034ccb4b3223c2a4337fa675fa886cbd48be6780241c7 +size 39829 diff --git a/python-pyproject-metadata.changes b/python-pyproject-metadata.changes new file mode 100644 index 0000000..0f716ff --- /dev/null +++ b/python-pyproject-metadata.changes @@ -0,0 +1,65 @@ +------------------------------------------------------------------- +Mon Jan 26 08:23:32 UTC 2026 - Dirk Müller + +- update to 0.10.0: + * This release adds support for PEP 794 (METADATA 2.5), + the new import-names(paces) fields. Support hasn't rolled out + in other packages yet, but once it does, you can be ready for + it with this release. + * As usual, nothing changes if you don't specify the new fields + or the new METADATA version. + * Add PyPy 3.11 testing + * Add Python 3.14 classifier + * Use PEP 639 license + * Use dependency groups + * Enable branch coverage + * Enabled most Ruff linting rules on codebase + +------------------------------------------------------------------- +Fri Mar 14 12:20:13 UTC 2025 - Felix Stegmeier + +- Update to 0.9.1 + + * Added PEP 639 support for SPDX license and license files, METADATA 2.4 + * Validate extra keys (warning, opt-in error) + * Functions to check top level and build-system (including PEP 735 support) + * 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 + * Handle multilines the way setuptools does with smart indentation + * Warn on multiline Summary (project.description) + * Improve locking for just metadata fields + * Error on extra keys in author/maintainer + * URL name stylization removed matching PEP 753 + * Handle form feed for Python <3.12.4 + * Some touchup based on packaging PR + + +------------------------------------------------------------------- +Thu Aug 17 12:49:35 UTC 2023 - Markéta Machová + +- update to 0.7.1 + * Use UTF-8 when opening files + * Use tomllib on Python >= 3.11 + +------------------------------------------------------------------- +Fri Apr 21 12:31:11 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:52 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Jan 2 10:18:48 UTC 2023 - Ben Greiner + +- Skip a test failing due to new error strings in packaging 22 + gh#FFY00/python-pyproject-metadata#41 + +------------------------------------------------------------------- +Sat Sep 10 21:25:27 UTC 2022 - Ben Greiner + +- Initial specfile for v 0.6.1 +- Required by meson-python diff --git a/python-pyproject-metadata.spec b/python-pyproject-metadata.spec new file mode 100644 index 0000000..4b9a40d --- /dev/null +++ b/python-pyproject-metadata.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-pyproject-metadata +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pyproject-metadata +Version: 0.10.0 +Release: 0 +Summary: PEP 621 metadata parsing +License: MIT +URL: https://github.com/FFY00/python-pyproject-metadata +Source: https://github.com/FFY00/python-pyproject-metadata/archive/refs/tags/%{version}.tar.gz#/pyproject-metadata-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module packaging >= 19} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 42} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-packaging >= 19 +BuildArch: noarch +# SECTION test +BuildRequires: %{python_module pytest} +%if 0%{python_version_nodots} < 311 +BuildRequires: %{python_module tomli >= 1.0.0} +%endif +# /SECTION +%python_subpackages + +%description +Dataclass for PEP 621 metadata with support for core metadata generation + +This project does not implement the parsing of `pyproject.toml` +containing PEP 621 metadata. + +Instead, given a Python data structure representing PEP 621 metadata (already +parsed), it will validate this input and generate a PEP 643-compliant metadata +file (e.g. `PKG-INFO`). + +%prep +%autosetup -p1 -n pyproject-metadata-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/pyproject_metadata +%{python_sitelib}/pyproject_metadata-%{version}*-info + +%changelog