SHA256
1
0
forked from pool/python-tox
python-tox/python-tox.spec
Matej Cepl 3c60a4d38a Accepting request 705206 from home:mcepl:branches:devel:languages:python
- Update to 3.12.1:
  - Ensure TOX_WORK_DIR is a native string in os.environ
  - Fix import and usage of winreg for python2.7 on windows
  - Fix Windows selects incorrect spec on first discovery
  - When using --parallel with --result-json the test results are
    now included the same way as with serial runs
  - Turns out the output of the py -0p is not stable yet and
    varies depending on various edge cases. Instead now we read
    the interpreter values directly from registry via PEP-514
  - Adding TOX_PARALLEL_NO_SPINNER environment variable to
    disable the spinner in parallel mode for the purposes of
    clean output when using CI tools

OBS-URL: https://build.opensuse.org/request/show/705206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=58
2019-05-24 10:25:50 +00:00

145 lines
5.0 KiB
RPMSpec

#
# spec file for package python-tox
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!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.12.1
Release: 0
Summary: Virtualenv-based automation of test activities
License: MIT
Group: Development/Languages/Python
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 flaky}
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}
BuildRequires: %{python_module pytest >= 3.0.0}
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 >= 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 >= 14.0.0}
BuildRequires: %{python_module wheel >= 0.29.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-filelock
Requires: python-packaging >= 17.1
Requires: python-pluggy >= 0.3.0
Requires: python-py >= 1.4.17
Requires: python-setuptools >= 30.0.0
Requires: python-six >= 1.0.0
Requires: python-toml >= 0.9.4
Requires: python-virtualenv >= 14.0.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython3
Provides: tox = %{version}
%endif
Obsoletes: python-detox
%python_subpackages
%description
Tox as is a generic virtualenv management and test command line tool you can
use for:
* checking your package installs correctly with different
Python versions and interpreters
* running your tests in each of the
environments, configuring your test tool of choice
* acting as a frontend to Continuous Integration
servers, greatly reducing boilerplate and merging
CI and shell-based testing.
%package -n %{name}-doc
Summary: Documentation for tox, a virtualenv-based test automation
Group: Development/Languages/Python
Recommends: %{python_module tox = %{version}}
Provides: %{python_module tox-doc = %{version}}
%description -n %{name}-doc
Tox as is a generic virtualenv management and test command line tool you can
use for:
* checking your package installs correctly with different
Python versions and interpreters
* running your tests in each of the
environments, configuring your test tool of choice
* acting as a frontend to Continuous Integration
servers, greatly reducing boilerplate and merging
CI and shell-based testing.
This is the HTML documentation for tox package.
%prep
%setup -q -n tox-%{version}
# remove cmdline test as they exec tox binary that is alternatived by us
rm -f tests/unit/test_z_cmdline.py
%build
export LANG=en_US.UTF8
%pyproject_wheel
%install
export LANG=en_US.UTF8
%pyproject_install
for B in tox tox-quickstart ; do
%python_clone -a %{buildroot}%{_bindir}/$B
done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
export PATH=%{buildroot}%{_bindir}:$PATH
# 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 or test_provision_cli_args_ignore)'
%post
%python_install_alternative tox tox-quickstart
%postun
%python_uninstall_alternative tox
%files %{python_files}
%license LICENSE
%doc README.md docs/changelog.rst CONTRIBUTORS CONTRIBUTING.rst
%python_alternative %{_bindir}/tox
%python_alternative %{_bindir}/tox-quickstart
%{python_sitelib}/tox-%{version}*
%{python_sitelib}/tox
%changelog