pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun May 31 20:49:34 UTC 2020

Modified Files:
        pkgsrc/cad/py-gds: distinfo
        pkgsrc/converters/py-unicode-slugify: distinfo
        pkgsrc/devel/py-test-testmon: distinfo
        pkgsrc/math/py-ephem: distinfo
        pkgsrc/math/z3: distinfo
        pkgsrc/math/z3/patches: patch-scripts_mk__util.py
        pkgsrc/textproc/py-xmlschema: distinfo
Added Files:
        pkgsrc/cad/py-gds/patches: patch-setup.py
        pkgsrc/converters/py-unicode-slugify/patches: patch-setup.py
        pkgsrc/devel/py-test-testmon/patches: patch-setup.py
            patch-setup.py.orig
        pkgsrc/math/py-ephem/patches: patch-setup.py
        pkgsrc/math/z3/patches: patch-scripts_mk__genfile__common.py
        pkgsrc/textproc/py-xmlschema/patches: patch-setup.py

Log Message:
Explicitly read files as unicode for Python 3. The content is converted
using the system locale with Python 3.6 otherwise, falling back to
ASCII.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/cad/py-gds/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/cad/py-gds/patches/patch-setup.py
cvs rdiff -u -r1.1 -r1.2 pkgsrc/converters/py-unicode-slugify/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/converters/py-unicode-slugify/patches/patch-setup.py
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-test-testmon/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-testmon/patches/patch-setup.py \
    pkgsrc/devel/py-test-testmon/patches/patch-setup.py.orig
cvs rdiff -u -r1.8 -r1.9 pkgsrc/math/py-ephem/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/py-ephem/patches/patch-setup.py
cvs rdiff -u -r1.8 -r1.9 pkgsrc/math/z3/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py
cvs rdiff -u -r1.5 -r1.6 pkgsrc/math/z3/patches/patch-scripts_mk__util.py
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-xmlschema/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-xmlschema/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/cad/py-gds/distinfo
diff -u pkgsrc/cad/py-gds/distinfo:1.9 pkgsrc/cad/py-gds/distinfo:1.10
--- pkgsrc/cad/py-gds/distinfo:1.9      Mon Apr 27 18:50:26 2020
+++ pkgsrc/cad/py-gds/distinfo  Sun May 31 20:49:32 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2020/04/27 18:50:26 adam Exp $
+$NetBSD: distinfo,v 1.10 2020/05/31 20:49:32 joerg Exp $
 
 SHA1 (gdspy-1.5.2.zip) = 97a0f614aee05b79dbcec42740670c98e4980eaa
 RMD160 (gdspy-1.5.2.zip) = d2fcfada1ee830fa9a63c690418935c6b6703ca4
 SHA512 (gdspy-1.5.2.zip) = 33fb48da4a9ed9e789d9da41e8428c859c66f39d50a2edf88cbe41f9396d210e5b7f41b5446814f0f52ef51368a5fb689a96cdc3b71d93ba03bfc83fb9306cb0
 Size (gdspy-1.5.2.zip) = 7128099 bytes
+SHA1 (patch-setup.py) = 9cd9fe70eff8346a03f758cf3c72d94e02ed50bf

Index: pkgsrc/converters/py-unicode-slugify/distinfo
diff -u pkgsrc/converters/py-unicode-slugify/distinfo:1.1 pkgsrc/converters/py-unicode-slugify/distinfo:1.2
--- pkgsrc/converters/py-unicode-slugify/distinfo:1.1   Fri May  1 17:50:59 2020
+++ pkgsrc/converters/py-unicode-slugify/distinfo       Sun May 31 20:49:33 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/05/01 17:50:59 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/05/31 20:49:33 joerg Exp $
 
 SHA1 (unicode-slugify-0.1.3.tar.gz) = 077cfd0c226f6b2cab3c84b340cd9693ce9939fc
 RMD160 (unicode-slugify-0.1.3.tar.gz) = 16fbfb4614658bb4fb2217484ebece362d140e0d
 SHA512 (unicode-slugify-0.1.3.tar.gz) = 509414c8b3603f3b092390ee29f52b6a22de45d904fcfa5554f2c1188a35ac090781050642b0b7bf068d1b30ce424342878e646db98b592712f47595528911a1
 Size (unicode-slugify-0.1.3.tar.gz) = 4430 bytes
