Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cfgv for openSUSE:Factory 
checked in at 2022-03-28 17:00:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cfgv (Old)
 and      /work/SRC/openSUSE:Factory/.python-cfgv.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cfgv"

Mon Mar 28 17:00:51 2022 rev:6 rq:965203 version:3.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cfgv/python-cfgv.changes  2020-08-05 
20:28:35.939073562 +0200
+++ /work/SRC/openSUSE:Factory/.python-cfgv.new.1900/python-cfgv.changes        
2022-03-28 17:01:44.149065120 +0200
@@ -1,0 +2,6 @@
+Sun Mar 27 14:52:35 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 3.3.1:
+  * python 3.9 enabled 
+
+-------------------------------------------------------------------

Old:
----
  cfgv-3.2.0.tar.gz

New:
----
  cfgv-3.3.1.tar.gz

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

Other differences:
------------------
++++++ python-cfgv.spec ++++++
--- /var/tmp/diff_new_pack.PKdkFh/_old  2022-03-28 17:01:44.593065723 +0200
+++ /var/tmp/diff_new_pack.PKdkFh/_new  2022-03-28 17:01:44.597065729 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cfgv
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-cfgv
-Version:        3.2.0
+Version:        3.3.1
 Release:        0
 Summary:        Configuration validator producing human readable error messages
 License:        MIT

++++++ cfgv-3.2.0.tar.gz -> cfgv-3.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/.github/FUNDING.yml 
new/cfgv-3.3.1/.github/FUNDING.yml
--- old/cfgv-3.2.0/.github/FUNDING.yml  1970-01-01 01:00:00.000000000 +0100
+++ new/cfgv-3.3.1/.github/FUNDING.yml  2021-08-25 16:18:18.000000000 +0200
@@ -0,0 +1 @@
+github: asottile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/.pre-commit-config.yaml 
new/cfgv-3.3.1/.pre-commit-config.yaml
--- old/cfgv-3.2.0/.pre-commit-config.yaml      2020-07-31 03:54:31.000000000 
+0200
+++ new/cfgv-3.3.1/.pre-commit-config.yaml      2021-08-25 16:18:18.000000000 
+0200
@@ -1,6 +1,6 @@
 repos:
 -   repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v2.5.0
+    rev: v4.0.1
     hooks:
     -   id: trailing-whitespace
     -   id: end-of-file-fixer
@@ -9,30 +9,30 @@
     -   id: debug-statements
     -   id: name-tests-test
     -   id: requirements-txt-fixer
--   repo: https://gitlab.com/pycqa/flake8
-    rev: 3.8.0
+-   repo: https://github.com/PyCQA/flake8
+    rev: 3.9.2
     hooks:
     -   id: flake8
 -   repo: https://github.com/pre-commit/mirrors-autopep8
-    rev: v1.5.2
+    rev: v1.5.7
     hooks:
     -   id: autopep8
 -   repo: https://github.com/asottile/reorder_python_imports
-    rev: v2.3.0
+    rev: v2.6.0
     hooks:
     -   id: reorder-python-imports
         args: [--py3-plus]
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.4.1
+    rev: v2.24.0
     hooks:
     -   id: pyupgrade
         args: [--py36-plus]
 -   repo: https://github.com/asottile/add-trailing-comma
-    rev: v2.0.1
+    rev: v2.1.0
     hooks:
     -   id: add-trailing-comma
         args: [--py36-plus]
 -   repo: https://github.com/asottile/setup-cfg-fmt
-    rev: v1.9.0
+    rev: v1.17.0
     hooks:
     -   id: setup-cfg-fmt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/README.md new/cfgv-3.3.1/README.md
