Hello community,

here is the log from the commit of package python-pep517 for openSUSE:Factory 
checked in at 2020-10-23 12:18:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pep517 (Old)
 and      /work/SRC/openSUSE:Factory/.python-pep517.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pep517"

Fri Oct 23 12:18:34 2020 rev:5 rq:839940 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pep517/python-pep517.changes      
2020-03-27 00:21:55.492154303 +0100
+++ /work/SRC/openSUSE:Factory/.python-pep517.new.3463/python-pep517.changes    
2020-10-23 12:18:39.564537849 +0200
@@ -1,0 +2,6 @@
+Wed Oct  7 03:45:17 UTC 2020 - John Vandenberg <jay...@gmail.com>
+
+- Update to v0.8.2
+  * Avoid compat.py, to make _in_process.py zip-safe
+
+-------------------------------------------------------------------

Old:
----
  pep517-0.8.1.tar.gz

New:
----
  pep517-0.8.2.tar.gz

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

Other differences:
------------------
++++++ python-pep517.spec ++++++
--- /var/tmp/diff_new_pack.Pt6Oom/_old  2020-10-23 12:18:40.456538309 +0200
+++ /var/tmp/diff_new_pack.Pt6Oom/_new  2020-10-23 12:18:40.460538311 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pep517
-Version:        0.8.1
+Version:        0.8.2
 Release:        0
 Summary:        Wrappers to build Python packages using PEP 517 hooks
 License:        MIT

++++++ pep517-0.8.1.tar.gz -> pep517-0.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pep517-0.8.1/.bumpversion.cfg 
new/pep517-0.8.2/.bumpversion.cfg
--- old/pep517-0.8.1/.bumpversion.cfg   2019-11-23 13:49:22.413706500 +0100
+++ new/pep517-0.8.2/.bumpversion.cfg   2020-04-01 23:10:19.798095000 +0200
@@ -1,7 +1,6 @@
 [bumpversion]
-current_version = 0.5.0
+current_version = 0.8.2
 commit = True
 tag = True
 
 [bumpversion:file:pep517/__init__.py]
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pep517-0.8.1/PKG-INFO new/pep517-0.8.2/PKG-INFO
--- old/pep517-0.8.1/PKG-INFO   1970-01-01 01:00:00.000000000 +0100
+++ new/pep517-0.8.2/PKG-INFO   1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pep517
-Version: 0.8.1
+Version: 0.8.2
 Summary: Wrappers to build Python packages using PEP 517 hooks
 Home-page: https://github.com/pypa/pep517
 Author: Thomas Kluyver
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pep517-0.8.1/pep517/__init__.py 
new/pep517-0.8.2/pep517/__init__.py
--- old/pep517-0.8.1/pep517/__init__.py 2019-11-23 13:49:22.417708400 +0100
+++ new/pep517-0.8.2/pep517/__init__.py 2020-04-01 23:10:19.806090800 +0200
@@ -1,4 +1,4 @@
 """Wrappers to build Python packages using PEP 517 hooks
 """
 
-__version__ = '0.8.1'
+__version__ = '0.8.2'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pep517-0.8.1/pep517/_in_process.py 
new/pep517-0.8.2/pep517/_in_process.py
--- old/pep517-0.8.1/pep517/_in_process.py      2019-11-23 13:49:22.417708400 
+0100
+++ new/pep517-0.8.2/pep517/_in_process.py      2020-04-01 23:10:19.806090800 
+0200
@@ -14,6 +14,7 @@
 """
 from glob import glob
 from importlib import import_module
+import json
 import os
 import os.path
 from os.path import join as pjoin
@@ -22,8 +23,30 @@
 import sys
 import traceback
 
-# This is run as a script, not a module, so it can't do a relative import
-import compat
+# This file is run as a script, and `import compat` is not zip-safe, so we
+# include write_json() and read_json() from compat.py.
+#
+# Handle reading and writing JSON in UTF-8, on Python 3 and 2.
+
+if sys.version_info[0] >= 3:
+    # Python 3
+    def write_json(obj, path, **kwargs):
+        with open(path, 'w', encoding='utf-8') as f:
+            json.dump(obj, f, **kwargs)
+
+    def read_json(path):
+        with open(path, 'r', encoding='utf-8') as f:
+            return json.load(f)
+
+else:
+    # Python 2
+    def write_json(obj, path, **kwargs):
+        with open(path, 'wb') as f:
+            json.dump(obj, f, encoding='utf-8', **kwargs)
+
+    def read_json(path):
+        with open(path, 'rb') as f:
+            return json.load(f)
 
 
 class BackendUnavailable(Exception):
@@ -233,7 +256,7 @@
         sys.exit("Unknown hook: %s" % hook_name)
     hook = globals()[hook_name]
 
-    hook_input = compat.read_json(pjoin(control_dir, 'input.json'))
+    hook_input = read_json(pjoin(control_dir, 'input.json'))
 
     json_out = {'unsupported': False, 'return_val': None}
     try:
@@ -250,7 +273,7 @@
     except HookMissing:
         json_out['hook_missing'] = True
 
-    compat.write_json(json_out, pjoin(control_dir, 'output.json'), indent=2)
+    write_json(json_out, pjoin(control_dir, 'output.json'), indent=2)
 
 
 if __name__ == '__main__':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pep517-0.8.1/setup.py new/pep517-0.8.2/setup.py
--- old/pep517-0.8.1/setup.py   1970-01-01 01:00:00.000000000 +0100
+++ new/pep517-0.8.2/setup.py   1970-01-01 01:00:00.000000000 +0100
@@ -16,7 +16,7 @@
 {":python_version<'3.8'": ['importlib_metadata', 'zipp']}
 
 setup(name='pep517',
-      version='0.8.1',
+      version='0.8.2',
       description='Wrappers to build Python packages using PEP 517 hooks',
       author='Thomas Kluyver',
       author_email='tho...@kluyver.me.uk',


Reply via email to