+SHA1 (patch-setup.py) = 3a7d378b2d2881e533b5e04688d60ab2d2853b52

Index: pkgsrc/devel/py-test-testmon/distinfo
diff -u pkgsrc/devel/py-test-testmon/distinfo:1.8 pkgsrc/devel/py-test-testmon/distinfo:1.9
--- pkgsrc/devel/py-test-testmon/distinfo:1.8   Fri Oct 25 09:45:35 2019
+++ pkgsrc/devel/py-test-testmon/distinfo       Sun May 31 20:49:33 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2019/10/25 09:45:35 adam Exp $
+$NetBSD: distinfo,v 1.9 2020/05/31 20:49:33 joerg Exp $
 
 SHA1 (pytest-testmon-0.9.19.tar.gz) = 2277b15050d84cfc64f7c019477dd917e1be54b9
 RMD160 (pytest-testmon-0.9.19.tar.gz) = 980ee9c0b344200f1d93b631da0cfa58781674c3
 SHA512 (pytest-testmon-0.9.19.tar.gz) = 28e5f75265373f5e65d45fc3a26e7926e6095265befa9ba61acfc8a230f5350738074ef11f35c462ba97d08c15a8fbf008e49483f6c9c2b9ab64fe324db94db2
 Size (pytest-testmon-0.9.19.tar.gz) = 26805 bytes
+SHA1 (patch-setup.py) = 1c10d0a3ba21e3a1aa6504f52b46cd916c4bc334

Index: pkgsrc/math/py-ephem/distinfo
diff -u pkgsrc/math/py-ephem/distinfo:1.8 pkgsrc/math/py-ephem/distinfo:1.9
--- pkgsrc/math/py-ephem/distinfo:1.8   Wed May 13 14:53:29 2020
+++ pkgsrc/math/py-ephem/distinfo       Sun May 31 20:49:33 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2020/05/13 14:53:29 adam Exp $
+$NetBSD: distinfo,v 1.9 2020/05/31 20:49:33 joerg Exp $
 
 SHA1 (ephem-3.7.7.1.tar.gz) = 9928fb8f0e1a13ae627cdd86cb4ecc2bbeeb6edd
 RMD160 (ephem-3.7.7.1.tar.gz) = 2b6a4bb41d51697f17f3a1bdafe1a1dbee17c846
 SHA512 (ephem-3.7.7.1.tar.gz) = c3f489371febcb65da03da7ba0e08168320a6f5d81fd2355281f621074ecf2be694b2d0cc3ef7863cec617176751a34856bdd22beb66cd64129fbfb915b3dcae
 Size (ephem-3.7.7.1.tar.gz) = 745839 bytes
+SHA1 (patch-setup.py) = ca5c99e7f1a4cf90e53b7d34f63d91210f9e0acf

Index: pkgsrc/math/z3/distinfo
diff -u pkgsrc/math/z3/distinfo:1.8 pkgsrc/math/z3/distinfo:1.9
--- pkgsrc/math/z3/distinfo:1.8 Tue Dec 18 06:46:39 2018
+++ pkgsrc/math/z3/distinfo     Sun May 31 20:49:33 2020
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2018/12/18 06:46:39 kamil Exp $
+$NetBSD: distinfo,v 1.9 2020/05/31 20:49:33 joerg Exp $
 
 SHA1 (z3-4.8.3.tar.gz) = bc713372c9be6808306a8e0844caf27c0a10ee2c
 RMD160 (z3-4.8.3.tar.gz) = 3b8bc18719725c0d110ca52f7e692519cbac341e
 SHA512 (z3-4.8.3.tar.gz) = 34a2dca0083ed469fdaf5ac062dda26248633245607ddd9ef90629c5f76ae30f87bfa4191c04ba9be7a617bf182a1bd00b59fd2274699e12ece69b86088c8044
 Size (z3-4.8.3.tar.gz) = 4119116 bytes
