summaryrefslogtreecommitdiffstats
path: root/Lib/packaging
Commit message (Collapse)AuthorAgeFilesLines
* Remove buggy change for #13719 in packagingÉric Araujo2012-03-072-10/+1
|
* Make packaging’ upload command work with bdist_msi products (#13719)Éric Araujo2012-03-052-3/+12
|
* Improve packaging.database documentationÉric Araujo2012-03-051-0/+1
|
* Fix comparison bug with 'rc' versions in packaging.version (#11841).Éric Araujo2012-02-272-11/+22
| | | | | | | I added some tests in 2105ab8553b7 and found no bug, but it turns out that the doctest is not actually run. While converting the doctest to unittest style, I stumbled upon this bug again and this time applied the code patch provided by Filip Gruszczyński.
* Port the #6884 fix to packagingÉric Araujo2012-02-262-43/+117
|
* Fix code I unwittingly broke in b0e2d6592a1f (#14038)Éric Araujo2012-02-171-1/+1
|
* Add test for packaging.util.set_platform (#13974).Éric Araujo2012-02-161-0/+5
| | | | Patch by Tshepang Lekhonkhobe.
* Fix for packaging test failure on shared builds (#1326113)Éric Araujo2012-02-151-1/+2
|
* Fix parsing of packaging’s build_ext --libraries option (#1326113)Éric Araujo2012-02-152-8/+7
|
* Port the fix for #13193 to packagingÉric Araujo2012-02-121-4/+2
|
* Use sys.version_info instead of sys.version in packaging.Éric Araujo2012-02-108-17/+23
| | | | | | | | | | | | | 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 :)
* Start improving 2to3 code in packaging (#13462).Éric Araujo2012-02-096-194/+97
| | | | | | - Change the fixers used in tests to something not provided by lib2to3 - Test conversion of doctests in text files - Factor out test boilerplate into a common method
* Synchronize packaging.tests.support with distutils2Éric Araujo2012-02-091-19/+22
|
* More boolean tests for packaging metadata environment markersÉric Araujo2012-02-091-3/+7
|
* Remove unneeded importÉric Araujo2012-02-091-1/+1
|
* Group commands by topic in “pysetup run --list-commands” output.Éric Araujo2012-02-093-36/+40
| | | | | | 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.
* Fix typos in comments.Éric Araujo2012-02-061-3/+3
| | | | | Reported by David-Sarah Hopwood on the Bitbucket bug tracker of Tarek’s former verlib/distutils.version project.
* Stop converting package_data to extra_files in pysetup create (#13712).Éric Araujo2012-02-052-28/+33
| | | | | | | | 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.
* Allow multiple values for package_data in setup.cfg (#11805).Éric Araujo2012-02-042-14/+48
| | | | | | | | | | | | | Even though the resources system obsoletes data_files and package_data (see bug discussion), package_data still exists to allow compatibility with distutils and thus an easier transition. In setup.py, the values are lists of glob patterns, so the setup.cfg syntax needed a way to express multiple values too. Doc for this option will be added later as part of the big packaging doc patches. For now, the test serves as example. Reported by Erik Bray.
* Improve one packaging test, remove a setuptoolism in anotherÉric Araujo2012-02-042-5/+14
|
* Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.Ned Deily2012-02-031-3/+8
|
* Update list of trove classifiersÉric Araujo2011-11-201-0/+12
|
* Remove obsolete verbose arguments from packaging.Éric Araujo2011-11-1511-51/+36
| | | | | | 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.
* Remove unused code from packaging.tests.__init__Éric Araujo2011-11-154-108/+10
|
* Remove redundant setUp/tearDown methods in packaging testsÉric Araujo2011-11-143-23/+2
|
* The error message should contain the key as given, not normalized.Éric Araujo2011-11-141-2/+4
| | | | Backout of 2e047702df7f. Reported by Jeremy Kloth.
* Add tests to check initial content of packaging.database cachesÉric Araujo2011-11-141-0/+7
|
* packaging cleanup: A few super I missed in 5ae03b1e147aÉric Araujo2011-11-142-11/+10
|
* Adapt test and example after e39d1b6f0856.Éric Araujo2011-11-141-1/+1
| | | | | Tarek’s commit fixed the way packaging configuration file markers are split under Windows, but these two files were not edited.
* Fix a few typosÉric Araujo2011-11-141-1/+1
|
* Clean up byte-compilation code in packaging (#11254 followup).Éric Araujo2011-11-145-73/+51
| | | | | | | | | | | | | | | | | - 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)
* Issue #13193: Fix distutils.filelist.FileList andAntoine Pitrou2011-11-121-1/+4
| | | | | packaging.manifest.Manifest under Windows. The "recursive-include" directive now recognizes both legal path separators.
* Merge 3.2, fix typos.Florent Xicluna2011-11-112-2/+2
|
* Use more standard name for one option of packaging’s install_distinfoÉric Araujo2011-11-063-21/+18
|
* Remove redundant __main__ blocks from packaging modules.Éric Araujo2011-11-063-17/+1
| | | | | 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-0610-113/+61
| | | | | | | | 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.
* Minor tweak to packaging tests.Éric Araujo2011-11-064-3/+4
| | | | | | | | | | When an option is changed on a command object, calling ensure_finalized for a second time will not run finalize_options again, because ensure_finalized is a no-op the second time. By resetting the finalized attribute, we can be sure that whatever computation takes place in finalize_options will happen again. (In test_command_clean, I removed two lines that were a no-op.)
* Undo potentially confusing name change in packaging.Éric Araujo2011-11-068-19/+19
| | | | | | | | | | | 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.
* Make sure packaging tests that register custom commands also clear themÉric Araujo2011-11-063-19/+34
|
* Try to fix buildbot failures from #13193Éric Araujo2011-11-051-0/+2
|
* Actually check the contents of the file created by packaging’s bdist_dumbÉric Araujo2011-11-031-4/+13
|
* Improve byte-compilation in packaging to be independent of -O or -B.Éric Araujo2011-11-039-155/+117
| | | | | | | | | | | | | | | | | | | | | 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.
* Minor code reorganization in one packaging test fileÉric Araujo2011-11-021-27/+25
|
* Fix typo “seperate”Éric Araujo2011-11-023-3/+3
|
* Merge 3.2Florent Xicluna2011-10-282-3/+3
|
* Add tests for packaging.tests.support (#12659).Éric Araujo2011-10-211-0/+78
| | | | Thanks to Francisco Martín Brugué for the patch.
* Fix missing imports in setup scripts generated by packaging (#13205).Éric Araujo2011-10-212-17/+73
| | | | | | | | | | | | | I’ve made more edits than the bug report suggested to make sure the generated setup script is compatible with many Python versions; a comment in the source explains that in detail. The cfg_to_args function uses old 2.x idioms like codecs.open and RawConfigParser.readfp because I want the setup.py generated by packaging and distutils2 to be the same. Most users won’t see the deprecation warning and I ignore it in the test suite. Thanks to David Barnett for the report and original patch.
* Branch mergeÉric Araujo2011-10-1925-154/+219
|\
| * Make one function in packaging.metadata simplerÉric Araujo2011-10-191-4/+3
| |
| * Clean up some idioms in packaging tests.Éric Araujo2011-10-1913-37/+40
| | | | | | | | | | | | | | | | - Use os.makedirs (I had forgotten about it!) - Let TempdirManager.write_file call os.path.join for us - Remove custom command added by test_dist - Use a skip instead of hiding a method with an underscore - Address pyflakes warnings