Hello community,

here is the log from the commit of package python-pytest-runner for 
openSUSE:Factory checked in at 2018-02-21 14:07:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-runner (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-runner.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-runner"

Wed Feb 21 14:07:35 2018 rev:13 rq:577963 version:4.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-runner/python-pytest-runner.changes    
    2017-11-11 14:17:29.443851751 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-runner.new/python-pytest-runner.changes
   2018-02-21 14:07:38.602460684 +0100
@@ -1,0 +2,17 @@
+Sun Feb 18 17:13:31 UTC 2018 - [email protected]
+
+- specfile:
+  * update copyright year
+  * update setuptools_scm version requirement according to setup.py
+
+- update to version 4.0:
+  * Drop support for Setuptools before Setuptools 27.3.0.
+
+- changes from version 3.0.1:
+  * #38: Fixed AttributeError when running with
+    --dry-run. PyTest.run() no longer stores nor returns the result
+    code. Based on the commit message for `840ff4c <
+    
https://github.com/pytest-dev/pytest-runner/commit/840ff4c2bf6c752d9770f0dd8d64a841060cf9bc>`_,
+    nothing has ever relied on that value.
+
+-------------------------------------------------------------------

Old:
----
  pytest-runner-3.0.tar.gz

New:
----
  pytest-runner-4.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-runner.spec ++++++
--- /var/tmp/diff_new_pack.j0SPEY/_old  2018-02-21 14:07:40.478393131 +0100
+++ /var/tmp/diff_new_pack.j0SPEY/_new  2018-02-21 14:07:40.478393131 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-runner
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-runner
-Version:        3.0
+Version:        4.0
 Release:        0
 Summary:        Testing with Python
 License:        MIT
@@ -27,11 +27,11 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-runner/pytest-runner-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest >= 2.8}
-BuildRequires:  %{python_module setuptools_scm >= 1.9}
+BuildRequires:  %{python_module setuptools_scm >= 1.15.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 Requires:       python-pytest >= 2.8
-Requires:       python-setuptools_scm >= 1.9
+Requires:       python-setuptools_scm >= 1.15.0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 

++++++ pytest-runner-3.0.tar.gz -> pytest-runner-4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/.travis.yml 
new/pytest-runner-4.0/.travis.yml
--- old/pytest-runner-3.0/.travis.yml   2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/.travis.yml   2018-02-10 21:41:41.000000000 +0100
@@ -2,12 +2,14 @@
 sudo: false
 language: python
 
+python:
+- 2.7
+- &latest_py3 3.6
+- nightly
+
 jobs:
   fast_finish: true
   include:
-  - python: 2.7
-  - python: &latest_py3 3.6
-  - python: nightly
   - stage: deploy
     if: tag IS present
     python: *latest_py3
@@ -28,6 +30,6 @@
 cache: pip
 
 install:
-- pip install tox
+- pip install tox tox-venv
 
 script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/CHANGES.rst 
new/pytest-runner-4.0/CHANGES.rst
--- old/pytest-runner-3.0/CHANGES.rst   2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/CHANGES.rst   2018-02-10 21:41:41.000000000 +0100
@@ -1,20 +1,34 @@
+4.0
+===
+
+* Drop support for Setuptools before Setuptools 27.3.0.
+
+3.0.1
+=====
+
+* #38: Fixed AttributeError when running with ``--dry-run``.
+  ``PyTest.run()`` no longer stores nor returns the result code.
+  Based on the commit message for `840ff4c <
+  
https://github.com/pytest-dev/pytest-runner/commit/840ff4c2bf6c752d9770f0dd8d64a841060cf9bc>`_,
+  nothing has ever relied on that value.
+
 3.0
-~~~
+===
 
 * Dropped support for Python 2.6 and 3.1.
 
 2.12.2
-~~~~~~
+======
 
 * #33: Packaging refresh.
 
 2.12.1
-~~~~~~
+======
 
 * #32: Fix support for ``dependency_links``.
 
 2.12
-~~~~
+====
 
 * #30: Rework support for ``--allow-hosts`` and
   ``--index-url``, removing dependence on
@@ -23,23 +37,23 @@
   along with unit tests!
 
 2.11.1
-~~~~~~
+======
 
 * #28: Fix logic in marker evaluation.
 
 2.11
-~~~~
+====
 
 * #27: Improved wording in the README around configuration
   for the distutils command and pytest proper.
 
 2.10.1
-~~~~~~
+======
 
 * #21: Avoid mutating dictionary keys during iteration.
 
 2.10
-~~~~
+====
 
 * #20: Leverage technique in `setuptools 794
   <https://github.com/pypa/setuptools/issues/794>`_
@@ -48,13 +62,13 @@
   comparable to the test runner.
 
 2.9
-~~~
+===
 
 * Added Trove Classifier indicating this package is part
   of the pytest framework.
 
 2.8
-~~~
+===
 
 * #16: Added a license file, required for membership to
   pytest-dev.
@@ -62,28 +76,28 @@
   tagged release that passes tests on Python 3.5.
 
 2.7
-~~~
+===
 
 * Moved hosting to Github.
 
 2.6
-~~~
+===
 
 * Add support for un-named, environment-specific extras.
 
 2.5.1
-~~~~~
+=====
 
 * Restore Python 2.6 compatibility.
 
 2.5
-~~~
+===
 
 * Moved hosting to `pytest-dev
   <https://bitbucket.org/pytest-dev/pytest-runner>`_.
 
 2.4
-~~~
+===
 
 * Added `documentation <https://pythonhosted.org/pytest-runner>`_.
 * Use setuptools_scm for version management and file discovery.
@@ -91,23 +105,23 @@
   in the package metadata.
 
 2.3
-~~~
+===
 
 * Use hgdistver for version management and file discovery.
 
 2.2
-~~~
+===
 
 * Honor ``.eggs`` directory for transient downloads as introduced in Setuptools
   7.0.
 
 2.1
-~~~
+===
 
 * The preferred invocation is now the 'pytest' command.
 
 2.0
-~~~
+===
 
 * Removed support for the alternate usage. The recommended usage (as a
   distutils command) is now the only supported usage.
@@ -116,13 +130,13 @@
   via the --addopts parameter.
 
 1.1
-~~~
+===
 
 * Added support for --addopts to pass any arguments through to py.test.
 * Deprecated support for --junitxml. Use --addopts instead. --junitxml will be
   removed in 2.0.
 
 1.0
-~~~
+===
 
 Initial implementation.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/PKG-INFO 
new/pytest-runner-4.0/PKG-INFO
--- old/pytest-runner-3.0/PKG-INFO      2017-10-27 16:19:49.000000000 +0200
+++ new/pytest-runner-4.0/PKG-INFO      2018-02-10 21:42:14.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: pytest-runner
-Version: 3.0
+Version: 4.0
 Summary: Invoke py.test as distutils command with dependency resolution
 Home-page: https://github.com/pytest-dev/pytest-runner
 Author: Jason R. Coombs
@@ -13,13 +13,13 @@
         .. image:: https://img.shields.io/pypi/pyversions/pytest-runner.svg
         
         .. image:: 
https://img.shields.io/travis/pytest-dev/pytest-runner/master.svg
-           :target: http://travis-ci.org/pytest-dev/pytest-runner
+           :target: https://travis-ci.org/pytest-dev/pytest-runner
         
         Setup scripts can use pytest-runner to add setup.py test support for 
pytest
         runner.
         
         Usage
-        -----
+        =====
         
         - Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' 
(or
           similar) to avoid pulling in incompatible versions.
@@ -38,7 +38,7 @@
           to cause ``python setup.py test`` to invoke pytest.
         
         Example
-        -------
+        =======
         
         The most simple usage looks like this in setup.py::
         
@@ -60,7 +60,7 @@
         for examples of real-world usage.
         
         Standalone Example
-        ------------------
+        ==================
         
         This technique is deprecated - if you have standalone scripts
         you wish to invoke with dependencies, `use rwt
@@ -93,10 +93,10 @@
         replicating failures is made almost trivially low.
         
         Considerations
-        --------------
+        ==============
         
         Conditional Requirement
-        ~~~~~~~~~~~~~~~~~~~~~~~
+        -----------------------
         
         Because it uses Setuptools setup_requires, pytest-runner will install 
itself
         on every invocation of setup.py. In some cases, this causes delays for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/README.rst 
new/pytest-runner-4.0/README.rst
--- old/pytest-runner-3.0/README.rst    2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/README.rst    2018-02-10 21:41:41.000000000 +0100
@@ -4,13 +4,13 @@
 .. image:: https://img.shields.io/pypi/pyversions/pytest-runner.svg
 
 .. image:: https://img.shields.io/travis/pytest-dev/pytest-runner/master.svg
-   :target: http://travis-ci.org/pytest-dev/pytest-runner
+   :target: https://travis-ci.org/pytest-dev/pytest-runner
 
 Setup scripts can use pytest-runner to add setup.py test support for pytest
 runner.
 
 Usage
------
+=====
 
 - Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' (or
   similar) to avoid pulling in incompatible versions.
@@ -29,7 +29,7 @@
   to cause ``python setup.py test`` to invoke pytest.
 
 Example
--------
+=======
 
 The most simple usage looks like this in setup.py::
 
@@ -51,7 +51,7 @@
 for examples of real-world usage.
 
 Standalone Example
-------------------
+==================
 
 This technique is deprecated - if you have standalone scripts
 you wish to invoke with dependencies, `use rwt
@@ -84,10 +84,10 @@
 replicating failures is made almost trivially low.
 
 Considerations
---------------
+==============
 
 Conditional Requirement
-~~~~~~~~~~~~~~~~~~~~~~~
+-----------------------
 
 Because it uses Setuptools setup_requires, pytest-runner will install itself
 on every invocation of setup.py. In some cases, this causes delays for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/appveyor.yml 
new/pytest-runner-4.0/appveyor.yml
--- old/pytest-runner-3.0/appveyor.yml  2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/appveyor.yml  2018-02-10 21:41:41.000000000 +0100
@@ -15,7 +15,7 @@
 build: off
 
 test_script:
-  - "python -m pip install tox"
+  - "python -m pip install tox tox-venv"
   - "tox"
 
 version: '{build}'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/docs/conf.py 
new/pytest-runner-4.0/docs/conf.py
--- old/pytest-runner-3.0/docs/conf.py  2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/docs/conf.py  2018-02-10 21:41:41.000000000 +0100
@@ -2,9 +2,9 @@
 # -*- coding: utf-8 -*-
 
 extensions = [
-    'sphinx.ext.autodoc',
-    'jaraco.packaging.sphinx',
-    'rst.linker',
+       'sphinx.ext.autodoc',
+       'jaraco.packaging.sphinx',
+       'rst.linker',
 ]
 
 master_doc = 'index'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/ptr.py new/pytest-runner-4.0/ptr.py
--- old/pytest-runner-3.0/ptr.py        2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/ptr.py        2018-02-10 21:41:41.000000000 +0100
@@ -31,11 +31,6 @@
                _sys.argv[:] = saved
 
 
-@_contextlib.contextmanager
-def null():
-       yield
-
-
 class CustomizedDist(Distribution):
 
        allow_hosts = None
@@ -115,21 +110,14 @@
                        and pkg_resources.evaluate_marker(marker)
                )
 
-       @staticmethod
-       def _install_dists_compat(dist):
-               """
-               Copy of install_dists from setuptools 27.3.0.
-               """
-               ir_d = dist.fetch_build_eggs(dist.install_requires or [])
-               tr_d = dist.fetch_build_eggs(dist.tests_require or [])
-               return _itertools.chain(ir_d, tr_d)
-
        def install_dists(self, dist):
                """
                Extend install_dists to include extras support
                """
-               i_d = getattr(orig.test, 'install_dists', 
self._install_dists_compat)
-               return _itertools.chain(i_d(dist), 
self.install_extra_dists(dist))
+               return _itertools.chain(
+                       orig.test.install_dists(dist),
+                       self.install_extra_dists(dist),
+               )
 
        def install_extra_dists(self, dist):
                """
@@ -153,23 +141,11 @@
                results = list(map(dist.fetch_build_eggs, matching_extras))
                return _itertools.chain.from_iterable(results)
 
-       @staticmethod
-       def paths_on_pythonpath(paths):
+       def run(self):
+               """
+               Override run to ensure requirements are available in this 
session (but
+               don't install them anywhere).
                """
-               Backward compatibility for paths_on_pythonpath;
-               Returns a null context if paths_on_pythonpath is
-               not implemented in orig.test.
-               Note that this also means that the paths iterable
-               is never consumed, which incidentally means that
-               the None values from dist.fetch_build_eggs in
-               older Setuptools will be disregarded.
-               """
-               try:
-                       return orig.test.paths_on_pythonpath(paths)
-               except AttributeError:
-                       return null()
-
-       def _super_run(self):
                dist = CustomizedDist()
                for attr in 'allow_hosts index_url'.split():
                        setattr(dist, attr, getattr(self, attr))
@@ -184,17 +160,8 @@
                        return
                paths = map(_operator.attrgetter('location'), installed_dists)
                with self.paths_on_pythonpath(paths):
-                       self.with_project_on_sys_path(self.run_tests)
-
-       def run(self):
-               """
-               Override run to ensure requirements are available in this 
session (but
-               don't install them anywhere).
-               """
-               self._super_run()
-               if self.result_code:
-                       raise SystemExit(self.result_code)
-               return self.result_code
+                       with self.project_on_sys_path():
+                               return self.run_tests()
 
        @property
        def _argv(self):
@@ -202,7 +169,9 @@
 
        def run_tests(self):
                """
-               Invoke pytest, replacing argv.
+               Invoke pytest, replacing argv. Return result code.
                """
                with _save_argv(_sys.argv[:1] + self.addopts):
-                       self.result_code = __import__('pytest').main()
+                       result_code = __import__('pytest').main()
+                       if result_code:
+                               raise SystemExit(result_code)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/pytest.ini 
new/pytest-runner-4.0/pytest.ini
--- old/pytest-runner-3.0/pytest.ini    2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/pytest.ini    2018-02-10 21:41:41.000000000 +0100
@@ -1,4 +1,4 @@
 [pytest]
-norecursedirs=dist build .tox
+norecursedirs=dist build .tox .eggs
 addopts=--doctest-modules
 doctest_optionflags=ALLOW_UNICODE ELLIPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/pytest_runner.egg-info/PKG-INFO 
new/pytest-runner-4.0/pytest_runner.egg-info/PKG-INFO
--- old/pytest-runner-3.0/pytest_runner.egg-info/PKG-INFO       2017-10-27 
16:19:49.000000000 +0200
+++ new/pytest-runner-4.0/pytest_runner.egg-info/PKG-INFO       2018-02-10 
21:42:14.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: pytest-runner
-Version: 3.0
+Version: 4.0
 Summary: Invoke py.test as distutils command with dependency resolution
 Home-page: https://github.com/pytest-dev/pytest-runner
 Author: Jason R. Coombs
@@ -13,13 +13,13 @@
         .. image:: https://img.shields.io/pypi/pyversions/pytest-runner.svg
         
         .. image:: 
https://img.shields.io/travis/pytest-dev/pytest-runner/master.svg
-           :target: http://travis-ci.org/pytest-dev/pytest-runner
+           :target: https://travis-ci.org/pytest-dev/pytest-runner
         
         Setup scripts can use pytest-runner to add setup.py test support for 
pytest
         runner.
         
         Usage
-        -----
+        =====
         
         - Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' 
(or
           similar) to avoid pulling in incompatible versions.
@@ -38,7 +38,7 @@
           to cause ``python setup.py test`` to invoke pytest.
         
         Example
-        -------
+        =======
         
         The most simple usage looks like this in setup.py::
         
@@ -60,7 +60,7 @@
         for examples of real-world usage.
         
         Standalone Example
-        ------------------
+        ==================
         
         This technique is deprecated - if you have standalone scripts
         you wish to invoke with dependencies, `use rwt
@@ -93,10 +93,10 @@
         replicating failures is made almost trivially low.
         
         Considerations
-        --------------
+        ==============
         
         Conditional Requirement
-        ~~~~~~~~~~~~~~~~~~~~~~~
+        -----------------------
         
         Because it uses Setuptools setup_requires, pytest-runner will install 
itself
         on every invocation of setup.py. In some cases, this causes delays for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-runner-3.0/pytest_runner.egg-info/requires.txt 
new/pytest-runner-4.0/pytest_runner.egg-info/requires.txt
--- old/pytest-runner-3.0/pytest_runner.egg-info/requires.txt   2017-10-27 
16:19:49.000000000 +0200
+++ new/pytest-runner-4.0/pytest_runner.egg-info/requires.txt   2018-02-10 
21:42:14.000000000 +0100
@@ -6,6 +6,6 @@
 
 [testing]
 pytest>=2.8
-pytest-sugar
+pytest-sugar>=0.9.1
 collective.checkdocs
 pytest-virtualenv
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/setup.cfg 
new/pytest-runner-4.0/setup.cfg
--- old/pytest-runner-3.0/setup.cfg     2017-10-27 16:19:49.000000000 +0200
+++ new/pytest-runner-4.0/setup.cfg     2018-02-10 21:42:14.000000000 +0100
@@ -5,6 +5,9 @@
 [bdist_wheel]
 universal = 1
 
+[metadata]
+license_file = LICENSE
+
 [egg_info]
 tag_build = 
 tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/setup.py 
new/pytest-runner-4.0/setup.py
--- old/pytest-runner-3.0/setup.py      2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/setup.py      2018-02-10 21:41:41.000000000 +0100
@@ -36,7 +36,7 @@
        extras_require={
                'testing': [
                        'pytest>=2.8',
-                       'pytest-sugar',
+                       'pytest-sugar>=0.9.1',
                        'collective.checkdocs',
                        'pytest-virtualenv',
                ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/tests/test_ptr.py 
new/pytest-runner-4.0/tests/test_ptr.py
--- old/pytest-runner-3.0/tests/test_ptr.py     2017-10-27 16:19:24.000000000 
+0200
+++ new/pytest-runner-4.0/tests/test_ptr.py     2018-02-10 21:41:41.000000000 
+0100
@@ -7,6 +7,7 @@
 import tarfile
 import textwrap
 import time
+import itertools
 
 import pytest
 
@@ -39,18 +40,19 @@
     virtualenv.teardown()
 
 
[email protected]('setuptools_req, test_args', (
-    ('setuptools==27.2.0', ''),
-    ('setuptools==27.2.0', '--extras'),
-    ('setuptools==27.3.0', ''),
-    ('setuptools==27.3.0', '--extras'),
-    ('setuptools==32.3.1', ''),
-    ('setuptools==32.3.1', '--extras'),
-    ('setuptools==36.3.0', ''),
-    ('setuptools==36.3.0', '--extras'),
-    ('setuptools'        , ''),
-    ('setuptools'        , '--extras'),
-))
+setuptools_reqs = [
+    'setuptools',
+    'setuptools==27.3.0',
+    'setuptools==32.3.1',
+    'setuptools==36.3.0',
+]
+args_variants = ['', '--extras']
+
+
[email protected](
+    'setuptools_req, test_args',
+    itertools.product(setuptools_reqs, args_variants),
+)
 def test_egg_fetcher(venv, setuptools_req, test_args):
     test_args = test_args.split()
     # Install pytest & pytest-runner.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-runner-3.0/tox.ini 
new/pytest-runner-4.0/tox.ini
--- old/pytest-runner-3.0/tox.ini       2017-10-27 16:19:24.000000000 +0200
+++ new/pytest-runner-4.0/tox.ini       2018-02-10 21:41:41.000000000 +0100
@@ -1,9 +1,20 @@
 [tox]
+envlist = python
 minversion = 2.4
 
 [testenv]
+deps =
+       setuptools>=31.0.1
 commands =
        py.test {posargs}
        python setup.py checkdocs
 usedevelop = True
 extras = testing
+
+[testenv:build-docs]
+extras =
+    docs
+    testing
+changedir = docs
+commands =
+    python -m sphinx . {toxinidir}/build/html


Reply via email to