Accepting request 1010203 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1010203 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch-fancy-pypi-readme?expand=0&rev=2
This commit is contained in:
commit
09e6316cce
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user