Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=23
This commit is contained in:
parent
525ac7f255
commit
73c94232ea
@ -24,7 +24,8 @@ Summary: Pytest plugin for testing console scripts
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/kvas-it/pytest-console-scripts
|
URL: https://github.com/kvas-it/pytest-console-scripts
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pytest >= 4.0.0
|
Requires: python-pytest >= 4.0.0
|
||||||
@ -49,23 +50,24 @@ much as possible.
|
|||||||
%autosetup -n pytest-console-scripts-%{version} -p1
|
%autosetup -n pytest-console-scripts-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
sed -i 's:env python:env python3:' tests/test_run_scripts.py
|
sed -i 's:env python:env python3:' tests/test_run_scripts.py
|
||||||
%else
|
%else
|
||||||
sed -i 's:env python:env python%python_bin_suffix:' tests/test_run_scripts.py
|
sed -i 's:env python:env python%{python_bin_suffix}:' tests/test_run_scripts.py
|
||||||
%endif
|
%endif
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pytest_console_scripts
|
||||||
|
%{python_sitelib}/pytest_console_scripts-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user