Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-makefun for openSUSE:Factory 
checked in at 2023-03-27 18:16:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-makefun (Old)
 and      /work/SRC/openSUSE:Factory/.python-makefun.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-makefun"

Mon Mar 27 18:16:05 2023 rev:5 rq:1074493 version:1.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-makefun/python-makefun.changes    
2022-12-03 10:04:01.439369479 +0100
+++ /work/SRC/openSUSE:Factory/.python-makefun.new.31432/python-makefun.changes 
2023-03-27 18:16:08.135060800 +0200
@@ -1,0 +2,8 @@
+Sun Mar 26 18:45:31 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 1.15.1:
+  * Fixed `ValueError: Invalid co_name` happening on python 2
+    when the name of a function to create starts or ends with
+    `_` or contains a double `__` 
+
+-------------------------------------------------------------------

Old:
----
  makefun-1.15.0.tar.gz

New:
----
  makefun-1.15.1.tar.gz

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

Other differences:
------------------
++++++ python-makefun.spec ++++++
--- /var/tmp/diff_new_pack.wrg1cK/_old  2023-03-27 18:16:08.791064261 +0200
+++ /var/tmp/diff_new_pack.wrg1cK/_new  2023-03-27 18:16:08.791064261 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-makefun
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 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 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-makefun
-Version:        1.15.0
+Version:        1.15.1
 Release:        0
 License:        BSD-3-Clause
 Summary:        Small library to dynamically create python functions

++++++ makefun-1.15.0.tar.gz -> makefun-1.15.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/PKG-INFO new/makefun-1.15.1/PKG-INFO
--- old/makefun-1.15.0/PKG-INFO 2022-09-08 11:19:50.000000000 +0200
+++ new/makefun-1.15.1/PKG-INFO 2023-02-23 11:43:05.000000000 +0100
@@ -1,9 +1,9 @@
 Metadata-Version: 2.1
 Name: makefun
-Version: 1.15.0
+Version: 1.15.1
 Summary: Small library to dynamically create python functions.
 Home-page: https://github.com/smarie/python-makefun
-Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.0
+Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.1
 Author: Sylvain MARIE <[email protected]>
 Maintainer: Sylvain MARIE <[email protected]>
 License: BSD 3-Clause
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/docs/changelog.md 
new/makefun-1.15.1/docs/changelog.md
--- old/makefun-1.15.0/docs/changelog.md        2022-09-08 11:18:50.000000000 
+0200
+++ new/makefun-1.15.1/docs/changelog.md        2023-02-23 11:42:03.000000000 
+0100
@@ -1,5 +1,10 @@
 # Changelog
 
+### 1.15.1 - bugfixes
+
+ - Fixed `ValueError: Invalid co_name` happening on python 2 when the name of 
a function to create starts or ends with
+   `_` or contains a double `__` . Fixes 
[#91](https://github.com/smarie/python-makefun/issues/91)
+
 ### 1.15.0 - More PEP-compliant `wraps`
 
  - `wraps` now always sets the `__wrapped__` attribute, and also sets the 
`__signature__` attribute when the signature changes, as specified by PEP 362. 
PR []() by [#86](https://github.com/smarie/python-makefun/pull/86) by 
[lucaswiman](https://github.com/lucaswiman).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/src/makefun/_version.py 
new/makefun-1.15.1/src/makefun/_version.py
--- old/makefun-1.15.0/src/makefun/_version.py  2022-09-08 11:19:50.000000000 
+0200
+++ new/makefun-1.15.1/src/makefun/_version.py  2023-02-23 11:43:05.000000000 
+0100
@@ -1,5 +1,4 @@
-# coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-__version__ = version = '1.15.0'
-__version_tuple__ = version_tuple = (1, 15, 0)
+__version__ = version = '1.15.1'
+__version_tuple__ = version_tuple = (1, 15, 1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/src/makefun/main.py 
new/makefun-1.15.1/src/makefun/main.py
--- old/makefun-1.15.0/src/makefun/main.py      2022-09-08 11:18:50.000000000 
+0200
+++ new/makefun-1.15.1/src/makefun/main.py      2023-02-23 11:42:03.000000000 
+0100
@@ -27,7 +27,7 @@
         """
         if len(string) == 0 or string[0].isdigit():
             return False
-        return all([s.isalnum() for s in string.split("_")])
+        return all([(len(s) == 0) or s.isalnum() for s in string.split("_")])
 
 try:  # python 3.3+
     from inspect import signature, Signature, Parameter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/src/makefun.egg-info/PKG-INFO 
new/makefun-1.15.1/src/makefun.egg-info/PKG-INFO
--- old/makefun-1.15.0/src/makefun.egg-info/PKG-INFO    2022-09-08 
11:19:50.000000000 +0200
+++ new/makefun-1.15.1/src/makefun.egg-info/PKG-INFO    2023-02-23 
11:43:05.000000000 +0100
@@ -1,9 +1,9 @@
 Metadata-Version: 2.1
 Name: makefun
-Version: 1.15.0
+Version: 1.15.1
 Summary: Small library to dynamically create python functions.
 Home-page: https://github.com/smarie/python-makefun
-Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.0
+Download-URL: https://github.com/smarie/python-makefun/tarball/1.15.1
 Author: Sylvain MARIE <[email protected]>
 Maintainer: Sylvain MARIE <[email protected]>
 License: BSD 3-Clause
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/makefun-1.15.0/tests/test_issues.py 
new/makefun-1.15.1/tests/test_issues.py
--- old/makefun-1.15.0/tests/test_issues.py     2022-09-08 11:18:50.000000000 
+0200
+++ new/makefun-1.15.1/tests/test_issues.py     2023-02-23 11:42:03.000000000 
+0100
@@ -3,6 +3,8 @@
 
 import pytest
 
+from makefun.main import is_identifier
+
 try:  # python 3.3+
     from inspect import signature, Signature, Parameter
 except ImportError:
@@ -254,7 +256,6 @@
     assert 
asyncio.get_event_loop().run_until_complete(asyncio.ensure_future(f_partial().__anext__()))
 == 1
 
 
-
 @pytest.mark.skipif(sys.version_info < (3, 7, 6), reason="The __wrapped__ 
behavior in get_type_hints being tested was not added until python 3.7.6.")
 def test_issue_85_wrapped_forwardref_annotation():
     import typing
@@ -274,3 +275,9 @@
         "return": _issue_85_module.ForwardRef,
     }
     assert typing.get_type_hints(wrapper) == expected_annotations
+
+
+def test_issue_91():
+    """This test should work also in python 2 ! """
+    assert is_identifier("_results_bag")
+    assert is_identifier("hello__bag")

Reply via email to