## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 20; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pytest-steps Version: 1.7.2 Release: %autorelease Summary: Create step-wise / incremental tests in pytest License: BSD-3-Clause URL: https://pypi.org/project/pytest-steps/ Source0: %{pypi_source pytest-steps} BuildArch: noarch BuildRequires: pyproject-rpm-macros %description %{summary}. %package -n python3-pytest-steps Summary: %{summary} %{?python_provide:%python_provide python3-pytest-steps} %description -n python3-pytest-steps %{summary}. %prep %autosetup -n pytest-steps-%{version} # upstream has a pyproject.toml file, but it does not have enough stuff. cat >pyproject.toml <<EOF [build-system] requires = ["pytest-runner", "pytest-harvest", "setuptools_scm", "pypandoc", "six", "wheel", "wrapt", "pandas", "tabulate"] build-backend = "setuptools.build_meta" EOF sed -r -i "s/'pandoc', //" setup.py sed -r -i "s/(TESTS_REQUIRE = \[.*)\]/\1, 'wrapt'\]/" setup.py mv -i -v pytest_steps/tests/conftest.py . %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %check args=( --ignore=pytest_steps/tests/test_with_cases.py # avoid circular dep # Those fail with python-pandas-2.2.1-4.fc41~bootstrap --deselect=pytest_steps/tests/test_steps_harvest.py::test_synthesis --deselect=pytest_steps/tests/test_docs_example_with_harvest.py::test_synthesis_df ) PYTHONPATH=%{buildroot}/%{python3_sitelib} %{__python3} -m pytest -v "${args[@]}" %files -n python3-pytest-steps %license LICENSE %doc README.md %{python3_sitelib}/pytest_steps/ %{python3_sitelib}/pytest_steps-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Sat Sep 28 2024 Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.2-20 - Convert license tag to SPDX * Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.7.2-19 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.2-17 - Skip tests which fail with latest pandas * Mon Jun 10 2024 Python Maint <python-maint@redhat.com> - 1.7.2-15 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.7.2-11 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.7.2-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.7.2-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronÄok <mhroncok@redhat.com> - 1.7.2-2 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.2-1 - Update to latest version (#1795548) * Sat Aug 10 2019 Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl> - 1.6.2-1 - Initial packaging ## END: Generated by rpmautospec