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-11-29 17:28:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pbr (Old)
 and      /work/SRC/openSUSE:Factory/.python-pbr.new.31177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pbr"

Mon Nov 29 17:28:21 2021 rev:56 rq:934075 version:5.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pbr/python-pbr.changes    2021-05-20 
19:23:47.230260098 +0200
+++ /work/SRC/openSUSE:Factory/.python-pbr.new.31177/python-pbr.changes 
2021-12-02 02:23:54.776888363 +0100
@@ -1,0 +2,9 @@
+Sat Nov  6 18:03:23 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 5.7.0:
+  * Add a PEP517 interface
+  * PBR package testing improvements
+  * Run python3.9 test jobs
+  * Correct comment for 'D1\_D2\_SETUP\_ARGS'
+
+-------------------------------------------------------------------

Old:
----
  pbr-5.6.0.tar.gz

New:
----
  pbr-5.7.0.tar.gz

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

Other differences:
------------------
++++++ python-pbr.spec ++++++
--- /var/tmp/diff_new_pack.RKvtJl/_old  2021-12-02 02:23:55.172886981 +0100
+++ /var/tmp/diff_new_pack.RKvtJl/_new  2021-12-02 02:23:55.172886981 +0100
@@ -26,7 +26,7 @@
 %bcond_with test
 %endif
 Name:           python-pbr%{psuffix}
-Version:        5.6.0
+Version:        5.7.0
 Release:        0
 Summary:        Python Build Reasonableness
 License:        Apache-2.0
@@ -55,6 +55,8 @@
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-devel
 BuildRequires:  python3-fixtures >= 3.0.0
+BuildRequires:  python3-pep517
+BuildRequires:  python3-pip
 BuildRequires:  python3-six >= 1.12.0
 BuildRequires:  python3-stestr >= 2.1.0
 BuildRequires:  python3-testrepository >= 0.0.18
@@ -84,7 +86,7 @@
 %if %{with test}
 %check
 export OS_TEST_TIMEOUT=60
-python3 -m stestr run --suppress-attachments
+python3 -m stestr run --suppress-attachments --exclude-regex 
'(pbr.tests.test_packaging.TestPEP517Support|pbr.tests.test_packaging.TestRequirementParsing.test_requirement_parsing)'
 %endif
 
 %if !%{with test}

++++++ pbr-5.6.0.tar.gz -> pbr-5.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/.zuul.yaml new/pbr-5.7.0/.zuul.yaml
--- old/pbr-5.6.0/.zuul.yaml    2021-04-26 17:18:18.000000000 +0200
+++ new/pbr-5.7.0/.zuul.yaml    2021-11-04 10:25:43.000000000 +0100
@@ -17,7 +17,6 @@
       - openstack/debtcollector
       - openstack/dib-utils
       - openstack/diskimage-builder
-      - openstack/django_openstack_auth
       - openstack/futurist
       - openstack/glance
       - openstack/glance_store
@@ -109,19 +108,28 @@
     templates:
       - lib-forward-testing
       - lib-forward-testing-python3
-      - openstack-cover-jobs
-      - openstack-python-jobs
-      - openstack-python3-ussuri-jobs
       - periodic-stable-jobs
       - publish-openstack-docs-pti
     check:
       jobs:
+        - openstack-tox-pep8
+        - openstack-tox-cover
+        - openstack-tox-py36
+        - openstack-tox-py37
+        - openstack-tox-py38
+        - openstack-tox-py39
         - pbr-installation-openstack
         - pbr-installation-openstack-pip-dev
         - tempest-full:
             override-checkout: stable/train
     gate:
       jobs:
+        - openstack-tox-pep8
+        - openstack-tox-cover
+        - openstack-tox-py36
+        - openstack-tox-py37
+        - openstack-tox-py38
+        - openstack-tox-py39
         - pbr-installation-openstack
         - pbr-installation-openstack-pip-dev
         - tempest-full:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/AUTHORS new/pbr-5.7.0/AUTHORS
