diff --git a/python-pytest-lazy-fixture.spec b/python-pytest-lazy-fixture.spec index 09d07b9..4ef9524 100644 --- a/python-pytest-lazy-fixture.spec +++ b/python-pytest-lazy-fixture.spec @@ -1,53 +1,50 @@ # Enabled by default %bcond_without tests -%global pypi_name pytest-lazy-fixture - -%global _description %{expand: -Use fixtures in pytest.mark.parametrize.} - -Name: python-%{pypi_name} +Name: python-pytest-lazy-fixture Version: 0.6.3 Release: %autorelease Summary: Use fixtures in pytest.mark.parametrize License: MIT -URL: https://pypi.python.org/pypi/%{pypi_name} -Source0: %pypi_source %{pypi_name} +URL: https://github.com/tvorog/pytest-lazy-fixture +Source0: %{pypi_source pytest-lazy-fixture} BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +Use fixtures in pytest.mark.parametrize.} + %description %_description -%package -n python3-%{pypi_name} +%package -n python3-pytest-lazy-fixture Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: %{py3_dist pytest} -BuildRequires: %{py3_dist setuptools} -%description -n python3-%{pypi_name} %_description +%description -n python3-pytest-lazy-fixture %_description %prep -%autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info +%autosetup -n pytest-lazy-fixture-%{version} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files pytest_lazyfixture %check %if %{with tests} -PYTHONPATH="%{buildroot}/%{python3_sitelib}/" pytest-3 +%pytest %endif -%files -n python3-%{pypi_name} -%license LICENSE +%files -n python3-pytest-lazy-fixture -f %{pyproject_files} +# pyproject_files handles LICENSE; verify with “rpm -qL -p …” %doc README.rst -%{python3_sitelib}/pytest_lazy_fixture-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/pytest_lazyfixture.py -%{python3_sitelib}/__pycache__ %changelog %autochangelog