summaryrefslogtreecommitdiffstats
path: root/Lib/packaging
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * Change signature of packaging.tests.support.LoggingCatcher.get_logs.Éric Araujo2011-10-1910-72/+65
| | | | | | | | | | | | I need this for some tests, and it makes code clearer. This commit also changes some assertEqual calls to use (actual, expected) order and fix some pyflakes warnings.
| * More fixes for PEP 3147 compliance in packaging (#11254)Éric Araujo2011-10-194-8/+51
| |
| * Expand tests and fix bugs in packaging.util.resolve_name.Éric Araujo2011-10-192-33/+60
| | | | | | | | | | The code is still ugly, but at least it works better now. Patches to make it easier to read are welcome, as well as support in #12915.
* | A ricochet from fixing #10680: http://http://example.com/ no longer reportsŁukasz Langa2011-10-191-1/+1
|/ | | | | 'nonnumeric port'. It parses to a host name of "http:" which is equivalent to http:80.
* Cleanup in packaging: super considered superÉric Araujo2011-10-148-16/+15
|
* Fix writing of the RESOURCES file by packaging (#12386)Éric Araujo2011-10-143-5/+59
|
* Increase test coverage for packaging.manifest (#11751).Éric Araujo2011-10-112-2/+199
| | | | Patch by Justin Love.
* Add tests for Unicode handling in packaging’ check and register (#13114)Éric Araujo2011-10-112-10/+43
|
* Fix packaging byte-compilation to comply with PEP 3147 (#11254).Éric Araujo2011-10-083-8/+19
| | | | | | | | | | I want to replace custom byte-compiling function with calls to compileall before 3.3b1, but in the short term it’s good to have this fixed. Adapted from the distutils patch by Jeff Ramnani. I tested with -B, -O and -OO; test_util and test_mixin2to3 fail in -O mode because lib2to3 doesn’t support it.
* Make C code in one packaging test comply with ISO C (#10359).Éric Araujo2011-10-081-2/+2
| | | | Patch by Hallvard B Furuseth.
* Fix return code of “pysetup run COMMAND” (closes #12222)Éric Araujo2011-10-062-16/+19
|
* Minor: improve one test name, address pyflakes warningsÉric Araujo2011-10-061-6/+4
|
* Add test that was promised in a comment but not actually writtenÉric Araujo2011-10-061-2/+7
|
* Fix incorrect test.Éric Araujo2011-10-061-2/+3
| | | | | | | | | | The packaging.install.remove function (a.k.a. the uninstall feature) takes a path argument to allow client code to use custom directories instead of sys.path. The test used to give self.root_dir as path, which corresponds to a prefix option, but prefix is not on sys.path, it’s only the base directory used to compute the stdlib and site-packages directory paths. The test now gives a valid site-packages path to the function.
* Change one name in packaging’s test_uninstall to avoid confusion.Éric Araujo2011-10-061-12/+12
| | | | | | | install_lib may be the name of a module, a command or an option, so I find it clearer to use site_packages to refer to a string object containing the path of the site-packages directory created in a temporary directory during tests.
* Cosmetic fixes for whitespace and a regex in packaging.Éric Araujo2011-10-042-5/+5
| | | | | | The goal of the regex is to catch a (alpha), b (beta), c or rc (release candidate), so the existing pattern puzzled me. Tests were OK before and after the change.
* Add tests for comparing candidate and final versions in packaging (#11841).Éric Araujo2011-10-041-0/+12
| | | | | This used to be buggy; Filip Gruszczyński contributed tests and a code patch but the latter is not needed.
* Remove two unneeded attributes in packagingÉric Araujo2011-09-212-6/+3
|
* Squash last tempdir leak in packaging tests.Éric Araujo2011-09-191-0/+2
| | | | Sweet taste of victory! Alexis, you can fix the threads leaks :)
* Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive codeÉric Araujo2011-09-192-2/+2
|
* Final bag of small changes coming from distutils2.Éric Araujo2011-09-199-29/+22
| | | | | | | | | - 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-182-4/+5
|
* Replace cmp function with key functionÉric Araujo2011-09-181-15/+2
|
* Fix typo and wordingÉric Araujo2011-09-181-1/+1
|
* Branch mergeÉric Araujo2011-09-1815-94/+45
|\
| * Packaging cleanup: remove conditionals for < 2.6 support.Éric Araujo2011-09-1716-95/+46
| | | | | | | | | | | | | | | | 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-1819-125/+104
| |
* | Fix fallback base class when tests run without threadingÉric Araujo2011-09-181-1/+1
| |
* | Issue #12765: Fix packaging.test.test_database failures on OS X dueNed Deily2011-09-151-0/+1
|/ | | | | to unwarranted assumption about absolute paths: on OS X /var is a symlink to /private/var. (Also true for /etc and /tmp).
* Fix packaging.database.Distribution.list_distinfo_files (#12785).Éric Araujo2011-09-152-23/+27
| | | | | | | | | | | This method was supposed to return only the file under the dist-info directory, but it actually returned all installed files. The tests didn’t catch this because they were flawed; I updated them. Thanks to Nadeem Vawda and Jeremy Kloth for testing. As a bonus, the removal of os.path.relpath use should also fix the Windows buildbots.
* 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-123-36/+16
| | | | install_distinfo to allow all metadata consumers access to them.
* Remove unneeded --all option of “pysetup list”.Éric Araujo2011-09-122-12/+9
| | | | | | | | | | | | The command without arguments already prints all installed distributions found. In addition, change “releases” for “projects” in the description of the list action. Strictly speaking, one installed distribution satisfies the requirement for a release (i.e. version) of a project, but as currently only one release per project can be installed at a time, the two are somewhat equivalent, and “project” is more understandable in help texts (which call their argument “dist”, by the way..)
* Remove obsolete comment (yes, build_ext supports C++)Éric Araujo2011-09-101-4/+0
|
* Don’t let invalid line in setup.cfg pass silentlyÉric Araujo2011-09-101-3/+4
|
* 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.
* Use bytes regex instead of decoding whole pagesÉric Araujo2011-09-101-12/+10
|
* 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.
* Fix determination of Metadata version in packaging (#8933).Éric Araujo2011-09-102-2/+16
| | | | Original patch by Filip Gruszczyński.
* Consolidate tests for packaging.metadata.Éric Araujo2011-09-104-351/+333
| | | | | | | | | | | | | | | | | New tests were added in test_metadata and old tests inherited from distutils were still in test_dist, so I moved them into test_metadata (except for one which was more at home in test_run) and merged duplicates. I also added some skips to lure contributors <wink>, optimized the Metadata.update method a trifle, and added notes about a number of issues. A note: The tests in test_dist used to dump the Metadata objects to a file in the METADATA format and look for strings in its contents; I updated them to use the mapping API of Metadata instead. For some fields with special writing rules, I have added tests to ensure my conversion did not lose anything.
* Issue #9561: packaging now writes egg-info files using UTF-8Victor Stinner2011-09-051-2/+2
| | | | instead of the locale encoding
* Minor: tweak docstrings and __all__ in packaging.tests.supportÉric Araujo2011-09-011-13/+27
|
* Minor improvement to extensions in setup.cfg: check parent packageÉric Araujo2011-09-012-4/+47
|
* Minor improvement to extensions section in setup.cfg.Éric Araujo2011-09-012-9/+18
| | | | | | The right-hand part in [extension: foo] is now used as the name of the extension module. (I changed the separator from = to : and allowed whitespace to make the sections look nicer.)
* Clean up packaging.util: add __all__, remove some unused functions.Éric Araujo2011-09-018-144/+42
| | | | | | | | | | | | | | | | | | | | | | | | 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
|
* Move help texts near to the function they’re related toÉric Araujo2011-08-301-121/+101
|