pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python37 python37: updated to 3.7.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2a4726adbd3
branches:  trunk
changeset: 389372:d2a4726adbd3
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Dec 31 10:07:59 2018 +0000

description:
python37: updated to 3.7.2

Python 3.7.2 final

Library
- bpo-31715: Associate .mjs file extension with application/javascript MIME Type.

Build
- bpo-35499: make profile-opt no longer replaces CFLAGS_NODIST with CFLAGS. It now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST: existing CFLAGS_NODIST flags are kept.
- bpo-35257: Avoid leaking the linker flags from Link Time Optimizations (LTO) into distutils when compiling C extensions.

C API
- bpo-35259: Conditionally declare Py_FinalizeEx() (new in 3.6) based on Py_LIMITED_API.


Python 3.7.2 release candidate 1

Security
- bpo-34812: The -I command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options 
(enabled by -I) were copied.
- bpo-34791: The xml.sax and xml.dom.domreg no longer use environment variables to override parser implementations when sys.flags.ignore_environment is set by -E or -I arguments.

Core and Builtins
- bpo-35444: Fixed error handling in pickling methods when fail to look up builtin ?getattr?.
- bpo-35436: Fix various issues with memory allocation error handling. Patch by Zackery Spytz.
- bpo-35357: Internal attributes? names of unittest.mock._Call and unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with _mock_ in order to prevent clashes with widely used object 
attributes. Fixed minor typo in test function name.
- bpo-35372: Fixed the code page decoder for input longer than 2 GiB containing undecodable bytes.
- bpo-35336: Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is ?C?.
- bpo-33954: For str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the ?n? formatter.
- bpo-35269: Fix a possible segfault involving a newly-created coroutine. Patch by Zackery Spytz.
- bpo-35214: Fixed an out of bounds memory access when parsing a truncated unicode escape sequence at the end of a string such as '\N'. It would read one byte beyond the end of the memory allocation.
- bpo-35214: The interpreter and extension modules have had annotations added so that they work properly under clang?s Memory Sanitizer. A new configure flag ?with-memory-sanitizer has been added to 
make test builds of this nature easier to perform.
- bpo-35193: Fix an off by one error in the bytecode peephole optimizer where it could read bytes beyond the end of bounds of an array when removing unreachable code. This bug was present in every 
release of Python 3.6 and 3.7 until now.
- bpo-29341: Clarify in the docstrings of os methods that path-like objects are also accepted as input parameters.
- bpo-35050: socket: Fix off-by-one bug in length check for AF_ALG name and type.
- bpo-34974: bytes and bytearray constructors no longer convert unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
- bpo-34973: Fixed crash in bytes() when the list argument is mutated while it is iterated.
- bpo-34824: Fix a possible null pointer dereference in Modules/_ssl.c. Patch by Zackery Spytz.
- bpo-1621: Do not assume signed integer overflow behavior (C undefined behavior) when performing set hash table resizing.

