Hello community,
here is the log from the commit of package python-pytest-verbose-parametrize
for openSUSE:Factory checked in at 2019-06-03 18:56:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-verbose-parametrize (Old)
and
/work/SRC/openSUSE:Factory/.python-pytest-verbose-parametrize.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-verbose-parametrize"
Mon Jun 3 18:56:52 2019 rev:2 rq:707086 version:1.7.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-verbose-parametrize/python-pytest-verbose-parametrize.changes
2019-03-22 15:09:08.777402184 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-verbose-parametrize.new.5148/python-pytest-verbose-parametrize.changes
2019-06-03 18:56:55.684394188 +0200
@@ -1,0 +2,6 @@
+Mon Jun 3 08:57:55 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.7.0:
+ * support pytest 4
+
+-------------------------------------------------------------------
Old:
----
pytest-verbose-parametrize-1.5.1.tar.gz
New:
----
pytest-verbose-parametrize-1.7.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-verbose-parametrize.spec ++++++
--- /var/tmp/diff_new_pack.kz5pDc/_old 2019-06-03 18:56:56.552393866 +0200
+++ /var/tmp/diff_new_pack.kz5pDc/_new 2019-06-03 18:56:56.580393855 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-verbose-parametrize
-Version: 1.5.1
+Version: 1.7.0
Release: 0
Summary: More descriptive output for parametrized pytest tests
License: MIT
@@ -35,8 +35,8 @@
# SECTION test requirements
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module mock}
-BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-virtualenv}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
@@ -46,7 +46,6 @@
%prep
%setup -q -n pytest-verbose-parametrize-%{version}
-sed -i 's:pytest<[0-9.]*:pytest:g' setup.py
%build
%python_build
@@ -56,7 +55,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec setup.py test
+%pytest
%files %{python_files}
%doc CHANGES.md README.md
++++++ pytest-verbose-parametrize-1.5.1.tar.gz ->
pytest-verbose-parametrize-1.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-verbose-parametrize-1.5.1/CHANGES.md
new/pytest-verbose-parametrize-1.7.0/CHANGES.md
--- old/pytest-verbose-parametrize-1.5.1/CHANGES.md 2019-01-24
15:50:41.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/CHANGES.md 2019-05-28
08:32:19.000000000 +0200
@@ -1,7 +1,33 @@
## Changelog
-### 1.5.1 (Unreleased)
+### 1.7.0
+ * All: Support pytest >= 4.0.0
+ * All: Support Python 3.7
+ * pytest-server-fixtures: if host not defined on your machine, default to
localhost
+ * pytest-server-fixture: Pin to rethinkdb < 2.4.0 due to upstream API changes
+ * pytest-verbose-parametrize: Add support for revamped marker infrastructure
+ * pytest-verbose-parametrize: Fix integration tests to support pytest >= 4.1.0
+ * pytest-virtualenv: Add virtualenv as install requirement. Fixes #122
+ * pytest-webdriver: Fix RemovedInPytest4Warning using getfixturevalue
+ * circleci: Fix checks by skipping coverall submission for developer without
push access
+ * wheels: Generate universal wheels installable with both python 2.x and 3.x
+ * dist: Remove support for building and distributing *.egg files
+ * VagrantFile: Install python 3.7 and initialize python 3.7 by default
+ * Fix DeprecationWarning warnings using "logger.warning()" function
+
+### 1.6.2 (2019-02-21)
+ * pytest-server-fixtures: suppress stacktrace if kill() is called
+ * pytest-server-fixtures: fix random port logic in TestServerV2
+
+### 1.6.1 (2019-02-12)
+ * pytest-server-fixtures: fix exception when attempting to access hostname
while server is not started
+
+### 1.6.0 (2019-02-12)
+ * pytest-server-fixtures: added previously removed TestServerV2.kill()
function
+ * pytest-profiling: pin more-itertools==5.0.0 in integration tests, as that's
a PY3 only release
+
+### 1.5.1 (2019-01-24)
* pytest-verbose-parametrize: fixed unicode parameters when using
`@pytest.mark.parametrize`
### 1.5.0 (2019-01-23)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-verbose-parametrize-1.5.1/PKG-INFO
new/pytest-verbose-parametrize-1.7.0/PKG-INFO
--- old/pytest-verbose-parametrize-1.5.1/PKG-INFO 2019-01-24
15:50:46.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/PKG-INFO 2019-05-28
08:33:25.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-verbose-parametrize
-Version: 1.5.1
+Version: 1.7.0
Summary: More descriptive output for parametrized py.test tests
Home-page: https://github.com/manahl/pytest-plugins
Author: Edward Easton
@@ -55,7 +55,50 @@
Changelog
---------
- 1.5.1 (Unreleased)
+ 1.7.0
+ ~~~~~
+
+ - All: Support pytest >= 4.0.0
+ - All: Support Python 3.7
+ - pytest-server-fixtures: if host not defined on your machine, default
+ to localhost
+ - pytest-server-fixture: Pin to rethinkdb < 2.4.0 due to upstream API
+ changes
+ - pytest-verbose-parametrize: Add support for revamped marker
+ infrastructure
+ - pytest-verbose-parametrize: Fix integration tests to support pytest
+ >= 4.1.0
+ - pytest-virtualenv: Add virtualenv as install requirement. Fixes #122
+ - pytest-webdriver: Fix RemovedInPytest4Warning using getfixturevalue
+ - circleci: Fix checks by skipping coverall submission for developer
+ without push access
+ - wheels: Generate universal wheels installable with both python 2.x
+ and 3.x
+ - dist: Remove support for building and distributing \*.egg files
+ - VagrantFile: Install python 3.7 and initialize python 3.7 by default
+ - Fix DeprecationWarning warnings using "logger.warning()" function
+
+ 1.6.2 (2019-02-21)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: suppress stacktrace if kill() is called
+ - pytest-server-fixtures: fix random port logic in TestServerV2
+
+ 1.6.1 (2019-02-12)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: fix exception when attempting to access
+ hostname while server is not started
+
+ 1.6.0 (2019-02-12)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: added previously removed TestServerV2.kill()
+ function
+ - pytest-profiling: pin more-itertools==5.0.0 in integration tests, as
+ that's a PY3 only release
+
+ 1.5.1 (2019-01-24)
~~~~~~~~~~~~~~~~~~
- pytest-verbose-parametrize: fixed unicode parameters when using
@@ -259,3 +302,4 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-verbose-parametrize-1.5.1/VERSION
new/pytest-verbose-parametrize-1.7.0/VERSION
--- old/pytest-verbose-parametrize-1.5.1/VERSION 2019-01-24
15:50:41.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/VERSION 2019-05-28
08:32:19.000000000 +0200
@@ -1 +1 @@
-1.5.1
+1.7.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.egg-info/PKG-INFO
new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.egg-info/PKG-INFO
---
old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.egg-info/PKG-INFO
2019-01-24 15:50:44.000000000 +0100
+++
new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.egg-info/PKG-INFO
2019-05-28 08:33:23.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-verbose-parametrize
-Version: 1.5.1
+Version: 1.7.0
Summary: More descriptive output for parametrized py.test tests
Home-page: https://github.com/manahl/pytest-plugins
Author: Edward Easton
@@ -55,7 +55,50 @@
Changelog
---------
- 1.5.1 (Unreleased)
+ 1.7.0
+ ~~~~~
+
+ - All: Support pytest >= 4.0.0
+ - All: Support Python 3.7
+ - pytest-server-fixtures: if host not defined on your machine, default
+ to localhost
+ - pytest-server-fixture: Pin to rethinkdb < 2.4.0 due to upstream API
+ changes
+ - pytest-verbose-parametrize: Add support for revamped marker
+ infrastructure
+ - pytest-verbose-parametrize: Fix integration tests to support pytest
+ >= 4.1.0
+ - pytest-virtualenv: Add virtualenv as install requirement. Fixes #122
+ - pytest-webdriver: Fix RemovedInPytest4Warning using getfixturevalue
+ - circleci: Fix checks by skipping coverall submission for developer
+ without push access
+ - wheels: Generate universal wheels installable with both python 2.x
+ and 3.x
+ - dist: Remove support for building and distributing \*.egg files
+ - VagrantFile: Install python 3.7 and initialize python 3.7 by default
+ - Fix DeprecationWarning warnings using "logger.warning()" function
+
+ 1.6.2 (2019-02-21)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: suppress stacktrace if kill() is called
+ - pytest-server-fixtures: fix random port logic in TestServerV2
+
+ 1.6.1 (2019-02-12)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: fix exception when attempting to access
+ hostname while server is not started
+
+ 1.6.0 (2019-02-12)
+ ~~~~~~~~~~~~~~~~~~
+
+ - pytest-server-fixtures: added previously removed TestServerV2.kill()
+ function
+ - pytest-profiling: pin more-itertools==5.0.0 in integration tests, as
+ that's a PY3 only release
+
+ 1.5.1 (2019-01-24)
~~~~~~~~~~~~~~~~~~
- pytest-verbose-parametrize: fixed unicode parameters when using
@@ -259,3 +302,4 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.egg-info/requires.txt
new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.egg-info/requires.txt
---
old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.egg-info/requires.txt
2019-01-24 15:50:44.000000000 +0100
+++
new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.egg-info/requires.txt
2019-05-28 08:33:23.000000000 +0200
@@ -1,4 +1,4 @@
-pytest<4.0.0
+pytest
six
[tests]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.py
new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
--- old/pytest-verbose-parametrize-1.5.1/pytest_verbose_parametrize.py
2019-01-24 15:50:13.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
2019-05-28 08:27:18.000000000 +0200
@@ -13,10 +13,19 @@
def pytest_generate_tests(metafunc):
+
try:
- markers = metafunc.function.parametrize
+ markers = metafunc.definition.get_closest_marker('parametrize')
+ if not markers:
+ return
except AttributeError:
- return
+ # Deprecated in pytest >= 3.6
+ # See
https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration
+ try:
+ markers = metafunc.function.parametrize
+ except AttributeError:
+ return
+
if 'ids' not in markers.kwargs:
list_names = []
for i, argvalue in enumerate(markers.args[1]):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-verbose-parametrize-1.5.1/setup.cfg
new/pytest-verbose-parametrize-1.7.0/setup.cfg
--- old/pytest-verbose-parametrize-1.5.1/setup.cfg 2019-01-24
15:50:46.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/setup.cfg 2019-05-28
08:33:25.000000000 +0200
@@ -6,6 +6,9 @@
dist
tests/integration/parametrize_ids
+[bdist_wheel]
+universal = 1
+
[egg_info]
tag_build =
tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-verbose-parametrize-1.5.1/setup.py
new/pytest-verbose-parametrize-1.7.0/setup.py
--- old/pytest-verbose-parametrize-1.5.1/setup.py 2019-01-24
15:50:13.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/setup.py 2019-05-28
08:27:18.000000000 +0200
@@ -19,9 +19,10 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
]
-install_requires = ['pytest<4.0.0',
+install_requires = ['pytest',
'six',
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-verbose-parametrize-1.5.1/tests/integration/test_verbose_parametrize.py
new/pytest-verbose-parametrize-1.7.0/tests/integration/test_verbose_parametrize.py
---
old/pytest-verbose-parametrize-1.5.1/tests/integration/test_verbose_parametrize.py
2019-01-24 15:50:13.000000000 +0100
+++
new/pytest-verbose-parametrize-1.7.0/tests/integration/test_verbose_parametrize.py
2019-05-28 08:27:18.000000000 +0200
@@ -9,6 +9,17 @@
PYTEST = os.path.join(os.path.dirname(sys.executable), 'py.test')
+def _update_expected(expected, output):
+ """If pytest >= 4.1.0 is used, remove single quotes from expected output.
+
+ This function allows to successfully assert output using version of pytest
+ with or without pytest-dev/pytest@e9b2475e2 (Display actual test ids in
`--collect-only`)
+ introduced in version 4.1.0.
+ """
+ pytest_410_and_above = ".py'>" not in output
+ return expected.replace("'", "") if pytest_410_and_above else expected
+
+
def test_parametrize_ids_generates_ids(pytestconfig):
output = run_with_coverage([PYTEST, '--collectonly',
'tests/unit/test_parametrized.py'],
pytestconfig, cd=TEST_DIR)
@@ -16,6 +27,7 @@
<Function 'test_foo[sum-list]'>
<Function 'test_foo[len-int]'>
'''
+ expected = _update_expected(expected, output)
assert expected in output
@@ -25,6 +37,7 @@
expected = '''<Module
'tests/integration/parametrize_ids/tests/unit/test_non_parametrized.py'>
<Function 'test_bar'>
'''
+ expected = _update_expected(expected, output)
assert expected in output
@@ -36,6 +49,7 @@
<Function 'test_foo[0-[1]#1]'>
<Function 'test_foo[0-[1]#2]'>
'''
+ expected = _update_expected(expected, output)
assert expected in output
@@ -45,4 +59,5 @@
expected = '''<Module
'tests/integration/parametrize_ids/tests/unit/test_long_ids.py'>
<Function 'test_foo[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9...-None]'>
'''
+ expected = _update_expected(expected, output)
assert expected in output
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-verbose-parametrize-1.5.1/tests/unit/test_verbose_parametrize.py
new/pytest-verbose-parametrize-1.7.0/tests/unit/test_verbose_parametrize.py
--- old/pytest-verbose-parametrize-1.5.1/tests/unit/test_verbose_parametrize.py
2019-01-24 15:50:13.000000000 +0100
+++ new/pytest-verbose-parametrize-1.7.0/tests/unit/test_verbose_parametrize.py
2019-05-28 08:27:18.000000000 +0200
@@ -8,9 +8,11 @@
p = Mock(kwargs={}, args=args)
p._arglist = ([args, {}],)
metafunc = Mock()
- metafunc.function.parametrize = p
+ metafunc.function.parametrize = p # Deprecated
+ metafunc.definition.get_closest_marker.return_value = p
return metafunc
+
def test_generates_ids_from_tuple():
metafunc = get_metafunc((None, [(1, 2, 3)]))
pytest_generate_tests(metafunc)