Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
python3-tox
python3-tox.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-tox.spec of Package python3-tox
# # spec file for package python3-tox # # Copyright (c) 2023 SUSE LLC # # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python3-tox Version: 2.9.1 Release: 0 Summary: Virtualenv-based automation of test activities License: MIT Group: Development/Languages/Python URL: http://tox.testrun.org/ Source: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz # PATCH-FIX-SLE use-Sphinx-2.patch mcepl@suse.com # Make documentation buildable with new Sphinx (>= 2.0) Patch0: use-Sphinx-2.patch # Test requirements: BuildRequires: %{python_module pip} BuildRequires: %{python_module pluggy >= 0.3.0} BuildRequires: %{python_module py >= 1.4.17} BuildRequires: %{python_module pytest >= 2.3.5} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module virtualenv >= 1.11.2} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx BuildRequires: unzip Requires: python3-pluggy >= 0.3.0 Requires: python3-py >= 1.4.17 Requires: python3-virtualenv >= 1.11.2 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %ifpython3 Provides: tox = %{version} %endif %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 %{oldpython}-tox-doc Summary: Documentation for tox, a virtualenv-based test automation Group: Development/Languages/Python Recommends: python-tox = %{version} Obsoletes: %{oldpython}-tox-doc <= %{version}-%{release} %description -n %{oldpython}-tox-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} %autopatch -p1 %build %python_build python3 setup.py build_sphinx && rm -r doc/build/html/.buildinfo # Generate HTML documentation %install %python_install for B in tox tox-quickstart ; do %python_clone -a %{buildroot}%{_bindir}/$B done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %if !0%{?is_opensuse} && 0%{?sle_version} >= 150400 skip_tests='or test_venv' %endif %{python_expand # okay $python -m virtualenv env-%{$python_bin_suffix} --system-site-packages . env-%{$python_bin_suffix}/bin/activate $python setup.py install # run test_config separately because it does something to other tests $python -m pytest -v tests/test_config.py # skip also cmdline tests, they are slow and mostly broken in our environment $python -m pytest -v tests -k "not (test_config or test_z_cmdline ${skip_tests})" deactivate } %post %python_install_alternative tox tox-quickstart %postun %python_uninstall_alternative tox %files %{python_files} %license LICENSE %doc README.rst CHANGELOG.rst %python_alternative %{_bindir}/tox %python_alternative %{_bindir}/tox-quickstart %{python_sitelib}/tox-%{version}-py%{python_version}.egg-info %{python_sitelib}/tox %files -n %{oldpython}-tox-doc %license LICENSE %doc README.rst doc/build/html %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor