Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pbr for openSUSE:Factory 
checked in at 2021-12-09 19:45:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pbr (Old)
 and      /work/SRC/openSUSE:Factory/.python-pbr.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pbr"

Thu Dec  9 19:45:13 2021 rev:57 rq:935964 version:5.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pbr/python-pbr.changes    2021-12-02 
02:23:54.776888363 +0100
+++ /work/SRC/openSUSE:Factory/.python-pbr.new.2520/python-pbr.changes  
2021-12-09 19:45:25.801128077 +0100
@@ -1,0 +2,8 @@
+Mon Dec  6 10:23:57 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 5.8.0:
+  * Add python2 testing back to PBR
+  * Allow PEP517 without setup\_requires
+  * Clarify the need for setup.py with PEP517
+
+-------------------------------------------------------------------

Old:
----
  pbr-5.7.0.tar.gz

New:
----
  pbr-5.8.0.tar.gz

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

Other differences:
------------------
++++++ python-pbr.spec ++++++
--- /var/tmp/diff_new_pack.PLKc5i/_old  2021-12-09 19:45:26.449128389 +0100
+++ /var/tmp/diff_new_pack.PLKc5i/_new  2021-12-09 19:45:26.453128391 +0100
@@ -26,7 +26,7 @@
 %bcond_with test
 %endif
 Name:           python-pbr%{psuffix}
-Version:        5.7.0
+Version:        5.8.0
 Release:        0
 Summary:        Python Build Reasonableness
 License:        Apache-2.0

++++++ pbr-5.7.0.tar.gz -> pbr-5.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/.zuul.yaml new/pbr-5.8.0/.zuul.yaml
--- old/pbr-5.7.0/.zuul.yaml    2021-11-04 10:25:43.000000000 +0100
+++ new/pbr-5.8.0/.zuul.yaml    2021-11-18 12:07:01.000000000 +0100
@@ -114,6 +114,7 @@
       jobs:
         - openstack-tox-pep8
         - openstack-tox-cover
+        - openstack-tox-py27
         - openstack-tox-py36
         - openstack-tox-py37
         - openstack-tox-py38
@@ -126,6 +127,7 @@
       jobs:
         - openstack-tox-pep8
         - openstack-tox-cover
+        - openstack-tox-py27
         - openstack-tox-py36
         - openstack-tox-py37
         - openstack-tox-py38
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/ChangeLog new/pbr-5.8.0/ChangeLog
--- old/pbr-5.7.0/ChangeLog     2021-11-04 10:26:18.000000000 +0100
+++ new/pbr-5.8.0/ChangeLog     2021-11-18 12:07:29.000000000 +0100
@@ -1,6 +1,13 @@
 CHANGES
 =======
 
+5.8.0
+-----
+
+* Add python2 testing back to PBR
+* Allow PEP517 without setup\_requires
+* Clarify the need for setup.py with PEP517
+
 5.7.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/PKG-INFO new/pbr-5.8.0/PKG-INFO
--- old/pbr-5.7.0/PKG-INFO      2021-11-04 10:26:18.642354200 +0100
+++ new/pbr-5.8.0/PKG-INFO      2021-11-18 12:07:29.311755200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pbr
-Version: 5.7.0
+Version: 5.8.0
 Summary: Python Build Reasonableness
 Home-page: https://docs.openstack.org/pbr/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/doc/source/user/using.rst 
new/pbr-5.8.0/doc/source/user/using.rst
--- old/pbr-5.7.0/doc/source/user/using.rst     2021-11-04 10:25:43.000000000 
+0100
+++ new/pbr-5.8.0/doc/source/user/using.rst     2021-11-18 12:07:01.000000000 
+0100
@@ -37,8 +37,11 @@
 ``pyproject.toml``
 ------------------
 
-As an alternative to writing a ``setup.py`` you can instead setup PBR
-through the PEP 517 build-system configuration in ``pyproject.toml``.
+PBR can be configured as a PEP517 build-system in ``pyproject.toml``. This
+currently continues to rely on setuptools which means you need the above
+``setup.py`` file to be present. The main benefits to using a
+``pyproject.toml`` file with PBR are that you can control the versions of
+PBR, setuptools, and wheel that are used avoiding easy_install invocation.
 Your build-system block in ``pyproject.toml`` will need to look something
 like this::
 
@@ -46,6 +49,10 @@
     requires = ["pbr>=5.7.0", "setuptools>=36.6.0", "wheel"]
     build-backend = "pbr.build"
 
+
+Eventually PBR may grow its own direct support for PEP517 build hooks, but
+until then it will continue to need setuptools and ``setup.py``.
+
 .. _setup_cfg:
 
 ``setup.cfg``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/pbr/core.py new/pbr-5.8.0/pbr/core.py
--- old/pbr-5.7.0/pbr/core.py   2021-11-04 10:25:43.000000000 +0100
+++ new/pbr-5.8.0/pbr/core.py   2021-11-18 12:07:01.000000000 +0100
@@ -130,6 +130,14 @@
                 msg = 'Unknown distribution option: %s' % repr(key)
                 warnings.warn(msg)
 
+    # Distribution.finalize_options() is what calls this method. That means
+    # there is potential for recursion here. Recursion seems to be an issue
+    # particularly when using PEP517 build-system configs without
+    # setup_requires in setup.py. We can avoid the recursion by setting
+    # dist.pbr to a None value as the corresponding entrypoint (this function)
+    # will only be called on a non None value.
+    setattr(dist, "pbr", None)
+
     # Re-finalize the underlying Distribution
     try:
         super(dist.__class__, dist).finalize_options()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/pbr/tests/test_packaging.py 
new/pbr-5.8.0/pbr/tests/test_packaging.py
--- old/pbr-5.7.0/pbr/tests/test_packaging.py   2021-11-04 10:25:43.000000000 
+0100
+++ new/pbr-5.8.0/pbr/tests/test_packaging.py   2021-11-18 12:07:01.000000000 
+0100
@@ -229,9 +229,6 @@
         self.packages = packages
 
     def _writeFile(self, directory, file_name, contents):
-        if not contents:
-            # We want to be able to override not having files
-            return
         path = os.path.abspath(os.path.join(directory, file_name))
         path_dir = os.path.dirname(path)
         if not os.path.exists(path_dir):
@@ -924,6 +921,8 @@
 
 class TestPEP517Support(base.BaseTestCase):
     def test_pep_517_support(self):
+        # Note that the current PBR PEP517 entrypoints rely on a valid
+        # PBR setup.py existing.
         pkgs = {
             'test_pep517':
                 {
@@ -931,8 +930,12 @@
                         sphinx
                         iso8601
                     """),
-                    # Override no setup.py.
-                    'setup.py': '',
+                    # Override default setup.py to remove setup_requires.
+                    'setup.py': textwrap.dedent("""\
+                        #!/usr/bin/env python
+                        import setuptools
+                        setuptools.setup(pbr=True)
+                    """),
                     'setup.cfg': textwrap.dedent("""\
                         [metadata]
                         name = test_pep517
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.7.0/pbr.egg-info/PKG-INFO 
new/pbr-5.8.0/pbr.egg-info/PKG-INFO
--- old/pbr-5.7.0/pbr.egg-info/PKG-INFO 2021-11-04 10:26:18.000000000 +0100
+++ new/pbr-5.8.0/pbr.egg-info/PKG-INFO 2021-11-18 12:07:29.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pbr
-Version: 5.7.0
+Version: 5.8.0
 Summary: Python Build Reasonableness
 Home-page: https://docs.openstack.org/pbr/latest/
 Author: OpenStack

Reply via email to