Library
- bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity.
- bpo-35330: When a Mock instance was used to wrap an object, if side_effect is used in one of the mocks of it methods, don?t call the original implementation and return the result of using the side 
effect the same way that it is done with return_value.
- bpo-34172: Revert the fix for this issue previously released in 3.7.1 pending further investigation: Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was 
deleted without being closed or terminated explicitly.
- bpo-10496: posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and the current user has no home directory (if the current user identifier doesn?t 
exist in the password database). This change fix the site module if the current user doesn?t exist in the password database (if the user has no home directory).
- bpo-35310: Fix a bug in select.select() where, in some cases, the file descriptor sequences were returned unmodified after a signal interruption, even though the file descriptors might not be ready 
yet. select.select() will now always return empty lists if a timeout has occurred. Patch by Oran Avraham.
- bpo-35380: Enable TCP_NODELAY on Windows for proactor asyncio event loop.
- bpo-35341: Add generic version of collections.OrderedDict to the typing module. Patch by Ismo Toijala.
- bpo-35371: Fixed possible crash in os.utime() on Windows when pass incorrect arguments.
- bpo-27903: Fix ResourceWarning in platform.dist() on SuSE and Caldera OpenLinux. Patch by Ville Skytt?.
- bpo-35308: Fix regression in webbrowser where default browsers may be preferred over browsers in the BROWSER environment variable.
- bpo-28604: locale.localeconv() now sets temporarily the LC_CTYPE locale to the LC_MONETARY locale if the two locales are different and monetary strings are non-ASCII. This temporary change affects 
other threads.
- bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2.
- bpo-35226: Recursively check arguments when testing for equality of unittest.mock.call objects and add note that tracking of parameters used to create ancestors of mocks in mock_calls is not 
possible.
- bpo-29564: The warnings module now suggests to enable tracemalloc if the source is specified, the tracemalloc module is available, but tracemalloc is not tracing memory allocations.
- bpo-35189: Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl
- bpo-35062: Fix incorrect parsing of _io.IncrementalNewlineDecoder?s translate argument.
- bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by adding ?non-overlapping? and changing ?!=? to ?<?.
- bpo-35017: socketserver.BaseServer.serve_forever() now exits immediately if it?s shutdown() method is called while it is polling for new events.
- bpo-31047: Fix ntpath.abspath regression where it didn?t remove a trailing separator on Windows. Patch by Tim Graham.
- bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to Tcl/Tk.
- bpo-35008: Fixed references leaks when call the __setstate__() method of xml.etree.ElementTree.Element in the C implementation for already initialized element.
- bpo-23420: Verify the value for the parameter ?-s? of the cProfile CLI. Patch by Robert Kuska
- bpo-33947: dataclasses now handle recursive reprs without raising RecursionError.
- bpo-16965: The 2to3 execfile fixer now opens the file with mode 'rb'. Patch by Zackery Spytz.
- bpo-34966: pydoc now supports aliases not only to methods defined in the end class, but also to inherited methods. The docstring is not duplicated for aliases.
- bpo-34941: Methods find(), findtext() and findall() of the Element class in the xml.etree.ElementTree module are now able to find children which are instances of Element subclasses.
- bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). Patch by Juliette Monsel.
- bpo-34866: Adding max_num_fields to cgi.FieldStorage to make DOS attacks harder by limiting the number of MiniFieldStorage objects created by FieldStorage.
- bpo-34022: The SOURCE_DATE_EPOCH environment variable no longer overrides the value of the invalidation_mode argument to py_compile.compile(), and determines its default value instead.
- bpo-34738: ZIP files created by distutils will now include entries for directories.
- bpo-31177: Fix bug that prevented using reset_mock on mock instances with deleted attributes
- bpo-34536: Enum._missing_: raise ValueError if None returned and TypeError if non-member is returned.
- bpo-34604: Fix possible mojibake in the error message of pwd.getpwnam and grp.getgrnam using string representation because of invisible characters or trailing whitespaces. Patch by William 
Grzybowski.
- bpo-34574: OrderedDict iterators are not exhausted during pickling anymore. Patch by Sergey Fedoseev.
- bpo-34052: sqlite3.Connection.create_aggregate(), sqlite3.Connection.create_function(), sqlite3.Connection.set_authorizer(), sqlite3.Connection.set_progress_handler() methods raises TypeError when 
unhashable objects are passed as callable. These methods now don?t pass such objects to SQLite API. Previous behavior could lead to segfaults. Patch by Sergey Fedoseev.
- bpo-29877: compileall: import ProcessPoolExecutor only when needed, preventing hangs on low resource platforms
- bpo-22005: Implemented unpickling instances of datetime, date and time pickled by Python 2. encoding='latin1' should be used for successful decoding.

diffstat:

 lang/python37/PLIST                         |  21 ++++++++++++++-------
 lang/python37/dist.mk                       |   4 ++--
 lang/python37/distinfo                      |  12 ++++++------
 lang/python37/patches/patch-Makefile.pre.in |  28 ++++++++++++++--------------
 4 files changed, 36 insertions(+), 29 deletions(-)

diffs (197 lines):

