cpython/Lib/packaging
Éric Araujo 95fc53f2b3 Clean up packaging.util: add __all__, remove some unused functions.
This huge module is the heir of six distutils modules, and contains
a number of miscellaneous functions.  I have attempted to help readers
of the source code with an annoted __all__.  Removed or deprecated
functions have been removed from the documentation; I’m working on
another patch to document the remaining public functions.

For the curious:

The unzip_file and untar_file were used by (or intended to be used by)
“pysetup install path/to/archive.tar.gz”, but the code presently used
shutil.unpack_archive and an helper function, so I just deleted them.
They’re still in the repository if we need them in the future.

The find_packages function is not used anymore but I want to discuss
module and package auto-discovery (in “pysetup create”) again before
removing it.

subst_vars now lives in sysconfig; rfc822_escape is inlined in
packaging.metadata.  Other functions are for internal use only, or
deprecated; I have left them out of __all__ and sprinkled TODO notes
for future cleanups.
2011-09-01 05:11:29 +02:00
..
command Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
compiler
pypi
tests Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
__init__.py
_trove.py Update list of trove classifiers to match PyPI 2011-08-30 19:05:46 +02:00
compat.py
config.py Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
create.py Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
database.py Fix typo 2011-08-19 00:53:20 +02:00
depgraph.py Minor packaging cleanup. 2011-07-29 02:37:21 +02:00
dist.py Remove display options (--name, etc.) from the Distribution class. 2011-08-30 00:55:02 +02:00
errors.py
fancy_getopt.py
install.py Minor packaging cleanup. 2011-07-29 02:37:21 +02:00
manifest.py
markers.py
metadata.py Remove class that was only useful with Sphinx autodoc 2011-08-19 00:53:04 +02:00
run.py Move help texts near to the function they’re related to 2011-08-30 22:23:52 +02:00
util.py Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
version.py