Blame SPECS/python-hatch-fancy-pypi-readme.spec

rdobuilder f42ee9
Name:           python-hatch-fancy-pypi-readme
rdobuilder f42ee9
Version:        22.3.0
rdobuilder f42ee9
Release:        4%{?dist}
rdobuilder f42ee9
Summary:        Hatch plugin for writing fancy PyPI readmes
rdobuilder f42ee9
rdobuilder f42ee9
License:        MIT
rdobuilder f42ee9
URL:            https://github.com/hynek/hatch-fancy-pypi-readme
rdobuilder f42ee9
Source0:        %{pypi_source hatch_fancy_pypi_readme}
rdobuilder f42ee9
rdobuilder f42ee9
BuildArch:      noarch
rdobuilder f42ee9
BuildRequires:  python3-devel
rdobuilder f42ee9
BuildRequires:  python3dist(pytest)
rdobuilder f42ee9
rdobuilder f42ee9
Requires:       python3dist(hatchling)
rdobuilder f42ee9
rdobuilder f42ee9
%global common_description %{expand:
rdobuilder f42ee9
This provides a Hatch metadata plugin for everyone who cares about the
rdobuilder f42ee9
first impression of their project’s PyPI landing page. It allows you to
rdobuilder f42ee9
define your PyPI project description in terms of concatenated fragments
rdobuilder f42ee9
that are based on static strings, files, and most importantly: parts of
rdobuilder f42ee9
files defined using cut-off points or regular expressions.}
rdobuilder f42ee9
rdobuilder f42ee9
%description %{common_description}
rdobuilder f42ee9
rdobuilder f42ee9
rdobuilder f42ee9
%package -n python3-hatch-fancy-pypi-readme
rdobuilder f42ee9
Summary:        %{summary}
rdobuilder f42ee9
rdobuilder f42ee9
%description -n python3-hatch-fancy-pypi-readme %{common_description}
rdobuilder f42ee9
rdobuilder f42ee9
rdobuilder f42ee9
%prep
rdobuilder f42ee9
%autosetup -n hatch_fancy_pypi_readme-%{version} -p1
rdobuilder f42ee9
rdobuilder f42ee9
# https://github.com/hynek/hatch-fancy-pypi-readme/commit/6c06d7244183c5b71aed905c9950e3206e5f0a9e
rdobuilder f42ee9
# Drop unwanted build dependencies that upstream already dropped
rdobuilder f42ee9
sed -i 's/ \"pytest-icdiff\", \"coverage\[toml\]\", //g' pyproject.toml
rdobuilder f42ee9
rdobuilder f42ee9
%generate_buildrequires
rdobuilder f42ee9
%pyproject_buildrequires -R
rdobuilder f42ee9
rdobuilder f42ee9
%build
rdobuilder f42ee9
%pyproject_wheel
rdobuilder f42ee9
rdobuilder f42ee9
%install
rdobuilder f42ee9
%pyproject_install
rdobuilder f42ee9
%pyproject_save_files hatch_fancy_pypi_readme
rdobuilder f42ee9
rdobuilder f42ee9
%check
rdobuilder f42ee9
%pyproject_check_import
rdobuilder f42ee9
# test_end_to_end need network access
rdobuilder f42ee9
%pytest -v -k "not test_end_to_end"
rdobuilder f42ee9
rdobuilder f42ee9
%files -n python3-hatch-fancy-pypi-readme -f %{pyproject_files}
rdobuilder f42ee9
%license LICENSE.txt
rdobuilder f42ee9
%doc README.md
rdobuilder f42ee9
%{_bindir}/hatch-fancy-pypi-readme
rdobuilder f42ee9
rdobuilder f42ee9
%changelog
rdobuilder f42ee9
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 22.3.0-4
rdobuilder f42ee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder f42ee9
rdobuilder f42ee9
* Mon Sep 19 2022 Parag Nemade <pnemade AT redhat DOT com> - 22.3.0-3
rdobuilder f42ee9
- Updated as per suggestions given for this package review (#2123618)
rdobuilder f42ee9
rdobuilder f42ee9
* Mon Sep 05 2022 Parag Nemade <pnemade AT redhat DOT com> - 22.3.0-2
rdobuilder f42ee9
- Updated as per suggestions given for this package review (#2123618)
rdobuilder f42ee9
rdobuilder f42ee9
* Fri Sep 02 2022 Parag Nemade <pnemade AT redhat DOT com> - 22.3.0-1
rdobuilder f42ee9
- Initial release