From d6a1daa6c931c43f459e8beec29581d4bd6da883 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 24 Jan 2018 16:48:47 -0800 Subject: [PATCH 1/3] Add missing parentheses --- Doc/whatsnew/3.7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 20be158ab0a4cf..90deb46cba8747 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -683,7 +683,7 @@ Build and C API Changes * A full copy of libffi is no longer bundled for use when building the :mod:`_ctypes ` module on non-OSX UNIX platforms. An installed copy of libffi is now required when building ``_ctypes`` on such platforms. - Contributed by Zachary Ware in :issue:`27979`. + (Contributed by Zachary Ware in :issue:`27979`.) * The fields :c:member:`name` and :c:member:`doc` of structures :c:type:`PyMemberDef`, :c:type:`PyGetSetDef`, From fce1d0b79d3b8964e5d15ea1e120f3cf1a29b384 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 24 Jan 2018 16:50:44 -0800 Subject: [PATCH 2/3] Alphabetize sections --- Doc/whatsnew/3.7.rst | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 90deb46cba8747..7c2199e1ad5fe2 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -544,6 +544,12 @@ Added functions :func:`time.thread_time` and :func:`time.thread_time_ns` to get per-thread CPU time measurements. (Contributed by Antoine Pitrou in :issue:`32025`.) +unicodedata +----------- + +The internal :mod:`unicodedata` database has been upgraded to use `Unicode 10 +`_. (Contributed by Benjamin +Peterson.) unittest -------- @@ -565,20 +571,6 @@ children by preventing to get or set any new attribute on the sealed mock. The sealing process is performed recursively. (Contributed by Mario Corchero in :issue:`30541`.) -xmlrpc.server -------------- - -:meth:`register_function` of :class:`xmlrpc.server.SimpleXMLRPCDispatcher` and -its subclasses can be used as a decorator. (Contributed by Xiang Zhang in -:issue:`7769`.) - -unicodedata ------------ - -The internal :mod:`unicodedata` database has been upgraded to use `Unicode 10 -`_. (Contributed by Benjamin -Peterson.) - urllib.parse ------------ @@ -624,6 +616,13 @@ methods can now compare text of the current node with ``[. = "text"]``, not only text in children. Predicates also allow adding spaces for better readability. (Contributed by Stefan Behnel in :issue:`31648`.) +xmlrpc.server +------------- + +:meth:`register_function` of :class:`xmlrpc.server.SimpleXMLRPCDispatcher` and +its subclasses can be used as a decorator. (Contributed by Xiang Zhang in +:issue:`7769`.) + zipapp ------ From c783eea0a862cf8cf82b8ffa052c01bf1ded9449 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 24 Jan 2018 16:51:30 -0800 Subject: [PATCH 3/3] Cover the support for SOURCE_DATE_EPOCH added to py_compile/compileall --- Doc/whatsnew/3.7.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 7c2199e1ad5fe2..e52e32c4736959 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -479,6 +479,17 @@ begins. (Contributed by Barry Warsaw in :issue:`31389`.) pdb command line now accepts `-m module_name` as an alternative to script file. (Contributed by Mario Corchero in :issue:`32206`.) +py_compile +---------- + +:func:`py_compile.compile` -- and by extension, :mod:`compileall` -- now +respects the :envvar:`SOURCE_DATE_EPOCH` environment variable by +unconditionally creating ``.pyc`` files for hash-based validation. +This allows for guaranteeing +`reproducible builds `_ of ``.pyc`` +files when they are created eagerly. (Contributed by Bernhard M. Wiedemann +in :issue:`29708`.) + re -- @@ -679,6 +690,12 @@ Optimizations Build and C API Changes ======================= +* :mod:`py_compile` and :mod:`compileall` now support the + :envvar:`SOURCE_DATE_EPOCH` environment variable by unconditionally + building ``.pyc`` files for hash verification instead of potentially + timestamp-based ``.pyc`` files. See the notes for the `py_compile`_ + improvement notes for more details. + * A full copy of libffi is no longer bundled for use when building the :mod:`_ctypes ` module on non-OSX UNIX platforms. An installed copy of libffi is now required when building ``_ctypes`` on such platforms.