Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-yamale for openSUSE:Factory checked in at 2024-03-19 17:32:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-yamale (Old) and /work/SRC/openSUSE:Factory/.python-yamale.new.1905 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yamale" Tue Mar 19 17:32:29 2024 rev:3 rq:1159302 version:5.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-yamale/python-yamale.changes 2023-05-06 22:09:30.488822430 +0200 +++ /work/SRC/openSUSE:Factory/.python-yamale.new.1905/python-yamale.changes 2024-03-19 17:32:53.833089992 +0100 @@ -1,0 +2,7 @@ +Mon Mar 18 19:28:44 UTC 2024 - Johannes Kastl <[email protected]> + +- update to 5.0.0: + * fix 3.12 deprecations by @sigma67 in #237 + * Prep for 5.0.0; Run tests on 3.8, 3.12 by @cblakkan in #240 + +------------------------------------------------------------------- Old: ---- yamale-4.0.4.tar.gz New: ---- yamale-5.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-yamale.spec ++++++ --- /var/tmp/diff_new_pack.lLzY2h/_old 2024-03-19 17:32:54.609118441 +0100 +++ /var/tmp/diff_new_pack.lLzY2h/_new 2024-03-19 17:32:54.609118441 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-yamale # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-yamale -Version: 4.0.4 +Version: 5.0.0 Release: 0 Summary: A schema and validator for YAML License: MIT @@ -29,7 +29,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} ++++++ yamale-4.0.4.tar.gz -> yamale-5.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/.github/workflows/run-tests.yml new/Yamale-5.0.0/.github/workflows/run-tests.yml --- old/Yamale-4.0.4/.github/workflows/run-tests.yml 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/.github/workflows/run-tests.yml 2024-03-05 18:31:50.000000000 +0100 @@ -14,7 +14,7 @@ strategy: fail-fast: false matrix: - python-version: [3.6, 3.8] + python-version: ["3.8", "3.12"] steps: - uses: actions/checkout@v2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/.gitignore new/Yamale-5.0.0/.gitignore --- old/Yamale-4.0.4/.gitignore 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/.gitignore 2024-03-05 18:31:50.000000000 +0100 @@ -32,7 +32,7 @@ # Unit test / coverage reports .tox/ xunit/ -.coverage +.coverage* .cache nosetests.xml coverage.xml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/README.md new/Yamale-5.0.0/README.md --- old/Yamale-4.0.4/README.md 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/README.md 2024-03-05 18:31:50.000000000 +0100 @@ -16,7 +16,7 @@ Requirements ------------ -* Python 3.6+ +* Python 3.8+ * PyYAML * ruamel.yaml (optional) @@ -420,7 +420,7 @@ - keywords: - `allow_empty`: Allow the subset to be empty (and is, therefore, also optional). This overrides the `required` flag. - + Examples: - `subset(int(), str())`: Validators against an integer, a string, or a list of either. - `subset(int(), str(), allow_empty=True)`: Same as above, but allows the empty set and makes the subset optional. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/requirements.txt new/Yamale-5.0.0/requirements.txt --- old/Yamale-4.0.4/requirements.txt 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/requirements.txt 2024-03-05 18:31:50.000000000 +0100 @@ -1 +1 @@ -tox==3.15.2 +tox==4.13.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/setup.py new/Yamale-5.0.0/setup.py --- old/Yamale-4.0.4/setup.py 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/setup.py 2024-03-05 18:31:50.000000000 +0100 @@ -18,7 +18,7 @@ packages=find_packages(), include_package_data=True, install_requires=['pyyaml'], - python_requires='>=3.6', + python_requires='>=3.8', entry_points={ 'console_scripts': ['yamale=yamale.command_line:main'], }, @@ -29,9 +29,10 @@ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.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.12', ] ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/tox.ini new/Yamale-5.0.0/tox.ini --- old/Yamale-4.0.4/tox.ini 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/tox.ini 2024-03-05 18:31:50.000000000 +0100 @@ -1,14 +1,14 @@ [tox] -envlist = py36,py38 +envlist = py38, py310 [gh-actions] python = - 3.6: py36 3.8: py38 + 3.12: py312 [testenv] commands = py.test --cov yamale --cov-report term-missing yamale deps = ruamel.yaml<1 - pytest<6 - pytest-cov<3 + pytest<7 + pytest-cov<4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/yamale/VERSION new/Yamale-5.0.0/yamale/VERSION --- old/Yamale-4.0.4/yamale/VERSION 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/yamale/VERSION 2024-03-05 18:31:50.000000000 +0100 @@ -1 +1 @@ -4.0.4 +5.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Yamale-4.0.4/yamale/syntax/parser.py new/Yamale-5.0.0/yamale/syntax/parser.py --- old/Yamale-4.0.4/yamale/syntax/parser.py 2022-03-18 16:44:34.000000000 +0100 +++ new/Yamale-5.0.0/yamale/syntax/parser.py 2024-03-05 18:31:50.000000000 +0100 @@ -17,11 +17,8 @@ # Validate that all args are constant literals, validator names, or other call nodes arg_values = call_node.args + [kw.value for kw in call_node.keywords] for arg in arg_values: - # In Python 3.8+, the following have been folded into ast.Constant. - constant_types = [ - ast.Constant, ast.Num, ast.Str, ast.Bytes, ast.NameConstant] base_arg = arg.operand if isinstance(arg, ast.UnaryOp) else arg - if any(isinstance(base_arg, type) for type in constant_types): + if isinstance(base_arg, ast.Constant): continue elif isinstance(base_arg, ast.Name) and base_arg.id in validators: continue
