Accepting request 1007786 from systemsmanagement:ansible

new package python-hatch-fancy-pypi-readme, needed as dependency for python-jsonschema; %checks are disabled, as they require network connectivity

OBS-URL: https://build.opensuse.org/request/show/1007786
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch-fancy-pypi-readme?expand=0&rev=1
This commit is contained in:
2022-10-04 07:39:27 +00:00
committed by Git OBS Bridge
commit 083ab2967f
5 changed files with 113 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da91282ca09601c18aded8e378daf8b578c70214866f0971156ee9bb9ce6c26a
size 26511

View File

@@ -0,0 +1,13 @@
-------------------------------------------------------------------
Tue Oct 4 05:20:35 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- update to 22.8.0:
* The only change is a new feature for file fragments:
start-at which behaves like start-after, but preserves the string that
is searched for.
Here's a real-world example of how it can simplify your configuration.
-------------------------------------------------------------------
Mon Sep 26 05:40:36 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- new package python-hatch-fancy-pypi-readme

View File

@@ -0,0 +1,73 @@
#
# spec file for package python-hatch-fancy-pypi-readme
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-hatch-fancy-pypi-readme
Version: 22.8.0
Release: 0
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 hatchling}
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module build}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
# /SECTION
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}
BuildArch: noarch
%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.
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.
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!
%prep
%setup -q -n hatch_fancy_pypi_readme-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/hatch-fancy-pypi-readme
%post
%python_install_alternative hatch-fancy-pypi-readme
%postun
%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
%changelog