--- old/cfgv-3.2.0/README.md    2020-07-31 03:54:31.000000000 +0200
+++ new/cfgv-3.3.1/README.md    2021-08-25 16:18:18.000000000 +0200
@@ -1,5 +1,6 @@
 [![Build 
Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.cfgv?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=24&branchName=master)
 [![Azure DevOps 
coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/24/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=24&branchName=master)
+[![pre-commit.ci 
status](https://results.pre-commit.ci/badge/github/asottile/cfgv/master.svg)](https://results.pre-commit.ci/latest/github/asottile/cfgv/master)
 
 cfgv
 ====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/azure-pipelines.yml 
new/cfgv-3.3.1/azure-pipelines.yml
--- old/cfgv-3.2.0/azure-pipelines.yml  2020-07-31 03:54:31.000000000 +0200
+++ new/cfgv-3.3.1/azure-pipelines.yml  2021-08-25 16:18:18.000000000 +0200
@@ -10,10 +10,9 @@
       type: github
       endpoint: github
       name: asottile/azure-pipeline-templates
-      ref: refs/tags/v1.0.1
+      ref: refs/tags/v2.1.0
 
 jobs:
-- template: job--pre-commit.yml@asottile
 - template: job--python-tox.yml@asottile
   parameters:
     toxenvs: [pypy3, py36, py37, py38]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/cfgv.py new/cfgv-3.3.1/cfgv.py
--- old/cfgv-3.2.0/cfgv.py      2020-07-31 03:54:31.000000000 +0200
+++ new/cfgv-3.3.1/cfgv.py      2021-08-25 16:18:18.000000000 +0200
@@ -31,7 +31,7 @@
         yield
     except ValidationError as e:
         _, _, tb = sys.exc_info()
-        raise ValidationError(e, ctx=msg).with_traceback(tb)
+        raise ValidationError(e, ctx=msg).with_traceback(tb) from None
 
 
 @contextlib.contextmanager
@@ -40,7 +40,7 @@
         yield
     except ValidationError as e:
         _, _, tb = sys.exc_info()
-        raise tp(e).with_traceback(tb)
+        raise tp(e).with_traceback(tb) from None
 
 
 def _dct_noop(self, dct):
@@ -392,8 +392,8 @@
         exc_tp=ValidationError,
 ):
     with reraise_as(exc_tp):
-        if not os.path.exists(filename):
-            raise ValidationError(f'{filename} does not exist')
+        if not os.path.isfile(filename):
+            raise ValidationError(f'{filename} is not a file')
 
         with validate_context(f'File {filename}'):
             try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/setup.cfg new/cfgv-3.3.1/setup.cfg
--- old/cfgv-3.2.0/setup.cfg    2020-07-31 03:54:31.000000000 +0200
+++ new/cfgv-3.3.1/setup.cfg    2021-08-25 16:18:18.000000000 +0200
@@ -1,6 +1,6 @@
 [metadata]
 name = cfgv
-version = 3.2.0
+version = 3.3.1
 description = Validate configuration and produce human readable error messages.
 long_description = file: README.md
 long_description_content_type = text/markdown
@@ -16,6 +16,7 @@
     Programming Language :: Python :: 3.6
     Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
+    Programming Language :: Python :: 3.9
     Programming Language :: Python :: Implementation :: CPython
     Programming Language :: Python :: Implementation :: PyPy
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cfgv-3.2.0/tests/cfgv_test.py 
new/cfgv-3.3.1/tests/cfgv_test.py
--- old/cfgv-3.2.0/tests/cfgv_test.py   2020-07-31 03:54:31.000000000 +0200
+++ new/cfgv-3.3.1/tests/cfgv_test.py   2021-08-25 16:18:18.000000000 +0200
@@ -529,7 +529,15 @@
 def test_load_from_filename_file_does_not_exist():
     with pytest.raises(Error) as excinfo:
         load_from_filename('does_not_exist', map_required, json.loads, Error)
-    assert excinfo.value.args[0].error_msg == 'does_not_exist does not exist'
+    assert excinfo.value.args[0].error_msg == 'does_not_exist is not a file'
+
+
+def test_load_from_filename_not_a_file(tmpdir):
+    with tmpdir.as_cwd():
+        tmpdir.join('f').ensure_dir()
+        with pytest.raises(Error) as excinfo:
+            load_from_filename('f', map_required, json.loads, Error)
+        assert excinfo.value.args[0].error_msg == 'f is not a file'
 
 
 def test_load_from_filename_unicode_error(tmp_path):

Reply via email to