Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-hatch-fancy-pypi-readme revision ed1a037a0ce078f75450c524d5738f55
This commit is contained in:
commit
64ab7d4c13
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
BIN
hatch_fancy_pypi_readme-23.1.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
hatch_fancy_pypi_readme-23.1.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
5
saltbundlepy-hatch-fancy-pypi-readme.changes
Normal file
5
saltbundlepy-hatch-fancy-pypi-readme.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 14 13:30:05 UTC 2023 - Victor Zhestkov <vzhestkov@suse.com>
|
||||
|
||||
- First package submission based on python-hatch-fancy-pypi-readme
|
||||
from SLE-15-SP5:Updates with version 23.1.0
|
104
saltbundlepy-hatch-fancy-pypi-readme.spec
Normal file
104
saltbundlepy-hatch-fancy-pypi-readme.spec
Normal file
@ -0,0 +1,104 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 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/
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
|
||||
%define pythons saltbundlepy
|
||||
|
||||
Name: saltbundlepy-hatch-fancy-pypi-readme%{psuffix}
|
||||
Version: 23.1.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: %{saltbundlepy_module base >= 3.7}
|
||||
BuildRequires: %{saltbundlepy_module hatchling}
|
||||
BuildRequires: %{saltbundlepy_module pip}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: saltbundlepy-rpm-macros
|
||||
%if %{with test}
|
||||
# SECTION test
|
||||
BuildRequires: %{saltbundlepy_module hatch-fancy-pypi-readme >= %version}
|
||||
BuildRequires: %{saltbundlepy_module pytest}
|
||||
# /SECTION
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%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.
|
||||
|
||||
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!
|
||||
|
||||
%prep
|
||||
%setup -q -n hatch_fancy_pypi_readme-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/hatch-fancy-pypi-readme
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
#test_end_to_end want's to have a hatchling wheel
|
||||
%pytest --ignore tests/test_end_to_end.py
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative hatch-fancy-pypi-readme
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative hatch-fancy-pypi-readme
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%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
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user