summaryrefslogtreecommitdiff
path: root/Lib/packaging/command
Commit message (Collapse)AuthorAgeFilesLines
* Remove packaging from the standard library.Éric Araujo2012-06-2433-6074/+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
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-1/+4
|
* Fix #13210. Port the Windows build from VS2008 to VS2010.Brian Curtin2012-05-131-1/+1
|
* Remove buggy change for #13719 in packagingÉric Araujo2012-03-071-1/+1
|
* Make packaging’ upload command work with bdist_msi products (#13719)Éric Araujo2012-03-051-1/+1
|
* Fix parsing of packaging’s build_ext --libraries option (#1326113)Éric Araujo2012-02-151-2/+1
|
* Use sys.version_info instead of sys.version in packaging.Éric Araujo2012-02-104-8/+7
| | | | | | | | | | | | | The contents of this attribute are an implementation detail, as documented for #9442, so we should not parse it, to support non-CPython VMs with distutils2 in the future. Unfortunately, one use comes directly from PEP 345, so an edit will have to be agreed before fixing the code (see comment in p7g.markers). Other remaining uses are found in p7g.compiler and could be replaced by the platform module (which also parses sys.version, but then it wouldn’t be my fault :)
* Group commands by topic in “pysetup run --list-commands” output.Éric Araujo2012-02-091-30/+20
| | | | | | This fixes a regression from distutils, where “setup.py --help-commands” prints out commands grouped by topic (i.e. building vs. installing), which is more useful than using sorted.
* Remove obsolete verbose arguments from packaging.Éric Araujo2011-11-154-18/+14
| | | | | | Logging replaces verbose arguments. I haven’t fixed the example in Doc/install/install.rst because I have major fixes and changes to the oc under way and will fix or remove that example as part of that task.
* Clean up byte-compilation code in packaging (#11254 followup).Éric Araujo2011-11-143-56/+35
| | | | | | | | | | | | | | | | | - Don't use keyword arguments for debug_override; I find it more readable to have a comment explaining that True makes pyc and False pyo than to write out the non-obvious (when you haven’t read the doc) argument name - Move duplicate code from build_py and install_lib into cmd - Remove obsolete verbose argument of util.byte_compile - Remove obsolete passing of -O/-OO to the Python process spawned by util.byte_compile (I’ll remove the whole spawning later, after I write more tests to check the contents of pyc and pyo files; now that byte_compile does not depend on the value of __debug__ in the calling Python, we can call py_compile or compileall directly)
* Use more standard name for one option of packaging’s install_distinfoÉric Araujo2011-11-062-16/+13
|
* Undo potentially confusing name change in packaging.Éric Araujo2011-11-066-12/+11
| | | | | | | | | | | This method was named reinitialize_command in distutils and accompanied by a comment suggesting to change it to get_reinitialized_command. Following that, I did the change for distutils2, but it proved confusing: The Distribution object has an internal cache of command objects, to make sure only one instance is ever used, and the name get_reinitialized_command could suggest that the object returned was independent of that cache, which it was not. I’m reverting the name change to make code clearer.
* Improve byte-compilation in packaging to be independent of -O or -B.Éric Araujo2011-11-032-53/+34
| | | | | | | | | | | | | | | | | | | | | The code I fixed to comply with PEP 3147 still had one bug: When run under python -O, some paths for pyc files would be pyo, because I called imp.cache_from_source without explicit debug_override argument in some places, and under -O that would return .pyo (this is well explained in the imp docs). Now all code (util.byte_compile, build_py, install_lib) can create .pyo files according to options given by users, without interference from the calling Python’s own optimize mode. On a related topic, I also removed the code that prevented byte compilation under python -B. The rationale is that packaging gives control over the creation of pyc files to the user with its own explicit option, and the behavior should not be changed if the calling Python happens to run with -B for whatever reason. I will argue that this is a bug fix and ask to be allowed to backport this change to distutils. Finally, I moved one nugget of information about the --compile and --optimize options from the source into the doc. It clears up a misunderstanding that I (and maybe other people) had.
* Fix typo “seperate”Éric Araujo2011-11-032-2/+2
|
* More fixes for PEP 3147 compliance in packaging (#11254)Éric Araujo2011-10-192-4/+8
|
* Cleanup in packaging: super considered superÉric Araujo2011-10-141-1/+1
|
* Fix writing of the RESOURCES file by packaging (#12386)Éric Araujo2011-10-141-1/+1
|
* Remove two unneeded attributes in packagingÉric Araujo2011-09-211-1/+0
|
* Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive codeÉric Araujo2011-09-191-1/+1
|
* Final bag of small changes coming from distutils2.Éric Araujo2011-09-191-2/+2
| | | | | | | | | - minor cleanup in Metadata - trigger creation of the sysconfig._CONFIG_VARS dict - home_page is used over home-page: it’s not a compound word, it’s an escaped space Distutils2 is now synchronized with Packaging.
* A few style changes originally done in the distutils2 repoÉric Araujo2011-09-181-2/+2
|
* Fix typo and wordingÉric Araujo2011-09-181-1/+1
|
* Branch mergeÉric Araujo2011-09-185-55/+32
|\
| * Packaging cleanup: remove conditionals for < 2.6 support.Éric Araujo2011-09-175-55/+32
| | | | | | | | | | | | | | | | PEP 370 features and sys.dont_write_bytecode are always available in 3.3; the distutils2 backport still has the conditionals. I also renamed an internal misnamed method and fixed a few things (“packaging2” name, stray print, unused import, fd leak).
* | Make a number of small changes to ease the backport to distutils2Éric Araujo2011-09-182-2/+2
|/
* The value is the dotted module name to the command class.Jeremy Kloth2011-09-131-1/+1
|
* Factor out the distribution file-system safe name functions from ↵Jeremy Kloth2011-09-121-31/+1
| | | | install_distinfo to allow all metadata consumers access to them.
* Remove obsolete comment (yes, build_ext supports C++)Éric Araujo2011-09-101-4/+0
|
* Fix usage of bytes in packaging's bdist_wininst.Éric Araujo2011-09-101-7/+8
| | | | | | This is copied from the namesake distutils command; there is no automated test, so buildbots won’t call for my head this time, but it should be okay as Python 3 users have tested the distutils command.
* Fix usage of dry-run in packaging bdist_wininst and install_distinfo.Éric Araujo2011-09-102-40/+39
| | | | | | | In dry-run mode, packaging commands should log the same info as in real operation and should collect the same files in self.outputs, so that users can run a command in verbose and dry-run mode to see exactly what operations will be done in the real run.
* Clean up packaging.util: add __all__, remove some unused functions.Éric Araujo2011-09-014-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix packaging command registry to let Windows machines find bdist_msiÉric Araujo2011-08-311-2/+7
|
* Fix typo I introduced in f93acf8844ecÉric Araujo2011-08-301-1/+1
|
* Make bdist_* commands respect --skip-build passed to bdist (#10946).Éric Araujo2011-08-303-4/+13
| | | | | | There was already a test for this, but it was complicated and had a subtle bug (custom command objects need to be put in dist.command_obj so that other command objects may see them) that rendered it moot.
* Remove obsolete mentions of the compress program and .Z archives.Éric Araujo2011-08-302-14/+14
| | | | | | Packaging uses the shutil.make_archive function copied from distutils, which does not support compress. There is no test to check that “bdist --format whatever” works, so this slipped by.
* Cleanup: move code out of a try blockÉric Araujo2011-08-301-4/+6
|
* Cleanup: use sys.version_info instead of convoluted hexversion lshiftsÉric Araujo2011-08-291-11/+6
|
* Issue #12326: refactor usage of sys.platformVictor Stinner2011-08-211-2/+1
| | | | | | | | * Use str.startswith(tuple): I didn't know this Python feature, Python rocks! * Replace sometimes sys.platform.startswith('linux') with sys.platform == 'linux' * sys.platform doesn't contain the major version on Cygwin on Mac OS X (it's just 'cygwin' and 'darwin')
* Minor cleanupÉric Araujo2011-08-201-7/+7
| | | | | | - Rename an attribute and create it in initialize_options instead of finalize_options to match the other install_* classes - Remove unnecessary method call in tests
* Make TypeError message from Command.__init__ more usefulÉric Araujo2011-07-291-1/+2
|
* Factor out code used by packaging commands for HTTP requests (#12169).Éric Araujo2011-07-083-107/+15
| | | | | | We now have one function to prepare multipart POST requests, and we use CRLF, as recommended by the HTTP spec (#10150). Initial patch by John Edmonds.
* Packaging: remove last mentions and uses of setup.py in the code.Éric Araujo2011-06-161-4/+1
| | | | | Now only the compatibility layer (in create, util and install) talk about setup.py.
* Fix sdist to always include setup.cfg (#11092), to comply with the specÉric Araujo2011-06-061-8/+13
|
* Fix format of warnings from the packaging check commandÉric Araujo2011-06-021-1/+1
|
* Re-add line that was mistakenly removed alongside RPM support.Éric Araujo2011-05-311-0/+1
| | | | This reveals the need for bdist* tests.
* Re-apply distutils2 changes lost before the merge of packaging.Éric Araujo2011-05-311-34/+2
| | | | | wrap_text was removed in favor of standard textwrap but the removal of the function was lost in a bad merge; a change in sdist mysteriously disappeared.
* Issue 10126 - backported distutils fix for the enable-share mode into packagingTarek Ziade2011-05-221-3/+3
|
* fixed the export symbols for the win32 linkerTarek Ziade2011-05-211-1/+1
|
* use the same line terminator everywhereTarek Ziade2011-05-211-2/+2
|
* package: replace open(fn, 'w').close() by open(fn, 'wb').close()Victor Stinner2011-05-191-1/+1
| | | | | We don't need to open the files in text mode just to create them (or update their modification time).