forked from pool/python-devpi-client
Accepting request 809420 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809420 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-devpi-client?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 07:22:38 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 12 00:54:29 CET 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ Requires: python-pluggy >= 0.6.0
|
||||
Requires: python-py >= 1.4.31
|
||||
Requires: python-tox >= 3.1.0
|
||||
Requires: python-wheel
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: git-core
|
||||
Recommends: python-Sphinx
|
||||
BuildArch: noarch
|
||||
@@ -72,6 +74,7 @@ sed -i 's/"python", "setup.py"/sys.executable, "setup.py"/' testing/test_test.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/devpi
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -79,12 +82,19 @@ export LANG=en_US.UTF-8
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export PATH=$PATH:%{buildroot}/%{_bindir}
|
||||
# Unknown failures https://github.com/devpi/devpi/issues/706
|
||||
%pytest -k 'not (test_simple_install_new_venv_workflow or test_simple_install_activated_venv_workflow)'
|
||||
# test_help: devpi binary is not available (update-alternatives)
|
||||
%pytest -k 'not (test_simple_install_new_venv_workflow or test_simple_install_activated_venv_workflow or test_help)'
|
||||
|
||||
%post
|
||||
%python_install_alternative devpi
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative devpi
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/devpi
|
||||
%python_alternative %{_bindir}/devpi
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user