SHA256
1
0
forked from pool/python-tox

Accepting request 702058 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/702058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tox?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2019-05-12 09:32:35 +00:00 committed by Git OBS Bridge
commit eaab1028b2
4 changed files with 80 additions and 10 deletions

View File

@ -1,3 +1,63 @@
-------------------------------------------------------------------
Thu Mar 28 14:59:11 CET 2019 - Matej Cepl <mcepl@suse.com>
- Update to 3.8.1:
- Bugfixes
- The -eALL command line argument now expands the envlist key
and includes all its environment. #1155
- Isolated build environment dependency overrides were not
taken in consideration (and such it inherited the deps from
the testenv section)
- --result-json puts the command into setup section instead
of test (pre and post commands are now also correctly put
into the commands section)
- Set setup.cfg encoding to UTF-8 as it contains Unicode
characters. #1212
- Fix tox CI, better error reporting when locating via the py
fails
- In a posix shell, setting the PATH environment variable to
an empty value is equivalent to not setting it at all;
therefore we no longer if the user sets PYTHONPATH an empty
string on python 3.4 or later
- Fixed bug of children process calls logs clashing (log
already exists)
- Interpreter discovery and virtualenv creation process calls
that failed will now print out on the screen their output
(via the logfile we automatically save)
- Using py2 and py3 with a specific basepython will no longer
raise a warning unless the major version conflicts
- Fix missing error for tox -e unknown when tox.ini declares
envlist.
- Resolve symlinks with toxworkdir.
- Interrupting a tox call (e.g. via CTRL+C) now will ensure
that spawn child processes (test calls, interpreter
discovery, parallel sub-instances, provisioned hosts) are
correctly stopped before exiting (via the pattern of
INTERRUPT - 300 ms, TERMINATE - 200 ms, KILL signals)
- Fix a ResourceWarning: unclosed file in Action
- Fix deadlock when using --parallel and having environments
with lots of output
- Removed code that sometimes caused a difference in results
between --parallel and -p when using posargs
- Features
- tox now auto-provisions itself if needed (see
:ref:`auto-provision`). Plugins or minimum version of tox
no longer need to be manually satisfied by the user,
increasing their ease of use.
- tox will inject the TOX_PARALLEL_ENV environment variable,
set to the current running tox environment name, only when
running in parallel mode.
- Parallel children now save their output to a disk logfile
- Parallel children now are added to --result-json
- Display pattern and sys.platform with platform mismatch
- Setting the environment variable TOX_REPORTER_TIMESTAMP to
1 will enable showing for each output line its delta since
the tox startup. This can be especially handy when
debugging parallel runs.
- Documentation
- Add a poetry examples to packaging
- Switch build macros to PEP-518 compatible ones
-------------------------------------------------------------------
Tue Mar 12 11:46:09 CET 2019 - Matej Cepl <mcepl@suse.com>

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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25ef928babe88c71e3ed3af0c464d1160b01fca2dd1870a5bb26c2dea61a17fc
size 267854

3
tox-3.8.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74716bfc7681a6787d3c8612c5c534f04e4112b34fad8949752359d8b9bed3b6
size 280452