|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# Many tests are enabled by default
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
7739b63 |
%bcond tests 1
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# However, some tests are disabled by default, becasue they require:
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# a) tested tox to be installed and/or
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b0cb698 |
# b) internet connection
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# To run them, do the following:
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# 1) Build --without ci_tests (the default) and optionally --without tests
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# (e.g. fedpkg mockbuild --without tests)
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b0cb698 |
# 2) Install the built package
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
83c7b43 |
# (e.g. mock install ./results_python-tox/.../tox-...rpm)
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# 3) Build again --with ci_tests (and internet connection)
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# (e.g. fedpkg mockbuild --no-clean-all --enable-network --with ci_tests)
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b0cb698 |
# The Fedora CI tests do this.
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
7739b63 |
%bcond ci_tests 0
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
|
|
![](https://seccdn.libravatar.org/avatar/3e93946b766f26f7e7008619c936357d8f12aa092c9b720e2765efafb9106097?s=16&d=retro) |
455a6d9 |
# Unset -s on python shebang - ensure that extensions installed with pip
|
|
![](https://seccdn.libravatar.org/avatar/3e93946b766f26f7e7008619c936357d8f12aa092c9b720e2765efafb9106097?s=16&d=retro) |
455a6d9 |
# to user locations are seen and properly loaded
|
|
![](https://seccdn.libravatar.org/avatar/3e93946b766f26f7e7008619c936357d8f12aa092c9b720e2765efafb9106097?s=16&d=retro) |
455a6d9 |
# Fixes https://bugzilla.redhat.com/2057015
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1209401 |
%undefine _py3_shebang_s
|
|
![](https://seccdn.libravatar.org/avatar/3e93946b766f26f7e7008619c936357d8f12aa092c9b720e2765efafb9106097?s=16&d=retro) |
455a6d9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
Name: python-tox
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
f1b5240 |
Version: 4.11.1
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
f480c33 |
Release: %autorelease
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
Summary: Virtualenv-based automation of test activities
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
cb1dcfe |
License: MIT
|
|
![](https://seccdn.libravatar.org/avatar/0e63a9a6e7b10429ba364af5113077f355caee2847c83c50ff07a5eb86464865?s=16&d=retro) |
cbb1e4c |
URL: https://tox.readthedocs.io/
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
2e83f2e |
Source: %{pypi_source tox}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b445b57 |
# Remove dependency on devpi-process.
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
# Remove dependency on detect-test-pollution.
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# Remove coverage-related dependencies.
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# Adjust virtualenv environment variables to make it work with our patched virtualenv.
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
2e83f2e |
Patch: fix-tests.patch
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
BuildArch: noarch
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: python3-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: pyproject-rpm-macros
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%if %{with tests}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: /usr/bin/gcc
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: /usr/bin/git
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: /usr/bin/pip
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: /usr/bin/pytest
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: /usr/bin/python
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: libffi-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
5591696 |
# xdist is not used upstream, but we use it to speed up the %%check
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
5591696 |
BuildRequires: python3-pytest-xdist
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
# for test_allowed_implicit_cli_envs[py310]
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
# TODO remove this once https://github.com/tox-dev/tox/pull/3108 is released
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
BuildRequires: python3.10
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
%if %{with ci_tests}
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# The CI tests only work if the tested tox is installed :(
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
BuildRequires: tox = %{version}-%{release}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%global _description %{expand:
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
32f1962 |
Tox as is a generic virtualenv management and test command line tool you
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
can use for:
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
6683010 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
32f1962 |
- checking your package installs correctly with different Python versions
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
and interpreters
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
32f1962 |
- running your tests in each of the environments, configuring your test tool
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
of choice
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
32f1962 |
- acting as a frontend to Continuous Integration servers, greatly reducing
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
boilerplate and merging CI and shell-based testing.}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%description %_description
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%package -n tox
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
Summary: %{summary}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
1fd92e9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
454e6cd |
# Recommend "all the Pythons"
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# Why? Tox exists to enable developers to test libraries against various Python
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# versions, with just "dnf install tox" and a config file.
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# See: https://developer.fedoraproject.org/tech/languages/python/python-installation.html#using-virtualenv
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# Tox itself runs on the system python3 (i.e. %%{python3_version},
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# however it launches other Python versions as subprocesses.
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# It recommends all Python versions it supports. (This is an exception to
|
|
![](https://seccdn.libravatar.org/avatar/46b4c9bf5302597e3a24dd27829c2ae9315b1f1ecdacf761f6b9ff14777f7b91?s=16&d=retro) |
c286211 |
# the rule that Fedora packages may not require the alternative interpreters.)
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b680470 |
Recommends: python2.7
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b680470 |
Recommends: python3.6
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b680470 |
Recommends: python3.7
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b680470 |
Recommends: python3.8
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b680470 |
Recommends: python3.9
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
7220117 |
Recommends: python3.10
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
cb1dcfe |
Recommends: pypy2-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
f0d7c36 |
Recommends: pypy3-devel
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
ee3f834 |
Recommends: python2-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
f0d7c36 |
Recommends: python3-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
0e1b27d |
# Instead of adding new Pythons here, add `Supplements: tox` to them, see:
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
0e1b27d |
# https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/NVVUXSVSPFQOWIGBE2JNI67HEO7R63ZQ/
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
454e6cd |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%py_provides python3-tox
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
# Remove this once Fedora 36 goes EOL:
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
667844d |
Obsoletes: python3-tox < 3.24.4-2
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
3014377 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%description -n tox %_description
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
b16e8f3 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
b16e8f3 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
795f3eb |
%prep
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%autosetup -p1 -n tox-%{version}
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
795f3eb |
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# Upstream updates dependencies too aggressively
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# see https://github.com/tox-dev/tox/pull/2843#discussion_r1065028356
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
sed -ri -e 's/"(packaging|filelock|platformdirs|psutil|diff-cover|pyproject-api|pytest|pytest-mock|pytest-xdist|wheel|pluggy|distlib|cachetools)>=.*/"\1",/g' \
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
9ec60fc |
-e "s/'(time-machine)>=[^;']+/'\1/" \
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
fac05c2 |
-e 's/"(virtualenv)>=.*/"\1>=20",/g' \
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
342aea9 |
-e 's/"(hatchling)>=.*/"\1>=1.13",/g' \
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
fac05c2 |
pyproject.toml
|
|
![](https://seccdn.libravatar.org/avatar/a973da034e49a14259bb98d71a1c60082c29ebcb91c4d7c9c8cb567099bad334?s=16&d=retro) |
3d1b4d7 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%generate_buildrequires
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
3b05ca4 |
%pyproject_buildrequires -r %{?with_tests:-x testing}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
6683010 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
%build
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%pyproject_wheel
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
b16e8f3 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
b16e8f3 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
%install
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%pyproject_install
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%pyproject_save_files tox
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
b0cb698 |
%if %{with tests}
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
%check
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# Skipped tests use internal virtualenv functionality to
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# download wheels which does not work with "bundled" version of wheel in
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# the Fedora's virtualenv patch.
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_flipped_settings"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_env_ignored_if_set"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_env_used_if_not_set"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# The following tests either need internet connection or installed tox
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# so we only run them on the CI.
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
%if %{without ci_tests}
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_flipped_settings"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_env_ignored_if_set"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_virtualenv_env_used_if_not_set"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_build_wheel_external"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not keyboard_interrupt"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_call_as_module"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_call_as_exe"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# test_local_execute_* have "\r\n" in outputs for some
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
# unknown reason, reported: https://github.com/tox-dev/tox/issues/2841
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_local_execute_basic_pass_show_on_standard_newline_flush"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
k="${k-}${k+ and }not test_local_execute_write_a_lot"
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/281c1b4f9e726ace8c183e703bc93493c3fdda6c6706c9b0eee00875216507d8?s=16&d=retro) |
b0d91f9 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
342aea9 |
%pytest -v -n auto -k "${k-}" --run-integration
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
%endif
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
b42ab61 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%files -n tox -f %{pyproject_files}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
%{_bindir}/tox
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
e2c1378 |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
|
|
![](https://seccdn.libravatar.org/avatar/19ae54c3db90ca20f104962806c7c0c8d45b979c0a13e4eb8c8eff57c7b5ccc4?s=16&d=retro) |
3137e7c |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
f480c33 |
%autochangelog
|