summaryrefslogtreecommitdiffstats
path: root/Lib/packaging
Commit message (Collapse)AuthorAgeFilesLines
* Also specify encoding when reading setup.cfg (#12320)Éric Araujo2011-06-121-1/+1
|
* Specify the encoding of the setup.cfg in one packaging test (#12320)Éric Araujo2011-06-121-1/+1
|
* Adjust logging in packaging.util.spawn (related to #11599)Éric Araujo2011-06-111-2/+3
|
* Allow multiple setup hooks in packaging’s setup.cfg files (#12240).Éric Araujo2011-06-103-26/+49
| | | | Original patch by Erik Bray.
* setup.cfg: Document that description-file can contain more than one fileÉric Araujo2011-06-102-9/+6
|
* Fix assorted bugs in packaging.util.cfg_to_args (#11595).Éric Araujo2011-06-102-17/+62
| | | | Original patch by Erik Bray.
* Move useful function to packaging.util.Éric Araujo2011-06-102-18/+18
| | | | | Original patch by Erik Bray as part of #11595, changed by me to improve readability.
* Don’t try to install something when running from uninstalled source (#12246).Éric Araujo2011-06-102-5/+26
| | | | Original patch by Tshepang Lekhonkhobe.
* Clean up extra environment variable after packaging tests.Éric Araujo2011-06-101-1/+1
| | | | | | | | | | | | | packaging.util.check_environ will define HOME and PLAT if they don’t exist; for some reason, it does not define PLAT when running the tests from a checkout (so no regrtest warning) but does when running from an installed Python. Cleaning up the envvar in test_dist fixes the warning on my machine, but I suspect that a test runner using a different order to run files or running them in parallel may have PLAT defined in its environment because of another test. Quite a lot of code ends up calling check_environ; maybe we should just clean up PLAT in every test. For now I’m doing this simple fix, we’ll see if we get bug reports.
* Fix omission in test for packaging install_distinfo command.Éric Araujo2011-06-101-1/+1
| | | | | | | | The code does not write checksum or file length for .pyc and .pyo in the RECORD file, in compliance with PEP 376, but the test forgot to take .pyo into account. This was not caught because there were no .pyo in the checkout, but after installing there are .pyo files created by compileall, and the test picks them up.
* Packaging: use repr to display projects name (3ebabfbf6fe3 followup)Éric Araujo2011-06-101-1/+1
|
* Fix example in packaging test_config.Éric Araujo2011-06-091-2/+2
| | | | | | The example C extension used the “three.fast_taunt” name, but no “three” parent was defined in the setup.cfg. This did not cause a failure nor even print a warning, we may want to change that.
* Style change in packaging: use “not in” over “not x in”.Éric Araujo2011-06-085-16/+16
| | | | Such tests are IMO easier to read if both operators are grouped.
* Packaging: always use repr to display project names.Éric Araujo2011-06-081-7/+8
| | | | This helps debugging in case of trailing blanks and such things.
* Fix misunderstanding of how booleans workÉric Araujo2011-06-081-1/+2
|
* Packaging cleanup: normalize print calls.Éric Araujo2011-06-084-17/+19
| | | | | Namely: use default arguments instead of explicit empty string; use multiple arguments instead of building strings.
* Packaging cleanup: remove use of script_name where obsoleteÉric Araujo2011-06-086-20/+0
|
* Fix UnboundLocalError in a finally block of one packaging testÉric Araujo2011-06-061-1/+1
|
* Fix sdist to always include setup.cfg (#11092), to comply with the specÉric Araujo2011-06-063-19/+32
|
* Use strings instead of sets of lines in packaging.create tests.Éric Araujo2011-06-061-57/+63
| | | | | Using sets in tests did not check whether the values were written in the right section or with the right key.
* Fix commentÉric Araujo2011-06-061-1/+1
|
* Update doctring now that Python has real booleansÉric Araujo2011-06-051-1/+1
|
* 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
|
* Make help messages in packaging.run more consistentÉric Araujo2011-06-041-7/+6
|
* Cleanup in packaging: don’t unnecessarily instantiate exceptionsÉric Araujo2011-06-044-4/+4
|
* Improve a few docstrings in packaging.Éric Araujo2011-06-042-20/+12
| | | | | Also beautify import lists. Having them grouped by lenght makes it slightly easier to look for a module.
* Use list constructor or built-in method instead of copy moduleÉric Araujo2011-06-043-8/+5
|
* Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.Éric Araujo2011-06-031-1/+4
| | | | | | I’m afraid my docstring is not as clear as it should be, but I can’t find a concise way of describing what the code does. Suggestions for improvements welcome.
* Merge packaging doc fixÉric Araujo2011-06-024-16/+31
|\
| * Fix format of warnings from the packaging check commandÉric Araujo2011-06-022-1/+12
| |
| * Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.Éric Araujo2011-06-023-15/+19
| | | | | | | | | | This removes the need to call flush manually in each test, except when testing code that creates warning without checking them.
* | added the generate-setup actionTarek Ziade2011-06-022-2/+18
|/
* Branch mergeÉric Araujo2011-06-019-143/+45
|\
| * The compiler class for EMX was removedÉric Araujo2011-06-012-5/+2
| |
| * Fix typos in class namesÉric Araujo2011-06-012-6/+6
| |
| * 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-313-102/+6
| | | | | | | | | | 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.
| * Fix nonsensical name.Éric Araujo2011-05-311-28/+28
| | | | | | | | | | | | | | The code used “long” to refer to a long option (e.g. --quiet), which was probably changed by 2to3 and not caught by the human operator, and then changed to “integer” by me to avoid shadowing without seeing the real obvious fix.
| * Fix test name in debug messageÉric Araujo2011-05-311-2/+2
| |
* | code cleanup in packaging.runTarek Ziade2011-05-311-8/+4
| |
* | make sure we check for write access before starting the install, and add ↵Tarek Ziade2011-05-314-16/+91
| | | | | | | | correct exit code
* | improved pysetup list UITarek Ziade2011-05-311-1/+9
| |
* | better UI when the user does not have the perms to remove the projectTarek Ziade2011-05-302-7/+48
| |
* | fixed the test_uninstall patchTarek Ziade2011-05-301-2/+2
|/
* displaying the faulty project name is a good ideaTarek Ziade2011-05-301-6/+8
|
* removed spurious outputTarek Ziade2011-05-301-1/+7
|
* Cleaned up the installer output behavior.Tarek Ziade2011-05-306-67/+86
| | | | | | This change also makes sure the logger handlers are not alterated after an installation. That also fixes the remaining environment alteration issue in test_packaging.
* cleanup packaging.databaseTarek Ziade2011-05-302-7/+4
|
* a resource module for 2 functions is overkill. database is the right place ↵Tarek Ziade2011-05-304-195/+171
| | | | for those