-SHA1 (patch-scripts_mk__util.py) = 59c17bbcd05be21089a89ae304662b69bd2a571d
+SHA1 (patch-scripts_mk__genfile__common.py) = ecedf747f4a5b4cb410898a6cb65eed2aad46d27
+SHA1 (patch-scripts_mk__util.py) = 79106c08ce39901d13eaab5a18173fcb0479dc96

Index: pkgsrc/math/z3/patches/patch-scripts_mk__util.py
diff -u pkgsrc/math/z3/patches/patch-scripts_mk__util.py:1.5 pkgsrc/math/z3/patches/patch-scripts_mk__util.py:1.6
--- pkgsrc/math/z3/patches/patch-scripts_mk__util.py:1.5        Tue Dec 18 06:46:39 2018
+++ pkgsrc/math/z3/patches/patch-scripts_mk__util.py    Sun May 31 20:49:34 2020
@@ -1,8 +1,18 @@
-$NetBSD: patch-scripts_mk__util.py,v 1.5 2018/12/18 06:46:39 kamil Exp $
+$NetBSD: patch-scripts_mk__util.py,v 1.6 2020/05/31 20:49:34 joerg Exp $
 
---- scripts/mk_util.py.orig    2018-12-15 09:28:53.381588998 +0000
+--- scripts/mk_util.py.orig    2018-11-19 20:21:17.000000000 +0000
 +++ scripts/mk_util.py
-@@ -2001,7 +2001,7 @@ class JavaDLLComponent(Component):
+@@ -803,7 +803,8 @@ def extract_c_includes(fname):
+     # We should generate and error for any occurrence of #include that does not match the previous pattern.
+     non_std_inc_pat = re.compile(".*#include.*")
+ 
+-    f = open(fname, 'r')
++    py3args = { 'encoding': 'UTF-8' } if sys.version_info.major >= 3 else {}
++    f = open(fname, 'r', **py3args)
+     linenum = 1
+     for line in f:
+         m1 = std_inc_pat.match(line)
+@@ -2001,7 +2002,7 @@ class JavaDLLComponent(Component):
                  out.write('\t$(SLINK) $(SLINK_OUT_FLAG)libz3java$(SO_EXT) $(SLINK_FLAGS) %s$(OBJ_EXT) libz3$(LIB_EXT)\n' %
                            os.path.join('api', 'java', 'Native'))
              else:
@@ -11,7 +21,7 @@ $NetBSD: patch-scripts_mk__util.py,v 1.5
                            os.path.join('api', 'java', 'Native'))
              out.write('%s.jar: libz3java$(SO_EXT) ' % self.package_name)
              deps = ''
-@@ -2694,7 +2694,8 @@ def mk_config():
+@@ -2694,7 +2695,8 @@ def mk_config():
          check_ar()
          CXX = find_cxx_compiler()
          CC  = find_c_compiler()
@@ -21,7 +31,7 @@ $NetBSD: patch-scripts_mk__util.py,v 1.5
          EXE_EXT = ''
          LIB_EXT = '.a'
          if GPROF:
-@@ -2822,6 +2823,7 @@ def mk_config():
+@@ -2822,6 +2824,7 @@ def mk_config():
          config.write('SLINK_FLAGS=%s\n' % SLIBFLAGS)
          config.write('SLINK_EXTRA_FLAGS=%s\n' % SLIBEXTRAFLAGS)
          config.write('SLINK_OUT_FLAG=-o \n')

