%global _empty_manifest_terminate_build 0
%global pypi_name pyproject-metadata
Name: python-%{pypi_name}
Version: 0.11.0
Release: 1
Summary: PEP 621 metadata parsing
License: MIT
URL: https://pypi.org/project/pyproject-metadata/
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/pyproject_metadata-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-pip
BuildRequires: python3-devel
BuildRequires: python3-packaging
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-wheel
BuildRequires: python3-flit-core
%description
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)
%package -n python3-%{pypi_name}
Summary: PEP 621 metadata parsing
Requires: python3-packaging
%description -n python3-%{pypi_name}
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 -n pyproject_metadata-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitelib}/pyproject_metadata-*.dist-info/
%{python3_sitelib}/pyproject_metadata
%changelog
* Thu Jun 25 2026 liutao1 <liutao1@kylinos.cn> - 0.11.0-1
- Update package to version 0.11.0
- Refactor internals around metadata conversion and validation.
- Improve error messages for some validation cases.
- Add downstream project testing and remove remaining PEP 621 terminology.
* Tue Nov 25 2025 wanggang <wanggang1@kylinos.cn> - 0.10.0-1
- Update package to version 0.10.0
- Features: Support import-names(paces) and Remove Python 3.7 support.
- BugFixe: Minimum supported version of packaging corrected.
* Sun Apr 20 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.9.1-1
- Update package with version 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
* Mon Jul 31 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.7.1-1
- Package init