Accepting request 1099550 from devel:languages:python:pytest
- Fix build error for Leap. OBS-URL: https://build.opensuse.org/request/show/1099550 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=12
This commit is contained in:
commit
f489131cf6
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 19 13:34:19 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix build error for Leap.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 1 10:15:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Jun 1 10:15:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -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,19 +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
|
||||||
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
|
||||||
|
sed -i 's:env python:env python%{python_bin_suffix}:' tests/test_run_scripts.py
|
||||||
|
%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