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 2026-06-15 19:44:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.policy (Old) and /work/SRC/openSUSE:Factory/.python-oslo.policy.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.policy" Mon Jun 15 19:44:26 2026 rev:26 rq:1359322 version:5.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.policy/python-oslo.policy.changes 2026-03-09 16:11:38.225659522 +0100 +++ /work/SRC/openSUSE:Factory/.python-oslo.policy.new.1981/python-oslo.policy.changes 2026-06-15 19:47:50.126459817 +0200 @@ -1,0 +2,11 @@ +Sun Jun 14 20:53:33 UTC 2026 - Dirk Müller <[email protected]> + +- update to 5.1.0: + * tox: Use new constraints option + * typing: Fix compatibility with typed testtools, oslotest + * Update packaging configuration + * ruff: Configure hacking as external linter + * Update master for stable/2026.1 + * Replace usage of undocumented logging.WARN + +------------------------------------------------------------------- Old: ---- oslo_policy-5.0.0.tar.gz New: ---- oslo_policy-5.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.policy.spec ++++++ --- /var/tmp/diff_new_pack.lTqD61/_old 2026-06-15 19:47:52.482558822 +0200 +++ /var/tmp/diff_new_pack.lTqD61/_new 2026-06-15 19:47:52.526560670 +0200 @@ -17,7 +17,7 @@ Name: python-oslo.policy -Version: 5.0.0 +Version: 5.1.0 Release: 0 Summary: OpenStack Oslo Policy library License: Apache-2.0 ++++++ oslo_policy-5.0.0.tar.gz -> oslo_policy-5.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/ChangeLog new/oslo_policy-5.1.0/ChangeLog --- old/oslo_policy-5.0.0/ChangeLog 2026-02-17 17:30:38.000000000 +0100 +++ new/oslo_policy-5.1.0/ChangeLog 2026-05-18 11:18:12.000000000 +0200 @@ -1,6 +1,16 @@ CHANGES ======= +5.1.0 +----- + +* tox: Use new constraints option +* typing: Fix compatibility with typed testtools, oslotest +* Update packaging configuration +* ruff: Configure hacking as external linter +* Update master for stable/2026.1 +* Replace usage of undocumented logging.WARN + 5.0.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/PKG-INFO new/oslo_policy-5.1.0/PKG-INFO --- old/oslo_policy-5.0.0/PKG-INFO 2026-02-17 17:30:38.770672600 +0100 +++ new/oslo_policy-5.1.0/PKG-INFO 2026-05-18 11:18:12.435669400 +0200 @@ -1,14 +1,14 @@ Metadata-Version: 2.4 Name: oslo.policy -Version: 5.0.0 +Version: 5.1.0 Summary: Oslo Policy library Author-email: OpenStack <[email protected]> +License-Expression: Apache-2.0 Project-URL: Homepage, https://docs.openstack.org/oslo.policy Project-URL: Repository, https://opendev.org/openstack/oslo.policy Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators -Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/oslo.policy.egg-info/PKG-INFO new/oslo_policy-5.1.0/oslo.policy.egg-info/PKG-INFO --- old/oslo_policy-5.0.0/oslo.policy.egg-info/PKG-INFO 2026-02-17 17:30:38.000000000 +0100 +++ new/oslo_policy-5.1.0/oslo.policy.egg-info/PKG-INFO 2026-05-18 11:18:12.000000000 +0200 @@ -1,14 +1,14 @@ Metadata-Version: 2.4 Name: oslo.policy -Version: 5.0.0 +Version: 5.1.0 Summary: Oslo Policy library Author-email: OpenStack <[email protected]> +License-Expression: Apache-2.0 Project-URL: Homepage, https://docs.openstack.org/oslo.policy Project-URL: Repository, https://opendev.org/openstack/oslo.policy Classifier: Environment :: OpenStack Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators -Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/oslo.policy.egg-info/SOURCES.txt new/oslo_policy-5.1.0/oslo.policy.egg-info/SOURCES.txt --- old/oslo_policy-5.0.0/oslo.policy.egg-info/SOURCES.txt 2026-02-17 17:30:38.000000000 +0100 +++ new/oslo_policy-5.1.0/oslo.policy.egg-info/SOURCES.txt 2026-05-18 11:18:12.000000000 +0200 @@ -119,6 +119,7 @@ releasenotes/source/2024.2.rst releasenotes/source/2025.1.rst releasenotes/source/2025.2.rst +releasenotes/source/2026.1.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-5.0.0/oslo.policy.egg-info/pbr.json new/oslo_policy-5.1.0/oslo.policy.egg-info/pbr.json --- old/oslo_policy-5.0.0/oslo.policy.egg-info/pbr.json 2026-02-17 17:30:38.000000000 +0100 +++ new/oslo_policy-5.1.0/oslo.policy.egg-info/pbr.json 2026-05-18 11:18:12.000000000 +0200 @@ -1 +1 @@ -{"git_version": "b9bf836", "is_release": true} \ No newline at end of file +{"git_version": "7b09e2d", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/oslo_policy/generator.py new/oslo_policy-5.1.0/oslo_policy/generator.py --- old/oslo_policy-5.0.0/oslo_policy/generator.py 2026-02-17 17:29:44.000000000 +0100 +++ new/oslo_policy-5.1.0/oslo_policy/generator.py 2026-05-18 11:17:44.000000000 +0200 @@ -546,7 +546,7 @@ def generate_sample( args: Sequence[str] | None = None, conf: cfg.ConfigOpts | None = None ) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) # Allow the caller to pass in a local conf object for unit testing if conf is None: conf = cfg.CONF @@ -562,7 +562,7 @@ def generate_policy(args: list[str] | None = None) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) conf = cfg.CONF conf.register_cli_opts(GENERATOR_OPTS + ENFORCER_OPTS) conf.register_opts(GENERATOR_OPTS + ENFORCER_OPTS) @@ -599,7 +599,7 @@ def upgrade_policy( args: list[str] | None = None, conf: cfg.ConfigOpts | None = None ) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) # Allow the caller to pass in a local conf object for unit testing if conf is None: conf = cfg.CONF @@ -621,7 +621,7 @@ def list_redundant(args: list[str] | None = None) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) conf = cfg.CONF conf.register_cli_opts(ENFORCER_OPTS) conf.register_opts(ENFORCER_OPTS) @@ -631,7 +631,7 @@ def validate_policy(args: list[str] | None = None) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) conf = cfg.CONF conf.register_cli_opts(ENFORCER_OPTS) conf.register_opts(ENFORCER_OPTS) @@ -642,7 +642,7 @@ def convert_policy_json_to_yaml( args: list[str] | None = None, conf: cfg.ConfigOpts | None = None ) -> None: - logging.basicConfig(level=logging.WARN) + logging.basicConfig(level=logging.WARNING) LOG.warning('The oslopolicy-convert-json-to-yaml tool is deprecated') # Allow the caller to pass in a local conf object for unit testing if conf is None: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/oslo_policy/tests/test_external.py new/oslo_policy-5.1.0/oslo_policy/tests/test_external.py --- old/oslo_policy-5.0.0/oslo_policy/tests/test_external.py 2026-02-17 17:29:44.000000000 +0100 +++ new/oslo_policy-5.1.0/oslo_policy/tests/test_external.py 2026-05-18 11:17:44.000000000 +0200 @@ -49,6 +49,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual( 'application/x-www-form-urlencoded', last_request.headers['Content-Type'], @@ -72,6 +73,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual( 'application/json', last_request.headers['Content-Type'] ) @@ -91,6 +93,7 @@ self.assertFalse(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('POST', last_request.method) self.assertEqual( dict(target=target_dict, credentials=cred_dict, rule=None), @@ -132,6 +135,7 @@ ) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('POST', last_request.method) self.assertEqual( dict(target=target_dict, credentials=cred_dict, rule=current_rule), @@ -151,6 +155,7 @@ ) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('POST', last_request.method) self.assertEqual( dict(target=target_dict, credentials=cred_dict, rule=current_rule), @@ -186,6 +191,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual( 'application/x-www-form-urlencoded', last_request.headers['Content-Type'], @@ -209,6 +215,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual( 'application/json', last_request.headers['Content-Type'] ) @@ -234,6 +241,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual(True, last_request.verify) self.assertEqual('POST', last_request.method) self.assertEqual( @@ -259,6 +267,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('ca.crt', last_request.verify) self.assertEqual('POST', last_request.method) self.assertEqual( @@ -292,6 +301,7 @@ self.assertTrue(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('ca.crt', last_request.verify) self.assertEqual(('client.crt', 'client.key'), last_request.cert) self.assertEqual('POST', last_request.method) @@ -310,6 +320,7 @@ self.assertFalse(check(target_dict, cred_dict, self.enforcer)) last_request = self.requests_mock.last_request + assert last_request is not None self.assertEqual('POST', last_request.method) self.assertEqual( dict(rule=None, target=target_dict, credentials=cred_dict), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/pyproject.toml new/oslo_policy-5.1.0/pyproject.toml --- old/oslo_policy-5.0.0/pyproject.toml 2026-02-17 17:29:44.000000000 +0100 +++ new/oslo_policy-5.1.0/pyproject.toml 2026-05-18 11:17:44.000000000 +0200 @@ -9,12 +9,12 @@ authors = [ {name = "OpenStack", email = "[email protected]"}, ] +license = "Apache-2.0" requires-python = ">=3.10" classifiers = [ "Environment :: OpenStack", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", - "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", @@ -48,8 +48,8 @@ http = "oslo_policy._external:HttpCheck" https = "oslo_policy._external:HttpsCheck" -[tool.setuptools] -packages = ["oslo_policy"] +[tool.setuptools.packages.find] +include = ["oslo_policy"] [tool.mypy] python_version = "3.10" @@ -57,7 +57,7 @@ show_error_context = true strict = true disable_error_code = ["import-untyped"] -exclude = '(?x)(doc | releasenotes)' +exclude = "(?x)(doc | releasenotes)" [[tool.mypy.overrides]] module = ["oslo_policy.tests.*"] @@ -74,7 +74,8 @@ docstring-code-format = true [tool.ruff.lint] -select = ["E4", "E5", "E7", "E9", "F", "S", "UP"] +select = ["E4", "E5", "E7", "E9", "F", "LOG", "S", "UP"] +external = ["H"] ignore = [ # we only use asserts for type narrowing "S101", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/releasenotes/source/2026.1.rst new/oslo_policy-5.1.0/releasenotes/source/2026.1.rst --- old/oslo_policy-5.0.0/releasenotes/source/2026.1.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/oslo_policy-5.1.0/releasenotes/source/2026.1.rst 2026-05-18 11:17:44.000000000 +0200 @@ -0,0 +1,6 @@ +=========================== +2026.1 Series Release Notes +=========================== + +.. release-notes:: + :branch: stable/2026.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/releasenotes/source/index.rst new/oslo_policy-5.1.0/releasenotes/source/index.rst --- old/oslo_policy-5.0.0/releasenotes/source/index.rst 2026-02-17 17:29:44.000000000 +0100 +++ new/oslo_policy-5.1.0/releasenotes/source/index.rst 2026-05-18 11:17:44.000000000 +0200 @@ -6,6 +6,7 @@ :maxdepth: 1 unreleased + 2026.1 2025.2 2025.1 2024.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo_policy-5.0.0/tox.ini new/oslo_policy-5.1.0/tox.ini --- old/oslo_policy-5.0.0/tox.ini 2026-02-17 17:29:44.000000000 +0100 +++ new/oslo_policy-5.1.0/tox.ini 2026-05-18 11:17:44.000000000 +0200 @@ -1,13 +1,13 @@ [tox] -minversion = 3.18.0 +minversion = 4.28.0 envlist = py3,pep8,docs [testenv] +constraints = + {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt - -r{toxinidir}/doc/requirements.txt commands = stestr run --slowest {posargs} [testenv:pep8] @@ -56,9 +56,10 @@ coverage report --show-missing [testenv:releasenotes] -deps = -r{toxinidir}/doc/requirements.txt allowlist_externals = rm +deps = + -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