--- old/pbr-5.6.0/AUTHORS       2021-04-26 17:18:50.000000000 +0200
+++ new/pbr-5.7.0/AUTHORS       2021-11-04 10:26:18.000000000 +0100
@@ -143,6 +143,7 @@
 dineshbhor <dinesh.b...@nttdata.com>
 jiansong <jian.s...@easystack.cn>
 lifeless <robe...@robertcollins.net>
+manchandavishal <manchandavishal...@gmail.com>
 melanie witt <melw...@yahoo-inc.com>
 melissaml <ma....@99cloud.net>
 nizam <abdul.nizamud...@nectechnologies.in>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/ChangeLog new/pbr-5.7.0/ChangeLog
--- old/pbr-5.6.0/ChangeLog     2021-04-26 17:18:50.000000000 +0200
+++ new/pbr-5.7.0/ChangeLog     2021-11-04 10:26:18.000000000 +0100
@@ -1,6 +1,15 @@
 CHANGES
 =======
 
+5.7.0
+-----
+
+* Add a PEP517 interface
+* PBR package testing improvements
+* Run python3.9 test jobs
+* Retire django-openstack-auth
+* Correct comment for 'D1\_D2\_SETUP\_ARGS'
+
 5.6.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/PKG-INFO new/pbr-5.7.0/PKG-INFO
--- old/pbr-5.6.0/PKG-INFO      2021-04-26 17:18:50.734825800 +0200
+++ new/pbr-5.7.0/PKG-INFO      2021-11-04 10:26:18.642354200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pbr
-Version: 5.6.0
+Version: 5.7.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.6.0/doc/source/user/using.rst 
new/pbr-5.7.0/doc/source/user/using.rst
--- old/pbr-5.6.0/doc/source/user/using.rst     2021-04-26 17:18:18.000000000 
+0200
+++ new/pbr-5.7.0/doc/source/user/using.rst     2021-11-04 10:25:43.000000000 
+0100
@@ -34,6 +34,18 @@
    While one can pass any arguments supported by setuptools to ``setup()``,
    any conflicting arguments supplied in ``setup.cfg`` will take precedence.
 
+``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``.
+Your build-system block in ``pyproject.toml`` will need to look something
+like this::
+
+    [build-system]
+    requires = ["pbr>=5.7.0", "setuptools>=36.6.0", "wheel"]
+    build-backend = "pbr.build"
+
 .. _setup_cfg:
 
 ``setup.cfg``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/pbr/build.py new/pbr-5.7.0/pbr/build.py
