Blame SPECS/python-pyproject-metadata.spec

a97c06
# Building the documentation requires the furo Sphinx theme.  But building furo
a97c06
# requires sphinx_theme_builder, which requires this package.  Avoid a
a97c06
# dependency loop with this conditional.
a97c06
%bcond doc 0
a97c06
a97c06
Name:           python-pyproject-metadata
a97c06
Version:        0.8.0
rdobuilder 7cde52
Release:        3%{?dist}
a97c06
Summary:        PEP 621 metadata parsing
a97c06
a97c06
License:        MIT
a97c06
URL:            https://github.com/FFY00/python-pyproject-metadata
a97c06
VCS:            git:%{url}.git
a97c06
Source:         %{url}/archive/%{version}/pyproject-metadata-%{version}.tar.gz
a97c06
a97c06
BuildArch:      noarch
a97c06
a97c06
BuildRequires:  python3-devel
a97c06
BuildRequires:  %{py3_dist docutils}
a97c06
a97c06
%global _desc %{expand:
a97c06
Dataclass for PEP 621 metadata with support for core metadata generation.
a97c06
a97c06
This project does not implement the parsing of pyproject.toml containing
a97c06
PEP 621 metadata.  Instead, given a Python data structure representing
a97c06
PEP 621 metadata (already parsed), it will validate this input and
a97c06
generate a PEP 643-compliant metadata file (e.g. PKG-INFO).}
a97c06
a97c06
%description %_desc
a97c06
a97c06
%package     -n python3-pyproject-metadata
a97c06
Summary:        PEP 621 metadata parsing
a97c06
a97c06
# This can be removed when F40 reaches EOL
a97c06
Obsoletes:      python3-pep621 < 0.5
a97c06
Provides:       python3-pep621 = %{version}-%{release}
a97c06
a97c06
%description -n python3-pyproject-metadata %_desc
a97c06
a97c06
%if %{with doc}
a97c06
%package        doc
a97c06
Summary:        Documentation for python3-pyproject-metadata
a97c06
a97c06
# This can be removed when F40 reaches EOL
a97c06
Obsoletes:      python3-pep621-doc < 0.5
a97c06
Provides:       python3-pep621-doc = %{version}-%{release}
a97c06
a97c06
%description    doc
a97c06
Documentation for python3-pyproject-metadata.
a97c06
%endif
a97c06
a97c06
%prep
a97c06
%autosetup -n pyproject-metadata-%{version}
a97c06
# No need to BuildRequire pytest-cov to run pytest
a97c06
sed -i /pytest-cov/d pyproject.toml
a97c06
a97c06
%generate_buildrequires
a97c06
%pyproject_buildrequires -x test%{?with_doc:,docs}
a97c06
a97c06
%build
a97c06
%pyproject_wheel
a97c06
rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html
a97c06
a97c06
%if %{with doc}
a97c06
# Build the documentation
a97c06
PYTHONPATH=$PWD/build/lib
a97c06
mkdir html
a97c06
sphinx-build -b html docs html
a97c06
rm -rf html/{.buildinfo,.doctrees}
a97c06
%endif
a97c06
a97c06
%install
a97c06
%pyproject_install
a97c06
%pyproject_save_files pyproject_metadata
a97c06
a97c06
%check
a97c06
%pytest
a97c06
a97c06
%files -n python3-pyproject-metadata -f %{pyproject_files}
a97c06
%doc CHANGELOG.html README.md
a97c06
%license LICENSE
a97c06
a97c06
%if %{with doc}
a97c06
%files doc
a97c06
%doc html
a97c06
%endif
a97c06
a97c06
%changelog
rdobuilder 7cde52
* Wed Jul 17 2024 Jerry James <loganjerry@gmail.com> - 0.8.0-3
rdobuilder 7cde52
- Add VCS field
rdobuilder 7cde52
rdobuilder 7cde52
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.8.0-2
rdobuilder 7cde52
- Rebuilt for Python 3.13
rdobuilder 7cde52
rdobuilder 7cde52
* Thu Apr 18 2024 Jerry James <loganjerry@gmail.com> - 0.8.0-1
rdobuilder 7cde52
- Version 0.8.0
rdobuilder 7cde52
- Drop now unnecessary test patch
rdobuilder 7cde52
- Minor spec file simplifications
rdobuilder 7cde52
rdobuilder 7cde52
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
rdobuilder 7cde52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 7cde52
rdobuilder 7cde52
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
rdobuilder 7cde52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 7cde52
rdobuilder 7cde52
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-4
rdobuilder 7cde52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 7cde52
rdobuilder 7cde52
* Tue Jul 11 2023 Miro HronĨok <mhroncok@redhat.com> - 0.7.1-3
rdobuilder 7cde52
- Drop an unused build requirement on pytest-cov
rdobuilder 7cde52
rdobuilder 7cde52
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.7.1-2
rdobuilder 7cde52
- Rebuilt for Python 3.12
rdobuilder 7cde52
rdobuilder 7cde52
* Thu Feb 23 2023 Jerry James <loganjerry@gmail.com> - 0.7.1-1
rdobuilder 7cde52
- Dynamically generate BuildRequires
rdobuilder 7cde52
rdobuilder 7cde52
* Mon Jan 30 2023 Jerry James <loganjerry@gmail.com> - 0.7.1-1
rdobuilder 7cde52
- Version 0.7.1
rdobuilder 7cde52
- Drop packaging workaround, resolved upstream
rdobuilder 7cde52
rdobuilder 7cde52
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
rdobuilder 7cde52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 7cde52
rdobuilder 7cde52
* Wed Jan 18 2023 Jerry James <loganjerry@gmail.com> - 0.7.0-2
rdobuilder 7cde52
- Work around FTI due to version of packaging (rhbz#2161981)
rdobuilder 7cde52
rdobuilder 7cde52
* Tue Jan 17 2023 Jerry James <loganjerry@gmail.com> - 0.7.0-1
rdobuilder 7cde52
- Version 0.7.0
rdobuilder 7cde52
rdobuilder 7cde52
* Tue Jul 26 2022 Jerry James <loganjerry@gmail.com> - 0.6.1-1
rdobuilder 7cde52
- Initial RPM, obsoleting python-pep621