Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ansible-compat for openSUSE:Factory checked in at 2024-07-15 19:46:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ansible-compat (Old) and /work/SRC/openSUSE:Factory/.python-ansible-compat.new.17339 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ansible-compat" Mon Jul 15 19:46:39 2024 rev:26 rq:1187216 version:24.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ansible-compat/python-ansible-compat.changes 2024-06-10 17:37:39.319001683 +0200 +++ /work/SRC/openSUSE:Factory/.python-ansible-compat.new.17339/python-ansible-compat.changes 2024-07-15 19:47:04.378814789 +0200 @@ -1,0 +2,7 @@ +Thu Jul 11 19:02:05 UTC 2024 - Johannes Kastl <opensuse_buildserv...@ojkastl.de> + +- update to 24.7.0: + * Bugfixes + - Minor code quality improvements (#390) @cidrblock + +------------------------------------------------------------------- Old: ---- python-ansible-compat-24.6.1.tar.gz New: ---- python-ansible-compat-24.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ansible-compat.spec ++++++ --- /var/tmp/diff_new_pack.UlUhes/_old 2024-07-15 19:47:04.958836047 +0200 +++ /var/tmp/diff_new_pack.UlUhes/_new 2024-07-15 19:47:04.962836194 +0200 @@ -24,7 +24,7 @@ %endif Name: python-ansible-compat -Version: 24.6.1 +Version: 24.7.0 Release: 0 Summary: Compatibility shim for Ansible 2.9 and newer License: MIT ++++++ python-ansible-compat-24.6.1.tar.gz -> python-ansible-compat-24.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansible-compat-24.6.1/.git_archival.txt new/ansible-compat-24.7.0/.git_archival.txt --- old/ansible-compat-24.6.1/.git_archival.txt 2024-06-05 16:05:54.000000000 +0200 +++ new/ansible-compat-24.7.0/.git_archival.txt 2024-07-10 23:01:51.000000000 +0200 @@ -1,4 +1,4 @@ -node: 2cd7e39f7a13f003c6cba7142ae5a7a5b4585018 -node-date: 2024-06-05T07:05:54-07:00 -describe-name: v24.6.1 -ref-names: HEAD -> main, tag: v24.6.1 +node: 37f215861e4e47abf7b4dfe7be77581583e98c3a +node-date: 2024-07-10T21:01:51+00:00 +describe-name: v24.7.0 +ref-names: HEAD -> main, tag: v24.7.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansible-compat-24.6.1/.pre-commit-config.yaml new/ansible-compat-24.7.0/.pre-commit-config.yaml --- old/ansible-compat-24.6.1/.pre-commit-config.yaml 2024-06-05 16:05:54.000000000 +0200 +++ new/ansible-compat-24.7.0/.pre-commit-config.yaml 2024-07-10 23:01:51.000000000 +0200 @@ -22,7 +22,7 @@ )$ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.7" + rev: "v0.5.0" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -73,7 +73,7 @@ - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy # empty args needed in order to match mypy cli behavior @@ -90,7 +90,7 @@ - types-pkg_resources - types-jsonschema>=4.4.9 - repo: https://github.com/pycqa/pylint - rev: v3.2.2 + rev: v3.2.4 hooks: - id: pylint additional_dependencies: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansible-compat-24.6.1/src/ansible_compat/config.py new/ansible-compat-24.7.0/src/ansible_compat/config.py --- old/ansible-compat-24.6.1/src/ansible_compat/config.py 2024-06-05 16:05:54.000000000 +0200 +++ new/ansible-compat-24.7.0/src/ansible_compat/config.py 2024-07-10 23:01:51.000000000 +0200 @@ -59,8 +59,8 @@ if version: return Version(version) - proc = subprocess.run( - ["ansible", "--version"], # noqa: S603 + proc = subprocess.run( # noqa: S603 + ["ansible", "--version"], text=True, check=False, capture_output=True, @@ -413,8 +413,8 @@ env = os.environ.copy() # Avoid possible ANSI garbage env["ANSIBLE_FORCE_COLOR"] = "0" - config_dump = subprocess.check_output( - ["ansible-config", "dump"], # noqa: S603 + config_dump = subprocess.check_output( # noqa: S603 + ["ansible-config", "dump"], universal_newlines=True, env=env, ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansible-compat-24.6.1/src/ansible_compat/runtime.py new/ansible-compat-24.7.0/src/ansible_compat/runtime.py --- old/ansible-compat-24.6.1/src/ansible_compat/runtime.py 2024-06-05 16:05:54.000000000 +0200 +++ new/ansible-compat-24.7.0/src/ansible_compat/runtime.py 2024-07-10 23:01:51.000000000 +0200 @@ -448,9 +448,7 @@ """ if lower and self.version < Version(lower): return False - if upper and self.version >= Version(upper): - return False - return True + return not (upper and self.version >= Version(upper)) def has_playbook(self, playbook: str, *, basedir: Path | None = None) -> bool: """Return true if ansible can load a given playbook. @@ -701,10 +699,7 @@ galaxy_path.parent, destination=destination, ) - elif ( - Path().resolve().parent.name == "roles" - and Path("../../galaxy.yml").exists() - ): + elif Path.cwd().parent.name == "roles" and Path("../../galaxy.yml").exists(): # molecule scenario located within roles/<role-name>/molecule inside # a collection self.install_collection_from_disk( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansible-compat-24.6.1/test/test_runtime.py new/ansible-compat-24.7.0/test/test_runtime.py --- old/ansible-compat-24.6.1/test/test_runtime.py 2024-06-05 16:05:54.000000000 +0200 +++ new/ansible-compat-24.7.0/test/test_runtime.py 2024-07-10 23:01:51.000000000 +0200 @@ -405,8 +405,8 @@ def test_require_collection_wrong_version(runtime: Runtime) -> None: """Tests behaviour of require_collection.""" - subprocess.check_output( - [ # noqa: S603 + subprocess.check_output( # noqa: S603 + [ "ansible-galaxy", "collection", "install",