--- old/pbr-5.6.0/pbr/build.py  1970-01-01 01:00:00.000000000 +0100
+++ new/pbr-5.7.0/pbr/build.py  2021-11-04 10:25:43.000000000 +0100
@@ -0,0 +1,61 @@
+# Copyright 2021 Monty Taylor
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+"""pep-517 support
+
+Add::
+
+      [build-system]
+      requires = ["pbr>=5.7.0", "setuptools>=36.6.0", "wheel"]
+      build-backend = "pbr.build"
+
+to pyproject.toml to use this
+"""
+
+from setuptools import build_meta
+
+__all__ = [
+    'get_requires_for_build_sdist',
+    'get_requires_for_build_wheel',
+    'prepare_metadata_for_build_wheel',
+    'build_wheel',
+    'build_sdist',
+]
+
+
+def get_requires_for_build_wheel(config_settings=None):
+    return build_meta.get_requires_for_build_wheel(config_settings)
+
+
+def get_requires_for_build_sdist(config_settings=None):
+    return build_meta.get_requires_for_build_sdist(config_settings)
+
+
+def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
+    return build_meta.prepare_metadata_for_build_wheel(
+        metadata_directory, config_settings)
+
+
+def build_wheel(
+    wheel_directory,
+    config_settings=None,
+    metadata_directory=None,
+):
+    return build_meta.build_wheel(
+        wheel_directory, config_settings, metadata_directory,
+    )
+
+
+def build_sdist(sdist_directory, config_settings=None):
+    return build_meta.build_sdist(sdist_directory, config_settings)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/pbr/tests/test_packaging.py 
new/pbr-5.7.0/pbr/tests/test_packaging.py
--- old/pbr-5.6.0/pbr/tests/test_packaging.py   2021-04-26 17:18:18.000000000 
+0200
+++ new/pbr-5.7.0/pbr/tests/test_packaging.py   2021-11-04 10:25:43.000000000 
+0100
@@ -172,11 +172,10 @@
         """
         self._reason = reason
         if modules == ():
-            pbr = 'file://%s#egg=pbr' % PBR_ROOT
-            modules = ['pip', 'wheel', pbr]
+            modules = ['pip', 'wheel', 'build', PBR_ROOT]
         self.modules = modules
         if pip_cmd is None:
-            self.pip_cmd = ['-m', 'pip', 'install']
+            self.pip_cmd = ['-m', 'pip', '-v', 'install']
         else:
             self.pip_cmd = pip_cmd
 
@@ -230,6 +229,9 @@
         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):
@@ -920,6 +922,56 @@
             self.assertEqual(exp_parsed, gen_parsed)
 
 
+class TestPEP517Support(base.BaseTestCase):
+    def test_pep_517_support(self):
+        pkgs = {
+            'test_pep517':
+                {
+                    'requirements.txt': textwrap.dedent("""\
+                        sphinx
+                        iso8601
+                    """),
+                    # Override no setup.py.
+                    'setup.py': '',
+                    'setup.cfg': textwrap.dedent("""\
+                        [metadata]
+                        name = test_pep517
+                        summary = A tiny test project
+                        author = PBR Team
+                        author-email = f...@example.com
+                        home-page = https://example.com/
+                        classifier =
+                            Intended Audience :: Information Technology
+                            Intended Audience :: System Administrators
+                            License :: OSI Approved :: Apache Software License
+                            Operating System :: POSIX :: Linux
+                            Programming Language :: Python
+                            Programming Language :: Python :: 2
+                            Programming Language :: Python :: 2.7
+                            Programming Language :: Python :: 3
+                            Programming Language :: Python :: 3.6
+                            Programming Language :: Python :: 3.7
+                            Programming Language :: Python :: 3.8
+                    """),
+                    'pyproject.toml': textwrap.dedent("""\
+                        [build-system]
+                        requires = ["pbr", "setuptools>=36.6.0", "wheel"]
+                        build-backend = "pbr.build"
+                    """)},
+        }
+        pkg_dirs = self.useFixture(CreatePackages(pkgs)).package_dirs
+        pkg_dir = pkg_dirs['test_pep517']
+        venv = self.useFixture(Venv('PEP517'))
+
+        # Test building sdists and wheels works. Note we do not use pip here
+        # because pip will forcefully install the latest version of PBR on
+        # pypi to satisfy the build-system requires. This means we can't self
+        # test changes using pip. Build with --no-isolation appears to avoid
+        # this problem.
+        self._run_cmd(venv.python, ('-m', 'build', '--no-isolation', '.'),
+                      allow_fail=False, cwd=pkg_dir)
+
+
 class TestRepositoryURLDependencies(base.BaseTestCase):
 
     def setUp(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/pbr/util.py new/pbr-5.7.0/pbr/util.py
--- old/pbr-5.6.0/pbr/util.py   2021-04-26 17:18:18.000000000 +0200
+++ new/pbr-5.7.0/pbr/util.py   2021-11-04 10:25:43.000000000 +0100
@@ -88,10 +88,8 @@
 # predicates in ()
 _VERSION_SPEC_RE = re.compile(r'\s*(.*?)\s*\((.*)\)\s*$')
 
-
-# Mappings from setup() keyword arguments to setup.cfg options;
-# The values are (section, option) tuples, or simply (section,) tuples if
-# the option has the same name as the setup() argument
+# Mappings from setup.cfg options, in (section, option) form, to setup()
+# keyword arguments
 CFG_TO_PY_SETUP_ARGS = (
     (('metadata', 'name'), 'name'),
     (('metadata', 'version'), 'version'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/pbr.egg-info/PKG-INFO 
new/pbr-5.7.0/pbr.egg-info/PKG-INFO
--- old/pbr-5.6.0/pbr.egg-info/PKG-INFO 2021-04-26 17:18:50.000000000 +0200
+++ new/pbr-5.7.0/pbr.egg-info/PKG-INFO 2021-11-04 10:26:18.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pbr
-Version: 5.6.0
+Version: 5.7.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.6.0/pbr.egg-info/SOURCES.txt 
new/pbr-5.7.0/pbr.egg-info/SOURCES.txt
--- old/pbr-5.6.0/pbr.egg-info/SOURCES.txt      2021-04-26 17:18:50.000000000 
+0200
+++ new/pbr-5.7.0/pbr.egg-info/SOURCES.txt      2021-11-04 10:26:18.000000000 
+0100
@@ -8,6 +8,7 @@
 ChangeLog
 LICENSE
 README.rst
+pyproject.toml.future
 setup.cfg
 setup.py
 test-requirements.txt
@@ -26,6 +27,7 @@
 doc/source/user/semver.rst
 doc/source/user/using.rst
 pbr/__init__.py
+pbr/build.py
 pbr/builddoc.py
 pbr/core.py
 pbr/extra_files.py
@@ -102,6 +104,7 @@
 
releasenotes/notes/fix-mapping-value-explode-with-equal-sign-41bf822fa4dd0e68.yaml
 releasenotes/notes/ignore-find-links-07cf54f465aa33a6.yaml
 releasenotes/notes/long-descr-content-type-f9a1003acbb8740f.yaml
+releasenotes/notes/pep517-support-89189ce0bab15845.yaml
 releasenotes/notes/remove-command-hooks-907d9c2325f306ca.yaml
 releasenotes/notes/support-vcs-uris-with-subdirectories-20ad68b6138f72ca.yaml
 releasenotes/notes/use_2to3-removal-ac48bf9fbfa049b1.yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pbr-5.6.0/pyproject.toml.future 
new/pbr-5.7.0/pyproject.toml.future
--- old/pbr-5.6.0/pyproject.toml.future 1970-01-01 01:00:00.000000000 +0100
+++ new/pbr-5.7.0/pyproject.toml.future 2021-11-04 10:25:43.000000000 +0100
@@ -0,0 +1,9 @@
+# PBR doesn't use the pyproject.toml interface internally yet as
+# fixing issues in the system will be difficult if PBR itself
+# depends on it. We will put this file into place at pyproject.toml
+# once we are more confident it works generally.
+
+[build-system]
+requires = ["setuptools>=36.6.0", "wheel"]
+build-backend = "pbr.build"
+backend-path = ["."]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pbr-5.6.0/releasenotes/notes/pep517-support-89189ce0bab15845.yaml 
new/pbr-5.7.0/releasenotes/notes/pep517-support-89189ce0bab15845.yaml
--- old/pbr-5.6.0/releasenotes/notes/pep517-support-89189ce0bab15845.yaml       
1970-01-01 01:00:00.000000000 +0100
+++ new/pbr-5.7.0/releasenotes/notes/pep517-support-89189ce0bab15845.yaml       
2021-11-04 10:25:43.000000000 +0100
@@ -0,0 +1,7 @@
+---
+features:
+  - |
+    PBR now includes a PEP 517 build-backend and can be used in
+    pyproject.toml build-system configuration. Setuptools continues
+    to be the underlying mechanism with PBR acting as a driver via
+    PEP 517 entrypoints.

Reply via email to