summaryrefslogtreecommitdiff
path: root/Lib/packaging/create.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove packaging from the standard library.Éric Araujo2012-06-241-682/+0
| | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* Stop converting package_data to extra_files in pysetup create (#13712).Éric Araujo2012-02-051-15/+21
| | | | | | | | pysetup create, the setup.cfg creation helper, used to convert package_data (from an existing setup.py) into extra_files, the replacement for MANIFEST.in, but these files are only present in sdists, not installed: they don’t have the same use case at all, so converting one into the other did not work.
* Remove redundant __main__ blocks from packaging modules.Éric Araujo2011-11-061-4/+0
| | | | | The one interface we commit to maintain is the run module (a.k.a. the pysetup script).
* Clean up mocking of stdout and stdin in packaging tests.Éric Araujo2011-11-061-15/+14
| | | | | | | | Running with regrtest does not show spurious output or unrestored sys.std* objects; sometimes running with make test is different, I’ll watch the buildbots. In addition, update the create module to use logging.
* Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive codeÉric Araujo2011-09-191-1/+1
|
* A few style changes originally done in the distutils2 repoÉric Araujo2011-09-181-2/+3
|
* Replace cmp function with key functionÉric Araujo2011-09-181-15/+2
|
* Clean up packaging.util: add __all__, remove some unused functions.Éric Araujo2011-09-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Improve “pysetup create” help messages.Éric Araujo2011-08-191-18/+19
| | | | | | | The example version numbers were invalid and “package” was misused. I also made lines shorter, replaced “e-mail” with “email” (more common in the stdlib and I believe in English generally) and tweaked a few other things.
* Style change in packaging: use “not in” over “not x in”.Éric Araujo2011-06-081-4/+4
| | | | Such tests are IMO easier to read if both operators are grouped.
* Improve consistency in questions asked by packaging.create.Éric Araujo2011-06-041-10/+10
| | | | I reworded “wizard” because it is a Windows-specific term.
* Clean up packaging.create and add TODO notes for future cleanupsÉric Araujo2011-06-041-8/+14
|
* Improve a few docstrings in packaging.Éric Araujo2011-06-041-12/+5
| | | | | Also beautify import lists. Having them grouped by lenght makes it slightly easier to look for a module.
* we want to generate /-separated paths setup.cfg files even under win32Tarek Ziade2011-05-211-7/+13
|
* Issue #12112: fix the encoding of setup.py in the packaging moduleVictor Stinner2011-05-191-1/+4
| | | | | * read: use tokenize.detect_encoding() * write: use 'utf-8'
* removed unused method in packaging.createTarek Ziade2011-05-191-13/+0
|
* Issue #12112: packaging reads and writes setup.cfg using UTF-8Victor Stinner2011-05-191-1/+1
|
* packaging: don't use locale encoding to compute MD5 checksumsVictor Stinner2011-05-191-3/+3
| | | | Open the file in binary mode or use UTF-8 encoding.
* initial import of the packaging package in the standard libraryTarek Ziade2011-05-191-0/+693