Accepting request 844811 from home:bnavigator:branches:devel:languages:python:pytest
- Update to 6.1.2 * #7758: Fixed an issue where some files in packages are getting lost from --lf even though they contain tests that failed. Regressed in pytest 5.4.0. * #7911: Directories created by tmpdir are now considered stale after 3 days without modification (previous value was 3 hours) to avoid deleting directories still in use in long running test suites. * #7815: Improve deprecation warning message for pytest._fillfuncargs(). - remove old py.test2 and py.test3 entry points - Fix py.test3 conflict for python3 flavors by alternatives * gh#openSUSE/python-rpm-macros#66 * Make pytest the main alternative as py.test is the deprecated name - Fix gh#pytest-dev/pytest#7891 : require toml for build OBS-URL: https://build.opensuse.org/request/show/844811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=76
This commit is contained in:
parent
91af81ca69
commit
3fd324c0ef
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8f593023c1a0f916110285b6efd7f99db07d59546e3d8c36fc60e2ab05d3be92
|
||||
size 1084076
|
3
pytest-6.1.2.tar.gz
Normal file
3
pytest-6.1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e
|
||||
size 1084943
|
@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 29 09:12:41 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.1.2
|
||||
* #7758: Fixed an issue where some files in packages are
|
||||
getting lost from --lf even though they contain
|
||||
tests that failed. Regressed in pytest 5.4.0.
|
||||
* #7911: Directories created by tmpdir are now considered
|
||||
stale after 3 days without modification (previous value
|
||||
was 3 hours) to avoid deleting directories still in use
|
||||
in long running test suites.
|
||||
* #7815: Improve deprecation warning message for
|
||||
pytest._fillfuncargs().
|
||||
- remove old py.test2 and py.test3 entry points
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 28 00:12:14 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Fix py.test3 conflict for python3 flavors by alternatives
|
||||
* gh#openSUSE/python-rpm-macros#66
|
||||
* Make pytest the main alternative as py.test is the deprecated
|
||||
name
|
||||
- Fix gh#pytest-dev/pytest#7891 : require toml for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 7 13:47:49 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
@ -27,14 +27,15 @@
|
||||
%endif
|
||||
%define skip_python2 1
|
||||
Name: python-pytest%{psuffix}
|
||||
Version: 6.1.1
|
||||
Version: 6.1.2
|
||||
Release: 0
|
||||
Summary: Python testing tool with autodiscovery and detailed asserts
|
||||
Summary: Simple powerful testing with Python
|
||||
License: MIT
|
||||
URL: https://github.com/pytest-dev/pytest
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools >= 40.0}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-attrs >= 17.4.0
|
||||
@ -69,7 +70,6 @@ BuildRequires: %{python_module pytest >= %{version}}
|
||||
BuildRequires: %{python_module pytest-forked}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: %{python_module xmlschema}
|
||||
BuildRequires: lsof
|
||||
%endif
|
||||
@ -79,17 +79,8 @@ Requires: python-pathlib2 >= 2.2.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
pytest is a cross-project Python testing tool. It provides:
|
||||
|
||||
* auto-discovery of test modules and functions,
|
||||
* detailed info on failing assert statements (no need to remember
|
||||
self.assert* names),
|
||||
* modular fixtures for managing small or parametrized long-lived test resources.
|
||||
* multi-paradigm support: you can use py.test to run test suites based on
|
||||
unittest (or trial), nose,
|
||||
* single-source compatibility to Python2.4 all the way up to Python3.3,
|
||||
PyPy-1.9 and Jython-2.5.1, and
|
||||
* many external plugins.
|
||||
The pytest framework makes it easy to write small tests, yet scales to support
|
||||
complex functional testing for applications and libraries.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-%{version}
|
||||
@ -100,16 +91,8 @@ pytest is a cross-project Python testing tool. It provides:
|
||||
%install
|
||||
%if ! %{with test}
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/py.test
|
||||
%python_clone -a %{buildroot}%{_bindir}/pytest
|
||||
|
||||
if [ -x %{buildroot}%{_bindir}/py.test-%{python2_bin_suffix} ]; then
|
||||
ln -s py.test-%{python2_bin_suffix} %{buildroot}%{_bindir}/py.test2
|
||||
fi
|
||||
if [ -x %{buildroot}%{_bindir}/py.test-%{python3_bin_suffix} ]; then
|
||||
ln -s py.test-%{python3_bin_suffix} %{buildroot}%{_bindir}/py.test3
|
||||
fi
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/py.test
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
@ -120,20 +103,19 @@ fi
|
||||
|
||||
%if ! %{with test}
|
||||
%post
|
||||
%{python_install_alternative py.test} \
|
||||
--slave %{_bindir}/pytest pytest %{_bindir}/pytest-%{python_version}
|
||||
%python_install_alternative pytest py.test
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative py.test
|
||||
%python_uninstall_alternative pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGELOG.rst README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/py.test
|
||||
%python_alternative %{_bindir}/pytest
|
||||
%python2_only %{_bindir}/py.test2
|
||||
%python3_only %{_bindir}/py.test3
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/py.test
|
||||
%{python_sitelib}/_pytest
|
||||
%{python_sitelib}/pytest
|
||||
%{python_sitelib}/pytest-%{version}*-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user