From 1484231f041076c227199694f21c2aa38cde68c4c48995528101c1adda76bafe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 12 Oct 2022 10:51:32 +0000 Subject: [PATCH] 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 --- python-hatch-fancy-pypi-readme.changes | 7 ++++ python-hatch-fancy-pypi-readme.spec | 48 ++++++++++++++++---------- 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/python-hatch-fancy-pypi-readme.changes b/python-hatch-fancy-pypi-readme.changes index 13affb3..08ae15e 100644 --- a/python-hatch-fancy-pypi-readme.changes +++ b/python-hatch-fancy-pypi-readme.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 11 20:51:59 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-hatch-fancy-pypi-readme.spec b/python-hatch-fancy-pypi-readme.spec index 913a580..6678c2e 100644 --- a/python-hatch-fancy-pypi-readme.spec +++ b/python-hatch-fancy-pypi-readme.spec @@ -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 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. +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 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. +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? You’ve 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