summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* packaging: Add the project directory to sys.path to support local setup hooks.Éric Araujo2011-06-193-11/+39
| | | | Original patch by Vinay Sajip on #11637.
* Add missing documentation for packaging.pypi.base and .simpleÉric Araujo2011-06-192-13/+95
|
* Fix typoÉric Araujo2011-06-192-2/+2
|
* merge headsBenjamin Peterson2011-06-1911-96/+118
|\
| * faulthandler doc: the the => theVictor Stinner2011-06-191-1/+1
| |
| * ACKS update for devguide patch (closes #12278)Nick Coghlan2011-06-191-0/+1
| |
| * #6771: Move wrapper function into __init__ and eliminate wrapper moduleR David Murray2011-06-193-51/+49
| | | | | | | | | | | | | | | | | | Andrew agreed in the issue that eliminating the module file made sense. Wrapper has only been exposed as a function, and so there is no (easy) way to access the wrapper module, which in any case only had the one function in it. Since __init__ already contains a couple wrapper functions, it seems to make sense to just move wrapper there instead of importing it from a single function module.
| * merge #6771: fix docs: curses.wrapper is exposed as a function, not a moduleR David Murray2011-06-181-33/+13
| |\
| | * #6771: fix docs: curses.wrapper is exposed as a function, not a moduleR David Murray2011-06-181-33/+13
| | | | | | | | | | | | Patch by July Tikhonov.
| * | merge #11584: make Header and make_header handle binary unknown-8bit inputR David Murray2011-06-183-2/+21
| |\ \ | | |/
| | * #11584: make Header and make_header handle binary unknown-8bit inputR David Murray2011-06-183-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | Analogous to the decode_header fix, this fix makes Header.append and make_header correctly handle the unknown-8bit charset introduced by email5.1, when the input to them is binary strings. Previous to this fix the make_header(decode_header(x)) == x invariant was broken in the face of the unknown-8bit charset.
| * | merge #11584: make decode_header handle Header objects correctlyR David Murray2011-06-183-4/+8
| |\ \ | | |/ | | | | | | | | | This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug incorrectly.
| | * #11584: make decode_header handle Header objects correctlyR David Murray2011-06-183-4/+8
| | | | | | | | | | | | This updates b21fdfa0019c, which fixed this bug incorrectly.
| * | #11781: update windows build script to account for move of email testsR David Murray2011-06-181-2/+2
| | |
| * | merge #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-183-5/+25
| |\ \ | | |/
| | * #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-183-5/+25
| | | | | | | | | | | | This makes them work like the close provided by regular file objects.
* | | clarifyBenjamin Peterson2011-06-191-6/+6
|/ /
* | edit and rewriteBenjamin Peterson2011-06-181-40/+45
| |
* | Make decorators used in packaging preserve docstringsÉric Araujo2011-06-171-5/+7
| |
* | Brange mergeÉric Araujo2011-06-173-2/+37
|\ \
| * \ merge #11767: use context manager to close file in __getitem__ to prevent FD ↵R David Murray2011-06-173-2/+37
| |\ \ | | |/ | | | | | | leak
| | * #11767: use context manager to close file in __getitem__ to prevent FD leakR David Murray2011-06-173-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | All of the other methods in mailbox that create message objects take care to close the file descriptors they use, so it seems to make sense to have __getitem__ do so as well. Patch by Filip Gruszczyński.
* | | Brange mergeÉric Araujo2011-06-1716-147/+123
|\ \ \ | |/ / |/| |
| * | Minor tweaks to packaging tests.Éric Araujo2011-06-173-34/+28
| | | | | | | | | | | | | | | | | | - Move a tearDown method right after setUp - Use assertRaises instead of reinventing it - Skip a test instead of commenting it out, as a reminder
| * | Packaging tests: don’t let an internal cache grow indefinitely.Éric Araujo2011-06-172-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Victor Stinner diagnosed on #12167 that some reference leaks came from util._path_created, a set used for caching; there are two tests that cause additions to this set, so now they clear it in tearDown, avoiding 17 refleaks. (My tests show that it’s necessary to clear the set in only one test, clearing it in both does not stop more refleaks, but there’s no harm in doing it.)
| * | Minor tweaks in packaging’s test_dist.Éric Araujo2011-06-171-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use different Metadata objects to write and read a PKG-INFO (METADATA) file, to make sure the tested values come from the file - No need to restore methods on an instance after monkey-patching them: the methods are still the same on the class - Harmonize dedent calls
| * | Remove unused code in packaging.pypi.distÉric Araujo2011-06-161-4/+1
| | |
| * | Stop binding sys.path as default parameter value in packaging.Éric Araujo2011-06-164-27/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two public functions in database default to sys.path if the given *paths* argument is None; the private functions don’t have default values for their arguments anymore, which is fine as the public functions that call them pass their arguments down. Likewise in install, the functions will pass down their *paths* arguments down to database functions. A one-line unneeded function in install was removed instead of being changed, and the few remaining tests that used brute-force restoration of sys.path have been cleaned up to use sys.path.remove.
| * | Packaging: remove last mentions and uses of setup.py in the code.Éric Araujo2011-06-167-32/+15
| | | | | | | | | | | | | | | Now only the compatibility layer (in create, util and install) talk about setup.py.
| * | Clean up packaging.tests.test_mixin2to3Éric Araujo2011-06-161-34/+43
| | |
* | | #12313: update Makefile.pre.in to account for email tests moving to 'test' dirR David Murray2011-06-171-1/+1
| | |
* | | (Merge 3.2) posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-9/+9
|\ \ \ | | |/ | |/| | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
| * | posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-22/+22
| | | | | | | | | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
* | | (Merge 3.2) Issue #10883: test_urllib2net closes socket explicitlyVictor Stinner2011-06-171-0/+8
|\ \ \ | |/ /
| * | Issue #10883: test_urllib2net closes socket explicitlyVictor Stinner2011-06-171-0/+8
| | |
* | | (Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-173-0/+9
|\ \ \ | |/ / | | | | | | | | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
| * | Issue #12133: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-173-0/+9
| | | | | | | | | | | | | | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
* | | Issue #12333: run tests on the new module in a subprocessVictor Stinner2011-06-171-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not possible to unload a module written in C, so use a subprocess to run the tests on the module compiled by test_build_ext(). Using a subprocess, we don't have to unload the module, save/restore sys.path, and the test can be run more than once. This commit fixes also an access error on rmtree() on Windows: because the module was not really unloaded, it was not possible to remove the temporary directory (it is not possible to remove a directory on Windows if it still contains an open file).
* | | Issue #12333: close files before removing the directoryVictor Stinner2011-06-171-3/+2
| | | | | | | | | | | | | | | packaging.tests.support.TempdirManager: rmtree() fails on Windows if there are still open files in the directory.
* | | (Merge 3.2) Issue #12310: finalize the old process after _run_after_forkers()Victor Stinner2011-06-171-2/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | multiprocessing: Process._bootstrap() keeps a reference to the old process to delay its finalization until after _run_after_forkers() as been executed. This change should fix a crash on Mac OS X Tiger when a lock is released after a fork. Patch written by Charles-François Nataliv and Antoine Pitrou.
| * | Issue #12310: finalize the old process after _run_after_forkers()Victor Stinner2011-06-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | multiprocessing: Process._bootstrap() keeps a reference to the old process to delay its finalization until after _run_after_forkers() as been executed. This change should fix a crash on Mac OS X Tiger when a lock is released after a fork. Patch written by Charles-François Nataliv and Antoine Pitrou.
* | | Issue #12333: restore the previous dir before removing the current directoryVictor Stinner2011-06-171-8/+5
| | | | | | | | | | | | | | | | | | | | | packaging.tests.support.TempdirManager: removing the current directory is not allowed on Windows or Solaris. Store the current directory and restore it before removing the temporary directory (which is used as the working directory during the tests).
* | | merge headsBenjamin Peterson2011-06-160-0/+0
|\ \ \
| * \ \ Fix typo.Raymond Hettinger2011-06-161-1/+1
| |\ \ \ | | |_|/ | |/| |
* | | | merge 3.2Benjamin Peterson2011-06-161-1/+1
|\ \ \ \ | | |_|/ | |/| |
| * | | merge headsBenjamin Peterson2011-06-161-1/+1
| |\ \ \ | | | |/ | | |/|
| | * | Fix typo.Raymond Hettinger2011-06-161-1/+1
| | | |
* | | | merge 3.2Benjamin Peterson2011-06-161-1/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | update link to pycrypto (closes #12351)Benjamin Peterson2011-06-161-1/+1
| |/
* | Issue #12167: Fix a reafleak in packaging.tests.PyPIServer constructorVictor Stinner2011-06-151-1/+3
| | | | | | | | Don't modify mutable default arguments...