Index: pkgsrc/textproc/py-xmlschema/distinfo
diff -u pkgsrc/textproc/py-xmlschema/distinfo:1.7 pkgsrc/textproc/py-xmlschema/distinfo:1.8
--- pkgsrc/textproc/py-xmlschema/distinfo:1.7   Wed Apr 29 07:50:05 2020
+++ pkgsrc/textproc/py-xmlschema/distinfo       Sun May 31 20:49:34 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2020/04/29 07:50:05 adam Exp $
+$NetBSD: distinfo,v 1.8 2020/05/31 20:49:34 joerg Exp $
 
 SHA1 (xmlschema-1.1.3.tar.gz) = 663f856b99b99a70631f8c7da8acf0b0b8c765d6
 RMD160 (xmlschema-1.1.3.tar.gz) = 0a4255b5aa23afd06727b6e66769a5cec98122fe
 SHA512 (xmlschema-1.1.3.tar.gz) = df277cd75058e10b8e0505db51fc167c688fe4c3d319de289ac77faa37913f60d2697f4456e00d637c4a3c3f83d164619e0ce1b849e8c8ea3b5e1932b56044dc
 Size (xmlschema-1.1.3.tar.gz) = 298490 bytes
+SHA1 (patch-setup.py) = 6007d0da37c00e14a7217b588df8e92679fc7c96

Added files:

