Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-oslo.policy for 
openSUSE:Factory checked in at 2024-03-25 21:11:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.policy (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslo.policy.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslo.policy"

Mon Mar 25 21:11:07 2024 rev:23 rq:1161176 version:4.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.policy/python-oslo.policy.changes    
2024-01-05 21:42:55.045579893 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-oslo.policy.new.1905/python-oslo.policy.changes
  2024-03-25 21:17:48.490590403 +0100
@@ -1,0 +2,13 @@
+Sun Mar 24 20:02:38 UTC 2024 - cloud-de...@suse.de
+
+- removed 0001-Avoid-TypeError-when-building-with-Sphinx-6.1.1-and-.patch
+- update to version 4.3.0
+  - Fix doc build error
+  - Update master for stable/2023.2
+  - coveragerc: Remove non-existent path
+  - Add flag to skip undefined rule check
+  - reno: Update master for unmaintained/yoga
+  - Use consistent commands for coverage
+  - Update python classifier in setup.cfg
+
+-------------------------------------------------------------------

Old:
----
  0001-Avoid-TypeError-when-building-with-Sphinx-6.1.1-and-.patch
  oslo.policy-4.2.1.tar.gz

New:
----
  oslo.policy-4.3.0.tar.gz

BETA DEBUG BEGIN:
  Old:
- removed 0001-Avoid-TypeError-when-building-with-Sphinx-6.1.1-and-.patch
- update to version 4.3.0
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-oslo.policy.spec ++++++
--- /var/tmp/diff_new_pack.TxlHnj/_old  2024-03-25 21:17:49.954644249 +0100
+++ /var/tmp/diff_new_pack.TxlHnj/_new  2024-03-25 21:17:49.958644396 +0100
@@ -17,14 +17,13 @@
 
 
 Name:           python-oslo.policy
-Version:        4.2.1
+Version:        4.3.0
 Release:        0
 Summary:        OpenStack Oslo Policy library
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://docs.openstack.org/oslo.policy
-Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.policy/oslo.policy-4.2.1.tar.gz
-Patch1:         0001-Avoid-TypeError-when-building-with-Sphinx-6.1.1-and-.patch
+Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.policy/oslo.policy-4.3.0.tar.gz
 BuildRequires:  openstack-macros
 BuildRequires:  python3-PyYAML >= 5.1
 BuildRequires:  python3-defusedxml
@@ -76,7 +75,7 @@
 Documentation for the Oslo Policy library.
 
 %prep
-%autosetup -p1 -n oslo.policy-4.2.1
+%autosetup -p1 -n oslo.policy-4.3.0
 %py_req_cleanup
 
 %build

++++++ oslo.policy-4.2.1.tar.gz -> oslo.policy-4.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/.coveragerc 
new/oslo.policy-4.3.0/.coveragerc
--- old/oslo.policy-4.2.1/.coveragerc   2023-08-28 14:57:37.000000000 +0200
+++ new/oslo.policy-4.3.0/.coveragerc   2024-02-22 16:11:24.000000000 +0100
@@ -1,7 +1,7 @@
 [run]
 branch = True
 source = oslo_policy
-omit = oslo_policy/tests/*,oslo_policy/openstack/*
+omit = oslo_policy/tests/*
 
 [report]
 ignore_errors = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/AUTHORS 
new/oslo.policy-4.3.0/AUTHORS
--- old/oslo.policy-4.2.1/AUTHORS       2023-08-28 14:58:03.000000000 +0200
+++ new/oslo.policy-4.3.0/AUTHORS       2024-02-22 16:12:00.000000000 +0100
@@ -97,6 +97,7 @@
 Stephen Finucane <sfinu...@redhat.com>
 Steve Martinelli <steve...@ca.ibm.com>
 Sujitha <sujitha.n...@intel.com>
+Takashi Kajinami <kajina...@oss.nttdata.com>
 Takashi NATSUME <natsume.taka...@lab.ntt.co.jp>
 Thiago Paiva <thia...@lsd.ufcg.edu.br>
 Thomas Duval <thomas.du...@orange.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/ChangeLog 
new/oslo.policy-4.3.0/ChangeLog
--- old/oslo.policy-4.2.1/ChangeLog     2023-08-28 14:58:03.000000000 +0200
+++ new/oslo.policy-4.3.0/ChangeLog     2024-02-22 16:12:00.000000000 +0100
@@ -1,6 +1,17 @@
 CHANGES
 =======
 
+4.3.0
+-----
+
+* Use consistent commands for coverage
+* reno: Update master for unmaintained/yoga
+* Add flag to skip undefined rule check
+* Update python classifier in setup.cfg
+* coveragerc: Remove non-existent path
+* Fix doc build error
+* Update master for stable/2023.2
+
 4.2.1
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/PKG-INFO 
new/oslo.policy-4.3.0/PKG-INFO
--- old/oslo.policy-4.2.1/PKG-INFO      2023-08-28 14:58:04.199221100 +0200
+++ new/oslo.policy-4.3.0/PKG-INFO      2024-02-22 16:12:00.508536000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: oslo.policy
-Version: 4.2.1
+Version: 4.3.0
 Summary: Oslo Policy library
 Home-page: https://docs.openstack.org/oslo.policy/latest/
 Author: OpenStack
@@ -45,6 +45,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Requires-Python: >=3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/doc/source/conf.py 
new/oslo.policy-4.3.0/doc/source/conf.py
--- old/oslo.policy-4.2.1/doc/source/conf.py    2023-08-28 14:57:37.000000000 
+0200
+++ new/oslo.policy-4.3.0/doc/source/conf.py    2024-02-22 16:11:24.000000000 
+0100
@@ -98,7 +98,7 @@
 # -- sphinx.ext.extlinks configuration ---------------------------------------
 
 extlinks = {
-    'example': (source_tree + '/oslo_policy/%s', ''),
+    'example': (source_tree + '/oslo_policy/%s', '%s'),
 }
 
 # -- sphinxcontrib.apidoc configuration --------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/oslo.policy.egg-info/PKG-INFO 
new/oslo.policy-4.3.0/oslo.policy.egg-info/PKG-INFO
--- old/oslo.policy-4.2.1/oslo.policy.egg-info/PKG-INFO 2023-08-28 
14:58:03.000000000 +0200
+++ new/oslo.policy-4.3.0/oslo.policy.egg-info/PKG-INFO 2024-02-22 
16:12:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: oslo.policy
-Version: 4.2.1
+Version: 4.3.0
 Summary: Oslo Policy library
 Home-page: https://docs.openstack.org/oslo.policy/latest/
 Author: OpenStack
@@ -45,6 +45,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Requires-Python: >=3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/oslo.policy.egg-info/SOURCES.txt 
new/oslo.policy-4.3.0/oslo.policy.egg-info/SOURCES.txt
--- old/oslo.policy-4.2.1/oslo.policy.egg-info/SOURCES.txt      2023-08-28 
14:58:04.000000000 +0200
+++ new/oslo.policy-4.3.0/oslo.policy.egg-info/SOURCES.txt      2024-02-22 
16:12:00.000000000 +0100
@@ -106,6 +106,7 @@
 releasenotes/notes/policy-check-performance-fbad83c7a4afd7d7.yaml
 releasenotes/notes/policy-file-validator-906d5cff864a2d51.yaml
 releasenotes/source/2023.1.rst
+releasenotes/source/2023.2.rst
 releasenotes/source/conf.py
 releasenotes/source/index.rst
 releasenotes/source/newton.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/oslo.policy.egg-info/pbr.json 
new/oslo.policy-4.3.0/oslo.policy.egg-info/pbr.json
--- old/oslo.policy-4.2.1/oslo.policy.egg-info/pbr.json 2023-08-28 
14:58:03.000000000 +0200
+++ new/oslo.policy-4.3.0/oslo.policy.egg-info/pbr.json 2024-02-22 
16:12:00.000000000 +0100
@@ -1 +1 @@
-{"git_version": "37de6f3", "is_release": true}
\ No newline at end of file
+{"git_version": "4b7a6f7", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/oslo_policy/policy.py 
new/oslo.policy-4.3.0/oslo_policy/policy.py
--- old/oslo.policy-4.2.1/oslo_policy/policy.py 2023-08-28 14:57:37.000000000 
+0200
+++ new/oslo.policy-4.3.0/oslo_policy/policy.py 2024-02-22 16:11:24.000000000 
+0100
@@ -556,6 +556,10 @@
         self.suppress_default_change_warnings = False
         # FOR TESTING ONLY
         self.suppress_deprecation_warnings = False
+        # NOTE(tkajinam): Some components(eg. neutron-lib) build their own
+        # enforcers to check only partial rules with the full policy rules, and
+        # this sometimes causes a lot of undefined warnings
+        self.skip_undefined_check = False
 
     def set_rules(self, rules, overwrite=True, use_conf=False):
         """Create a new :class:`Rules` based on the provided dict of rules.
@@ -693,7 +697,7 @@
         cyclic_checks = []
         violation = False
         for name, check in self.rules.items():
-            if self._undefined_check(check):
+            if not self.skip_undefined_check and self._undefined_check(check):
                 undefined_checks.append(name)
                 violation = True
             if self._cycle_check(check):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/oslo_policy/tests/test_policy.py 
new/oslo.policy-4.3.0/oslo_policy/tests/test_policy.py
--- old/oslo.policy-4.2.1/oslo_policy/tests/test_policy.py      2023-08-28 
14:57:37.000000000 +0200
+++ new/oslo.policy-4.3.0/oslo_policy/tests/test_policy.py      2024-02-22 
16:11:24.000000000 +0100
@@ -1949,6 +1949,18 @@
         mock_log.warning.assert_called()
 
     @mock.patch.object(policy, 'LOG')
+    def test_undefined_rule_skipped(self, mock_log):
+        rules = jsonutils.dumps({'foo': 'rule:bar'})
+        self.create_config_file('policy.json', rules)
+        self.enforcer.skip_undefined_check = True
+        self.enforcer.load_rules(True)
+
+        self.assertTrue(self.enforcer.check_rules())
+        # TODO(tkajinam): This fails because of warnings caused by JSON format
+        # policy file used
+        # mock_log.warning.assert_not_called()
+
+    @mock.patch.object(policy, 'LOG')
     def test_undefined_rule_raises(self, mock_log):
         rules = jsonutils.dumps({'foo': 'rule:bar'})
         self.create_config_file('policy.json', rules)
@@ -1959,6 +1971,18 @@
         mock_log.warning.assert_called()
 
     @mock.patch.object(policy, 'LOG')
+    def test_undefined_rule_raises_skipped(self, mock_log):
+        rules = jsonutils.dumps({'foo': 'rule:bar'})
+        self.create_config_file('policy.json', rules)
+        self.enforcer.skip_undefined_check = True
+        self.enforcer.load_rules(True)
+
+        self.assertTrue(self.enforcer.check_rules(raise_on_violation=True))
+        # TODO(tkajinam): This fails because of warnings caused by JSON format
+        # policy file used
+        # mock_log.warning.assert_not_called()
+
+    @mock.patch.object(policy, 'LOG')
     def test_cyclical_rules(self, mock_log):
         rules = jsonutils.dumps({'foo': 'rule:bar', 'bar': 'rule:foo'})
         self.create_config_file('policy.json', rules)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/releasenotes/source/2023.2.rst 
new/oslo.policy-4.3.0/releasenotes/source/2023.2.rst
--- old/oslo.policy-4.2.1/releasenotes/source/2023.2.rst        1970-01-01 
01:00:00.000000000 +0100
+++ new/oslo.policy-4.3.0/releasenotes/source/2023.2.rst        2024-02-22 
16:11:24.000000000 +0100
@@ -0,0 +1,6 @@
+===========================
+2023.2 Series Release Notes
+===========================
+
+.. release-notes::
+   :branch: stable/2023.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/releasenotes/source/index.rst 
new/oslo.policy-4.3.0/releasenotes/source/index.rst
--- old/oslo.policy-4.2.1/releasenotes/source/index.rst 2023-08-28 
14:57:37.000000000 +0200
+++ new/oslo.policy-4.3.0/releasenotes/source/index.rst 2024-02-22 
16:11:24.000000000 +0100
@@ -6,6 +6,7 @@
    :maxdepth: 1
 
    unreleased
+   2023.2
    2023.1
    zed
    yoga
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/releasenotes/source/yoga.rst 
new/oslo.policy-4.3.0/releasenotes/source/yoga.rst
--- old/oslo.policy-4.2.1/releasenotes/source/yoga.rst  2023-08-28 
14:57:37.000000000 +0200
+++ new/oslo.policy-4.3.0/releasenotes/source/yoga.rst  2024-02-22 
16:11:24.000000000 +0100
@@ -3,4 +3,4 @@
 =========================
 
 .. release-notes::
-   :branch: stable/yoga
+   :branch: unmaintained/yoga
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/setup.cfg 
new/oslo.policy-4.3.0/setup.cfg
--- old/oslo.policy-4.2.1/setup.cfg     2023-08-28 14:58:04.199221100 +0200
+++ new/oslo.policy-4.3.0/setup.cfg     2024-02-22 16:12:00.512536300 +0100
@@ -18,6 +18,7 @@
        Programming Language :: Python :: 3.8
        Programming Language :: Python :: 3.9
        Programming Language :: Python :: 3.10
+       Programming Language :: Python :: 3.11
        Programming Language :: Python :: 3 :: Only
        Programming Language :: Python :: Implementation :: CPython
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.policy-4.2.1/tox.ini 
new/oslo.policy-4.3.0/tox.ini
--- old/oslo.policy-4.2.1/tox.ini       2023-08-28 14:57:37.000000000 +0200
+++ new/oslo.policy-4.3.0/tox.ini       2024-02-22 16:11:24.000000000 +0100
@@ -38,10 +38,11 @@
 setenv =
     PYTHON=coverage run --source oslo_policy --parallel-mode
 commands =
+  coverage erase
   stestr run --slowest {posargs}
   coverage combine
   coverage html -d cover
-  coverage report
+  coverage report --show-missing
 
 [flake8]
 show-source = True

Reply via email to