diff -r bc48bba7aa45 -r d2a4726adbd3 lang/python37/PLIST
--- a/lang/python37/PLIST       Mon Dec 31 10:06:45 2018 +0000
+++ b/lang/python37/PLIST       Mon Dec 31 10:07:59 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2018/11/13 11:54:06 markd Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/12/31 10:07:59 adam Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 ${PLIST.pymalloc}bin/python${PY_VER_SUFFIX}
@@ -42,6 +42,17 @@
 include/python${PY_VER_SUFFIX}${M}/graminit.h
 include/python${PY_VER_SUFFIX}${M}/grammar.h
 include/python${PY_VER_SUFFIX}${M}/import.h
+include/python${PY_VER_SUFFIX}${M}/internal/ceval.h
+include/python${PY_VER_SUFFIX}${M}/internal/condvar.h
+include/python${PY_VER_SUFFIX}${M}/internal/context.h
+include/python${PY_VER_SUFFIX}${M}/internal/gil.h
+include/python${PY_VER_SUFFIX}${M}/internal/hamt.h
+include/python${PY_VER_SUFFIX}${M}/internal/hash.h
+include/python${PY_VER_SUFFIX}${M}/internal/import.h
+include/python${PY_VER_SUFFIX}${M}/internal/mem.h
+include/python${PY_VER_SUFFIX}${M}/internal/pygetopt.h
+include/python${PY_VER_SUFFIX}${M}/internal/pystate.h
+include/python${PY_VER_SUFFIX}${M}/internal/warnings.h
 include/python${PY_VER_SUFFIX}${M}/intrcheck.h
 include/python${PY_VER_SUFFIX}${M}/iterobject.h
 include/python${PY_VER_SUFFIX}${M}/listobject.h
@@ -1363,8 +1374,8 @@
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.py
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.pyc
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.pyo
-lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-10.0.1-py2.py3-none-any.whl
-lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/setuptools-39.0.1-py2.py3-none-any.whl
+lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-18.1-py2.py3-none-any.whl
+lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/setuptools-40.6.2-py2.py3-none-any.whl
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.py
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.pyc
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.pyo
@@ -3171,10 +3182,6 @@
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/functional.py
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/functional.pyc
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/functional.pyo
-lib/python${PY_VER_SUFFIX}/test/test_asyncio/keycert3.pem
-lib/python${PY_VER_SUFFIX}/test/test_asyncio/pycacert.pem
-lib/python${PY_VER_SUFFIX}/test/test_asyncio/ssl_cert.pem
-lib/python${PY_VER_SUFFIX}/test/test_asyncio/ssl_key.pem
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_base_events.py
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_base_events.pyc
 lib/python${PY_VER_SUFFIX}/test/test_asyncio/test_base_events.pyo
diff -r bc48bba7aa45 -r d2a4726adbd3 lang/python37/dist.mk
--- a/lang/python37/dist.mk     Mon Dec 31 10:06:45 2018 +0000
+++ b/lang/python37/dist.mk     Mon Dec 31 10:07:59 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: dist.mk,v 1.2 2018/10/22 17:32:48 adam Exp $
+# $NetBSD: dist.mk,v 1.3 2018/12/31 10:07:59 adam Exp $
 
-PY_DISTVERSION=        3.7.1
+PY_DISTVERSION=        3.7.2
 DISTNAME=      Python-${PY_DISTVERSION}
 EXTRACT_SUFX=  .tar.xz
 DISTINFO_FILE= ${.CURDIR}/../../lang/python37/distinfo
diff -r bc48bba7aa45 -r d2a4726adbd3 lang/python37/distinfo
--- a/lang/python37/distinfo    Mon Dec 31 10:06:45 2018 +0000
+++ b/lang/python37/distinfo    Mon Dec 31 10:07:59 2018 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.3 2018/10/22 17:32:48 adam Exp $
+$NetBSD: distinfo,v 1.4 2018/12/31 10:07:59 adam Exp $
 