Index: pkgsrc/cad/py-gds/patches/patch-setup.py
diff -u /dev/null pkgsrc/cad/py-gds/patches/patch-setup.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/cad/py-gds/patches/patch-setup.py    Sun May 31 20:49:33 2020
@@ -0,0 +1,13 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $
+
+--- setup.py.orig      2020-05-31 17:53:41.141364832 +0000
++++ setup.py
+@@ -12,7 +12,7 @@ import platform
+ from setuptools import setup, Extension
+ from distutils.version import LooseVersion
+ 
+-with open("README.md") as fin:
++with open("README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as fin:
+     long_description = fin.read()
+ 
+ with open("gdspy/__init__.py") as fin:

Index: pkgsrc/converters/py-unicode-slugify/patches/patch-setup.py
diff -u /dev/null pkgsrc/converters/py-unicode-slugify/patches/patch-setup.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/converters/py-unicode-slugify/patches/patch-setup.py Sun May 31 20:49:33 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $
+
+--- setup.py.orig      2020-05-31 18:05:52.507238288 +0000
++++ setup.py
+@@ -1,10 +1,11 @@
++import sys
+ from setuptools import setup
+ 
+ setup(
+     name='unicode-slugify',
+     version='0.1.3',
+     description='A slug generator that turns strings into unicode slugs.',
+-    long_description=open('README.md').read(),
++    long_description=open('README.md', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).read(),
+     author='Jeff Balogh, Dave Dash',
+     author_email='jbalogh%mozilla.com@localhost, dd%mozilla.com@localhost',
+     url='http://github.com/mozilla/unicode-slugify',

Index: pkgsrc/devel/py-test-testmon/patches/patch-setup.py
diff -u /dev/null pkgsrc/devel/py-test-testmon/patches/patch-setup.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/devel/py-test-testmon/patches/patch-setup.py Sun May 31 20:49:33 2020
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $
+
+--- setup.py.orig      2020-05-31 17:59:09.409031695 +0000
++++ setup.py
+@@ -1,9 +1,10 @@
++import sys
+ from setuptools import setup
+ 
+ setup(
+     name='pytest-testmon',
+     description='find bugs 10x faster',
+-    long_description=''.join(open('README.rst').readlines()),
++    long_description=''.join(open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).readlines()),
+     version='0.9.19',
+     license='MIT',
+     platforms=['linux', 'osx', 'win32'],

Index: pkgsrc/math/py-ephem/patches/patch-setup.py
diff -u /dev/null pkgsrc/math/py-ephem/patches/patch-setup.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/math/py-ephem/patches/patch-setup.py Sun May 31 20:49:33 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $
+
+Python 3.6 doesn't default to UTF-8, but still tries to convert to Unicode.
+
+--- setup.py.orig      2020-05-31 17:37:01.440042910 +0000
++++ setup.py
+@@ -24,7 +24,7 @@ libastro_files = glob('libastro-%s/*.c' 
+ libastro_data = glob('extensions/data/*.c')
+ 
+ def read(*filenames):
+-    return open(os.path.join(os.path.dirname(__file__), *filenames)).read()
++    return open(os.path.join(os.path.dirname(__file__), *filenames), **({'encoding': 'UTF-8'} if sys.version_info.major >= 3 else {})).read()
+ 
+ extensions = [
+     Extension('ephem._libastro',

Index: pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py
diff -u /dev/null pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py Sun May 31 20:49:34 2020
@@ -0,0 +1,44 @@
+$NetBSD: patch-scripts_mk__genfile__common.py,v 1.1 2020/05/31 20:49:34 joerg Exp $
+
+--- scripts/mk_genfile_common.py.orig  2018-11-19 20:21:17.000000000 +0000
++++ scripts/mk_genfile_common.py
+@@ -622,7 +622,8 @@ def mk_gparams_register_modules_internal
+     reg_mod_descr_pat = re.compile('[ \t]*REG_MODULE_DESCRIPTION\(\'([^\']*)\', *\'([^\']*)\'\)')
+     for h_file in sorted_headers_by_component(h_files_full_path):
+         added_include = False
+-        with open(h_file, 'r') as fin:
++        py3args = { 'encoding': 'UTF-8' } if sys.version_info.major >= 3 else {}
++        with open(h_file, 'r', **py3args) as fin:
+             for line in fin:
+                 m = reg_pat.match(line)
+                 if m:
+@@ -696,7 +697,8 @@ def mk_install_tactic_cpp_internal(h_fil
+     for h_file in sorted_headers_by_component(h_files_full_path):
+         added_include = False
+         try:
+-            with open(h_file, 'r') as fin:
++            py3args = { 'encoding': 'UTF-8' } if sys.version_info.major >= 3 else {}
++            with open(h_file, 'r', **py3args) as fin:
+                 for line in fin:
+                     if tactic_pat.match(line):
+                         if not added_include:
+@@ -764,7 +766,8 @@ def mk_mem_initializer_cpp_internal(h_fi
+     finalizer_pat        = re.compile('[ \t]*ADD_FINALIZER\(\'([^\']*)\'\)')
+     for h_file in sorted_headers_by_component(h_files_full_path):
+         added_include = False
+-        with open(h_file, 'r') as fin:
++        py3args = { 'encoding': 'UTF-8' } if sys.version_info.major >= 3 else {}
++        with open(h_file, 'r', **py3args) as fin:
+             for line in fin:
+                 m = initializer_pat.match(line)
+                 if m:
+@@ -806,7 +809,8 @@ def mk_pat_db_internal(inputFilePath, ou
+     """
+         Generate ``g_pattern_database[]`` declaration header file.
+     """
+-    with open(inputFilePath, 'r') as fin:
++    py3args = { 'encoding': 'UTF-8' } if sys.version_info.major >= 3 else {}
++    with open(inputFilePath, 'r', **py3args) as fin:
+         with open(outputFilePath, 'w') as fout:
+             fout.write('static char const g_pattern_database[] =\n')
+             for line in fin:

Index: pkgsrc/textproc/py-xmlschema/patches/patch-setup.py
diff -u /dev/null pkgsrc/textproc/py-xmlschema/patches/patch-setup.py:1.1
--- /dev/null   Sun May 31 20:49:34 2020
+++ pkgsrc/textproc/py-xmlschema/patches/patch-setup.py Sun May 31 20:49:34 2020
@@ -0,0 +1,19 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:34 joerg Exp $
+
+--- setup.py.orig      2020-05-31 18:07:15.361949598 +0000
++++ setup.py
+@@ -8,12 +8,13 @@
+ #
+ # @author Davide Brunato <brunato%sissa.it@localhost>
+ #
++import sys
+ import importlib
+ from setuptools import setup
+ from setuptools.command.develop import develop
+ from setuptools.command.install import install
+ 
+-with open("README.rst") as readme:
++with open("README.rst", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme:
+     long_description = readme.read()
+ 
+ 



Home | Main Index | Thread Index | Old Index