Accepting request 1009938 from home:bnavigator:branches:devel:languages:python

- Clean up specfile: remove hatch from BuildRequires footprint
- Enable testsuite except for end-to-end which would need extra
  wheelfiles

OBS-URL: https://build.opensuse.org/request/show/1009938
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch-fancy-pypi-readme?expand=0&rev=3
This commit is contained in:
Dirk Mueller 2022-10-12 10:51:32 +00:00 committed by Git OBS Bridge
parent fda2a88d25
commit 1484231f04
2 changed files with 37 additions and 18 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 11 20:51:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Clean up specfile: remove hatch from BuildRequires footprint
- Enable testsuite except for end-to-end which would need extra
wheelfiles
-------------------------------------------------------------------
Tue Oct 4 05:20:35 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-hatch-fancy-pypi-readme
Version: 22.8.0
Release: 0
@ -22,30 +23,36 @@ Summary: Fancy PyPI READMEs with Hatch
License: MIT
URL: https://github.com/hynek/hatch-fancy-pypi-readme
Source: https://files.pythonhosted.org/packages/source/h/hatch-fancy-pypi-readme/hatch_fancy_pypi_readme-%{version}.tar.gz
BuildRequires: %{python_module hatch}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module build}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
# /SECTION
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-generators
%{?python_enable_dependency_generator}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: python-hatch_fancy_pypi_readme = %{version}
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module pytest}
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
BuildArch: noarch
%{?python_enable_dependency_generator}
%python_subpackages
%description
hatch_fancy_pypi_readme is a Hatch metadata plugin for everyone who cares about the first impression of their projects PyPI landing page. It allows you to define your PyPI project description in terms of concatenated fragments that are based on static strings, files, and most importantly: parts of files defined using cut-off points or regular expressions.
hatch_fancy_pypi_readme is a Hatch metadata plugin for everyone who cares about
the first impression of their project's PyPI landing page. It allows you to
define your PyPI project description in terms of concatenated fragments that
are based on static strings, files, and most importantly: parts of files
defined using cut-off points or regular expressions.
Once youve assembled your readme, you can additionally run regular expression-based substitutions over it. For instance to make relative links absolute or to linkify users and issue numbers in your changelog.
Once you've assembled your readme, you can additionally run regular
expression-based substitutions over it. For instance to make relative links
absolute or to linkify users and issue numbers in your changelog.
Do you want your PyPI readme to be the project readme, but without badges, followed by the license file, and the changelog section for only the last release? Youve come to the right place!
Do you want your PyPI readme to be the project readme, but without badges,
followed by the license file, and the changelog section for only the last
release? You've come to the right place!
%prep
%setup -q -n hatch_fancy_pypi_readme-%{version}
@ -58,6 +65,10 @@ Do you want your PyPI readme to be the project readme, but without badges, follo
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/hatch-fancy-pypi-readme
%check
#test_end_to_end want's to have a hatchling wheel
%pytest --ignore tests/test_end_to_end.py
%post
%python_install_alternative hatch-fancy-pypi-readme
@ -65,9 +76,10 @@ Do you want your PyPI readme to be the project readme, but without badges, follo
%python_uninstall_alternative hatch-fancy-pypi-readme
%files %{python_files}
%python_alternative %{_bindir}/hatch-fancy-pypi-readme
%{python_sitelib}/hatch_fancy_pypi_readme*
%doc README.md
%license LICENSE.txt
%doc README.md
%python_alternative %{_bindir}/hatch-fancy-pypi-readme
%{python_sitelib}/hatch_fancy_pypi_readme
%{python_sitelib}/hatch_fancy_pypi_readme-%{version}*-info
%changelog