-SHA1 (Python-3.7.1.tar.xz) = da290d6d24c68faeba502251cba111a1c8a5a9b2
-RMD160 (Python-3.7.1.tar.xz) = 45685eaf52041c9295b6caafb24f9f74e01e9883
-SHA512 (Python-3.7.1.tar.xz) = 3eb62a0127609b14420a47442727702f396519c649625aca59883d04f4c02e5f37ba1d58ac8e93c49d14a63f17ae7909315c33fc813293dbcdb6127f39a148b0
-Size (Python-3.7.1.tar.xz) = 16960060 bytes
+SHA1 (Python-3.7.2.tar.xz) = c3dc6928516bcb934cf4740461044c79c7c35494
+RMD160 (Python-3.7.2.tar.xz) = 4117feee6360078efea9a09c154b753570154445
+SHA512 (Python-3.7.2.tar.xz) = 6cd2d6d8455558783b99d55985cd7b22d67b98f41a09b4fdd96f680a630a4e035220d2b903f8c59ed513aa5ffe6730fa947ddb55bb72ce36f0e945ef8af5d971
+Size (Python-3.7.2.tar.xz) = 17042320 bytes
 SHA1 (patch-Lib_distutils_command_install.py) = 6fc6f5d918b7581fc62cd0fe55857ee932c3a341
 SHA1 (patch-Lib_distutils_sysconfig.py) = 6822eafb4dfded86d7f7353831816aeb8119e6cf
 SHA1 (patch-Lib_distutils_unixccompiler.py) = 2e65a8dd5dd3fe25957206c062106fa7a6fc4e69
 SHA1 (patch-Lib_sysconfig.py) = a4f009ed73ebbd9d9c4bf7e12b7981182ed8fd7c
-SHA1 (patch-Makefile.pre.in) = 719905b47024a3d3095077d3ea6e28564114c105
+SHA1 (patch-Makefile.pre.in) = 1393dac225c5a7edcb7947eb707b4526ea884f95
 SHA1 (patch-Modules___uuidmodule.c) = fe66366866a924653b3d97625e8ef20be8766d25
 SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567
 SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d
diff -r bc48bba7aa45 -r d2a4726adbd3 lang/python37/patches/patch-Makefile.pre.in
--- a/lang/python37/patches/patch-Makefile.pre.in       Mon Dec 31 10:06:45 2018 +0000
+++ b/lang/python37/patches/patch-Makefile.pre.in       Mon Dec 31 10:07:59 2018 +0000
@@ -1,22 +1,22 @@
-$NetBSD: patch-Makefile.pre.in,v 1.2 2018/07/13 17:14:43 jperkin Exp $
+$NetBSD: patch-Makefile.pre.in,v 1.3 2018/12/31 10:07:59 adam Exp $
 
 Use only one optimisation level; needed for PLIST and setuptools compatibility.
 Do not build/install libpython3.so.
 Simplify _sysconfigdata to include only platform name.
 Swap targets libinstall and libainstall, to byte-compile python-config.py.
 
---- Makefile.pre.in.orig       2018-06-27 03:07:35.000000000 +0000
+--- Makefile.pre.in.orig       2018-12-23 21:37:36.000000000 +0000
 +++ Makefile.pre.in
-@@ -96,7 +96,7 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODI
+@@ -100,7 +100,7 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODI
  # be able to build extension modules using the directories specified in the
  # environment variables
  PY_CPPFLAGS=  $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
 -PY_LDFLAGS=   $(CONFIGURE_LDFLAGS) $(LDFLAGS)
 +PY_LDFLAGS=   -L. $(CONFIGURE_LDFLAGS) $(LDFLAGS)
+ PY_LDFLAGS_NODIST=$(CONFIGURE_LDFLAGS_NODIST) $(LDFLAGS_NODIST)
  NO_AS_NEEDED= @NO_AS_NEEDED@
  LDLAST=               @LDLAST@
