14
0
forked from pool/python-tox

Accepting request 702057 from home:mcepl:branches:devel:languages:python

- Update to 3.8.1
- Switch build macros to PEP-518 compatible ones

OBS-URL: https://build.opensuse.org/request/show/702057
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=51
This commit is contained in:
2019-05-10 20:13:11 +00:00
committed by Git OBS Bridge
parent 1528b03197
commit 54614f8cea
4 changed files with 80 additions and 10 deletions

View File

@@ -16,9 +16,14 @@
#
%{?!pyproject_wheel:%define pyproject_wheel %python_expand $python -mpip wheel --no-deps %{?py_setup_args:--build-option %{py_setup_args}} --use-pep517 --no-build-isolation --progress-bar off --verbose .}
# No such option: --strip-file-prefix %%{buildroot}
%{?!pyproject_install:%define pyproject_install %python_expand $python -mpip install --root %{buildroot} --no-deps --progress-bar off *.whl}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tox
Version: 3.7.0
Version: 3.8.1
Release: 0
Summary: Virtualenv-based automation of test activities
License: MIT
@@ -27,6 +32,7 @@ URL: https://github.com/tox-dev/tox
Source: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz
BuildRequires: %{python_module filelock}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pathlib2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pluggy >= 0.3.0}
BuildRequires: %{python_module py >= 1.4.17}
@@ -35,11 +41,12 @@ BuildRequires: %{python_module pytest-cov >= 2.5.1}
BuildRequires: %{python_module pytest-mock >= 1.10.0}
BuildRequires: %{python_module pytest-timeout >= 1.3.0}
BuildRequires: %{python_module pytest-xdist >= 1.22.2}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools >= 41.0.1}
BuildRequires: %{python_module setuptools_scm >= 2.0.0}
BuildRequires: %{python_module six >= 1.0.0}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module virtualenv >= 1.11.2}
BuildRequires: %{python_module wheel >= 0.29.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
@@ -102,10 +109,12 @@ This is the HTML documentation for tox package.
rm -f tests/unit/test_z_cmdline.py
%build
%python_build
export LANG=en_US.UTF8
%pyproject_wheel
%install
%python_install
export LANG=en_US.UTF8
%pyproject_install
for B in tox tox-quickstart ; do
%python_clone -a %{buildroot}%{_bindir}/$B
done
@@ -115,7 +124,8 @@ done
export LANG=en_US.UTF-8
export PYTHONDONTWRITEBYTECODE=1
export PATH=%{buildroot}%{_bindir}:$PATH
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (network or parallel)'
# Ignores for gh#tox-dev/tox#1293
%pytest -k 'not (network or parallel or test_provision_missing or test_provision_interrupt_child or test_workdir_gets_resolved)'
%post
%python_install_alternative tox tox-quickstart
@@ -128,7 +138,7 @@ export PATH=%{buildroot}%{_bindir}:$PATH
%doc README.md docs/changelog.rst CONTRIBUTORS CONTRIBUTING.rst
%python_alternative %{_bindir}/tox
%python_alternative %{_bindir}/tox-quickstart
%{python_sitelib}/tox-%{version}-py%{python_version}.egg-info
%{python_sitelib}/tox-%{version}*.*-info
%{python_sitelib}/tox
%changelog