## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 13; 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 %global pypi_name pytest-venv Name: python-%{pypi_name} Version: 0.2 Release: %autorelease Summary: py.test fixture for creating a virtual environment # SPDX License: MIT URL: https://github.com/mmerickel/pytest-venv Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description pytest-venv is a simple pytest plugin that exposes a venv fixture. The fixture is used to create a new virtual environment which can be used to install packages and run commands inside tests. %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3dist(pytest) %description -n python3-%{pypi_name} pytest-venv is a simple pytest plugin that exposes a venv fixture. The fixture is used to create a new virtual environment which can be used to install packages and run commands inside tests. %prep %autosetup -n %{pypi_name}-%{version} sed -i '/pytest-cov/d' setup.py %generate_buildrequires %pyproject_buildrequires -r -x testing %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pytest_venv %check # All skipped tests require internet. # The last one needs setuptools which is no longer installed by default into Py 3.12+ venvs. %pytest -k "not test_it_installs_dep and not test_it_upgrades_dep and not test_it_installs_editable_dep" %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.rst %changelog * Mon Jun 12 2023 Lumir Balhar - 0.2-13 - SPDX license indentifier * Mon Jun 12 2023 Lumir Balhar - 0.2-12 - Hotfix tests for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 13 2020 Miro Hrončok - 0.2-2 - Don't BR pytest-cov * Thu Jul 09 2020 Lumír Balhar - 0.2-1 - Initial package.