forked from pool/python-hatch-fancy-pypi-readme
- break dependency cycle between attrs (pulled by pytest) and pytest-hatch-fancy-pypi-readme
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch-fancy-pypi-readme?expand=0&rev=7
This commit is contained in:
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 16 14:27:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Fri Apr 21 12:26:07 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -16,6 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%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}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hatch-fancy-pypi-readme
|
Name: python-hatch-fancy-pypi-readme
|
||||||
Version: 22.8.0
|
Version: 22.8.0
|
||||||
@@ -30,9 +38,12 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-generators
|
BuildRequires: python-rpm-generators
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
# SECTION test
|
# SECTION test
|
||||||
|
BuildRequires: %{python_module hatch-fancy-pypi-readme >= %version}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
|
Provides: python-hatch_fancy_pypi_readme = %{version}-%{release}
|
||||||
@@ -62,13 +73,17 @@ release? You've come to the right place!
|
|||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/hatch-fancy-pypi-readme
|
%python_clone -a %{buildroot}%{_bindir}/hatch-fancy-pypi-readme
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
#test_end_to_end want's to have a hatchling wheel
|
#test_end_to_end want's to have a hatchling wheel
|
||||||
%pytest --ignore tests/test_end_to_end.py
|
%pytest --ignore tests/test_end_to_end.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative hatch-fancy-pypi-readme
|
%python_install_alternative hatch-fancy-pypi-readme
|
||||||
@@ -76,11 +91,13 @@ release? You've come to the right place!
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative hatch-fancy-pypi-readme
|
%python_uninstall_alternative hatch-fancy-pypi-readme
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/hatch-fancy-pypi-readme
|
%python_alternative %{_bindir}/hatch-fancy-pypi-readme
|
||||||
%{python_sitelib}/hatch_fancy_pypi_readme
|
%{python_sitelib}/hatch_fancy_pypi_readme
|
||||||
%{python_sitelib}/hatch_fancy_pypi_readme-%{version}*-info
|
%{python_sitelib}/hatch_fancy_pypi_readme-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user