From 4b897a922d3527ae95323cd697282d3faf8261417035689f5e1635df6e70503c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:56:31 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-hatch-fancy-pypi-readme revision 0409ffa515d1cbdb621c0a5cbafd79f2 --- .gitattributes | 23 ++++++ _multibuild | 3 + hatch_fancy_pypi_readme-23.1.0.tar.gz | 3 + python-hatch-fancy-pypi-readme.changes | 43 +++++++++++ python-hatch-fancy-pypi-readme.spec | 103 +++++++++++++++++++++++++ 5 files changed, 175 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 hatch_fancy_pypi_readme-23.1.0.tar.gz create mode 100644 python-hatch-fancy-pypi-readme.changes create mode 100644 python-hatch-fancy-pypi-readme.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..6996b96 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/hatch_fancy_pypi_readme-23.1.0.tar.gz b/hatch_fancy_pypi_readme-23.1.0.tar.gz new file mode 100644 index 0000000..9762861 --- /dev/null +++ b/hatch_fancy_pypi_readme-23.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1df44063094af1e8248ceacd47a92c9cf313d6b9823bf66af8a927c3960287d +size 28241 diff --git a/python-hatch-fancy-pypi-readme.changes b/python-hatch-fancy-pypi-readme.changes new file mode 100644 index 0000000..149ce77 --- /dev/null +++ b/python-hatch-fancy-pypi-readme.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Mon May 22 07:30:03 UTC 2023 - Johannes Kastl + +- update to 23.1.0 (there is no 23.0.0): + The only change is that our CLI now also takes the presence of an + hatch.toml file into account. + The packaging side always supported it. + +------------------------------------------------------------------- +Tue May 16 14:27:31 UTC 2023 - Dirk Müller + +- break dependency cycle between attrs (pulled by pytest) and pytest-hatch-fancy-pypi-readme + +------------------------------------------------------------------- +Fri Apr 21 12:26:07 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:46 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +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 + +- 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 + +- new package python-hatch-fancy-pypi-readme diff --git a/python-hatch-fancy-pypi-readme.spec b/python-hatch-fancy-pypi-readme.spec new file mode 100644 index 0000000..0128510 --- /dev/null +++ b/python-hatch-fancy-pypi-readme.spec @@ -0,0 +1,103 @@ +# +# 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 +%{?sle15_python_module_pythons} +Name: python-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: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-generators +BuildRequires: python-rpm-macros +%if %{with test} +# SECTION test +BuildRequires: %{python_module hatch-fancy-pypi-readme >= %version} +BuildRequires: %{python_module pytest} +# /SECTION +%endif +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. + +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