Kaydet (Commit) 039c8993 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Add various items

üst 1595f9fe
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:Release: |release| :Release: |release|
:Date: |today| :Date: |today|
.. Fix accents on Kristjan Valur Jonsson, Fuerstenau, Tarek Ziade. .. Fix accents on Kristjan Valur Jonsson, Fuerstenau
.. $Id$ .. $Id$
Rules for maintenance: Rules for maintenance:
...@@ -585,11 +585,16 @@ changes, or look through the Subversion logs for all the details. ...@@ -585,11 +585,16 @@ changes, or look through the Subversion logs for all the details.
left-alignment. This has been changed to right-alignment, which seems left-alignment. This has been changed to right-alignment, which seems
more sensible for numeric types. (Changed by Mark Dickinson; :issue:`6857`.) more sensible for numeric types. (Changed by Mark Dickinson; :issue:`6857`.)
* Distutils is being more actively developed, thanks to Tarek Ziade * Distutils is being more actively developed, thanks to Tarek Ziadé
who has taken over maintenance of the package. A new who has taken over maintenance of the package, so there are a number
:file:`setup.py` subcommand, ``check``, will of fixes and improvments.
check that the arguments being passed to the :func:`setup` function
are complete and correct (:issue:`5732`). A new :file:`setup.py` subcommand, ``check``, will check that the
arguments being passed to the :func:`setup` function are complete
and correct (:issue:`5732`).
Byte-compilation by the ``install_lib`` subcommand is now only done
if the ``sys.dont_write_bytecode`` setting allows it (:issue:`7071`).
:func:`distutils.sdist.add_defaults` now uses :func:`distutils.sdist.add_defaults` now uses
*package_dir* and *data_files* to create the MANIFEST file. *package_dir* and *data_files* to create the MANIFEST file.
...@@ -601,7 +606,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -601,7 +606,7 @@ changes, or look through the Subversion logs for all the details.
It is no longer mandatory to store clear-text passwords in the It is no longer mandatory to store clear-text passwords in the
:file:`.pypirc` file when registering and uploading packages to PyPI. As long :file:`.pypirc` file when registering and uploading packages to PyPI. As long
as the username is present in that file, the :mod:`distutils` package will as the username is present in that file, the :mod:`distutils` package will
prompt for the password if not present. (Added by Tarek Ziade, prompt for the password if not present. (Added by Tarek Ziadé,
based on an initial contribution by Nathan Van Gheem; :issue:`4394`.) based on an initial contribution by Nathan Van Gheem; :issue:`4394`.)
A Distutils setup can now specify that a C extension is optional by A Distutils setup can now specify that a C extension is optional by
...@@ -614,7 +619,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -614,7 +619,7 @@ changes, or look through the Subversion logs for all the details.
:meth:`read_pkg_file` method will read the contents of a package's :meth:`read_pkg_file` method will read the contents of a package's
:file:`PKG-INFO` metadata file. For an example of its use, see :file:`PKG-INFO` metadata file. For an example of its use, see
:ref:`reading-metadata`. :ref:`reading-metadata`.
(Contributed by Tarek Ziade; :issue:`7457`.) (Contributed by Tarek Ziadé; :issue:`7457`.)
:file:`setup.py` files will now accept a :option:`--no-user-cfg` switch :file:`setup.py` files will now accept a :option:`--no-user-cfg` switch
to skip reading the :file:`~/.pydistutils.cfg` file. (Suggested by to skip reading the :file:`~/.pydistutils.cfg` file. (Suggested by
...@@ -753,7 +758,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -753,7 +758,7 @@ changes, or look through the Subversion logs for all the details.
:func:`getuserbase` returns the value of the :envvar:`USER_BASE` :func:`getuserbase` returns the value of the :envvar:`USER_BASE`
environment variable, giving the path to a directory that can be used environment variable, giving the path to a directory that can be used
to store data. to store data.
(Contributed by Tarek Ziade; :issue:`6693`.) (Contributed by Tarek Ziadé; :issue:`6693`.)
* The :mod:`socket` module's :class:`SSL` objects now support the * The :mod:`socket` module's :class:`SSL` objects now support the
buffer API, which fixed a test suite failure. (Fixed by Antoine Pitrou; buffer API, which fixed a test suite failure. (Fixed by Antoine Pitrou;
...@@ -798,7 +803,15 @@ changes, or look through the Subversion logs for all the details. ...@@ -798,7 +803,15 @@ changes, or look through the Subversion logs for all the details.
named ``major``, ``minor``, ``micro``, ``releaselevel``, and ``serial``. named ``major``, ``minor``, ``micro``, ``releaselevel``, and ``serial``.
(Contributed by Ross Light; :issue:`4285`.) (Contributed by Ross Light; :issue:`4285`.)
* The :mod:`tarfile` module now supports filtering the :class:`TarInfo` * The :mod:`tarfile` module's default error handling has changed, to
no longer suppress fatal errors. The default error level was previously 0,
which meant that errors would only result in a message being written to the
debug log, but because the debug log is not activated by default,
these errors go unnoticed. The default error level is now 1,
which raises an exception if there's an error.
(Changed by Lars Gustäbel; :issue:`7357`.)
:mod:`tarfile` now supports filtering the :class:`TarInfo`
objects being added to a tar file. When you call :meth:`TarFile.add`, objects being added to a tar file. When you call :meth:`TarFile.add`,
instance, you may supply an optional *filter* argument instance, you may supply an optional *filter* argument
that's a callable. The *filter* callable will be passed the that's a callable. The *filter* callable will be passed the
...@@ -806,7 +819,7 @@ changes, or look through the Subversion logs for all the details. ...@@ -806,7 +819,7 @@ changes, or look through the Subversion logs for all the details.
If the callable returns ``None``, the file will be excluded from the If the callable returns ``None``, the file will be excluded from the
resulting archive. This is more powerful than the existing resulting archive. This is more powerful than the existing
*exclude* argument, which has therefore been deprecated. *exclude* argument, which has therefore been deprecated.
(Added by Lars Gustaebel; :issue:`6856`.) (Added by Lars Gustäbel; :issue:`6856`.)
* The :mod:`threading` module's :meth:`Event.wait` method now returns * The :mod:`threading` module's :meth:`Event.wait` method now returns
the internal flag on exit. This means the method will usually the internal flag on exit. This means the method will usually
...@@ -815,13 +828,17 @@ changes, or look through the Subversion logs for all the details. ...@@ -815,13 +828,17 @@ changes, or look through the Subversion logs for all the details.
a timeout was provided and the operation timed out. a timeout was provided and the operation timed out.
(Contributed by Tim Lesher; :issue:`1674032`.) (Contributed by Tim Lesher; :issue:`1674032`.)
* The :func:`is_zipfile` function in the :mod:`zipfile` module now * The :mod:`zipfile` module's :class:`ZipFile` now supports the context
accepts a file object, in addition to the path names accepted in earlier management protocol, so you can write ``with zipfile.ZipFile(...) as f: ...``.
versions. (Contributed by Gabriel Genellina; :issue:`4756`.) (Contributed by Brian Curtin; :issue:`5511`.)
:mod:`zipfile` now supports archiving empty directories and :mod:`zipfile` now supports archiving empty directories and
extracts them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) extracts them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.)
The :func:`is_zipfile` function in the :mod:`zipfile` module now
accepts a file object, in addition to the path names accepted in earlier
versions. (Contributed by Gabriel Genellina; :issue:`4756`.)
.. ====================================================================== .. ======================================================================
.. whole new modules get described in subsections here .. whole new modules get described in subsections here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment