14
0
Files
python-pyproject-metadata/python-pyproject-metadata.spec
Matej Cepl 7e58523c65 Accepting request 1253055 from home:fstegmeier:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1253055
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-metadata?expand=0&rev=9
2025-03-14 13:15:53 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-pyproject-metadata
#
# Copyright (c) 2025 SUSE LLC
#
# 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.9.1
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