- SGI_ABI=      @SGI_ABI@
-@@ -213,7 +213,7 @@ DIST=              $(DISTFILES) $(DISTDIRS)
+@@ -221,7 +221,7 @@ DIST=              $(DISTFILES) $(DISTDIRS)
  LIBRARY=      @LIBRARY@
  LDLIBRARY=      @LDLIBRARY@
  BLDLIBRARY=     @BLDLIBRARY@
@@ -25,7 +25,7 @@
  DLLLIBRARY=   @DLLLIBRARY@
  LDLIBRARYDIR=   @LDLIBRARYDIR@
  INSTSONAME=   @INSTSONAME@
-@@ -443,7 +443,7 @@ LIBRARY_OBJS=      \
+@@ -451,7 +451,7 @@ LIBRARY_OBJS=      \
  # On some systems, object files that reference DTrace probes need to be modified
  # in-place by dtrace(1).
  DTRACE_DEPS = \
@@ -34,7 +34,7 @@
  # XXX: should gcmodule, etc. be here, too?
  
  #########################################################################
-@@ -904,7 +904,6 @@ regen-opcode-targets:
+@@ -912,7 +912,6 @@ regen-opcode-targets:
                $(srcdir)/Python/opcode_targets.h.new
        $(UPDATE_FILE) $(srcdir)/Python/opcode_targets.h $(srcdir)/Python/opcode_targets.h.new
  
@@ -42,7 +42,7 @@
  
  Python/frozen.o: $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib_external.h
  
-@@ -913,13 +912,13 @@ Python/frozen.o: $(srcdir)/Python/import
+@@ -921,13 +920,13 @@ Python/frozen.o: $(srcdir)/Python/import
  # an include guard, so we can't use a pipeline to transform its output.
  Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
        $(MKDIR_P) Include
@@ -58,7 +58,7 @@
  
  Objects/typeobject.o: Objects/typeslots.inc
  
-@@ -1127,7 +1126,7 @@ altinstall: commoninstall
+@@ -1135,7 +1134,7 @@ altinstall: commoninstall
        fi
  
  commoninstall:  check-clean-src @FRAMEWORKALTINSTALLFIRST@ \
@@ -67,7 +67,7 @@
                sharedinstall oldsharedinstall altmaninstall \
                @FRAMEWORKALTINSTALLLAST@
  
-@@ -1186,7 +1185,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK
+@@ -1194,7 +1193,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK
                if test -n "$(PY3LIBRARY)"; then \
                        $(INSTALL_SHARED) $(PY3LIBRARY) $(DESTDIR)$(LIBDIR)/$(PY3LIBRARY); \
                fi; \
@@ -77,7 +77,7 @@
        fi
        if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
                rm -f $(DESTDIR)$(BINDIR)python$(VERSION)-32$(EXE); \
-@@ -1378,7 +1378,7 @@ libinstall:      build_all $(srcdir)/Modules/
+@@ -1386,7 +1386,7 @@ libinstall:      build_all $(srcdir)/Modules/
                        esac; \
                done; \
        done
@@ -86,7 +86,7 @@
                $(DESTDIR)$(LIBDEST); \
        $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
        if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
-@@ -1396,11 +1396,6 @@ libinstall:     build_all $(srcdir)/Modules/
+@@ -1404,11 +1404,6 @@ libinstall:     build_all $(srcdir)/Modules/
                -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
                $(DESTDIR)$(LIBDEST)
        -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
@@ -98,7 +98,7 @@
                $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
                -d $(LIBDEST)/site-packages -f \
                -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-@@ -1409,10 +1404,6 @@ libinstall:     build_all $(srcdir)/Modules/
+@@ -1417,10 +1412,6 @@ libinstall:     build_all $(srcdir)/Modules/
                -d $(LIBDEST)/site-packages -f \
                -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
        -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
@@ -109,7 +109,7 @@
                $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
        -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
                $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
-@@ -1511,7 +1502,7 @@ sharedinstall: sharedmods
+@@ -1529,7 +1520,7 @@ sharedinstall: sharedmods
                --install-scripts=$(BINDIR) \
                --install-platlib=$(DESTSHARED) \
                --root=$(DESTDIR)/



Home | Main Index | Thread Index | Old Index