Éric Araujo
643cb7345f
Allow multiple setup hooks in packaging’s setup.cfg files ( #12240 ).
...
Original patch by Erik Bray.
2011-06-11 00:33:38 +02:00
Éric Araujo
8474f2901b
setup.cfg: Document that description-file can contain more than one file
2011-06-11 00:21:18 +02:00
Éric Araujo
3605030c9b
Fix assorted bugs in packaging.util.cfg_to_args ( #11595 ).
...
Original patch by Erik Bray.
2011-06-10 23:52:26 +02:00
Éric Araujo
1c1d9a5026
Move useful function to packaging.util.
...
Original patch by Erik Bray as part of #11595 , changed by me to improve
readability.
2011-06-10 23:26:31 +02:00
Éric Araujo
df55334d52
Branch merge
2011-06-10 18:34:45 +02:00
Éric Araujo
fa6cfbc4f7
Don’t try to install something when running from uninstalled source ( #12246 ).
...
Original patch by Tshepang Lekhonkhobe.
2011-06-10 18:31:40 +02:00
Victor Stinner
7f294d1e19
Issue #8407 : skip sigwait() tests if pthread_sigmask() is missing
...
The new tests now requires pthread_sigmask(). Skip the test if the function is
missing, e.g. if Python is compiled without threads.
2011-06-10 14:02:10 +02:00
Victor Stinner
3a38a6db43
test_platform: ignore DeprecationWarning on popen() test
2011-06-10 13:59:59 +02:00
Victor Stinner
46591664fa
Issue #8407 : write error message on sigwait test failure
2011-06-10 13:53:32 +02:00
Victor Stinner
af4946020e
Issue #8407 : Make signal.sigwait() tests more reliable
...
Block the signal before calling sigwait(). Use os.fork() to ensure that we have
only one thread.
Initial patch written by Charles-François Natali.
2011-06-10 12:48:13 +02:00
Ross Lagerwall
b0ae53d8a0
Issue #9344 : Add os.getgrouplist().
2011-06-10 07:30:30 +02:00
Éric Araujo
2b612220e4
Clean up extra environment variable after packaging tests.
...
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.
2011-06-10 04:29:43 +02:00
Éric Araujo
f53cd89006
Fix omission in test for packaging install_distinfo command.
...
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.
2011-06-10 03:53:49 +02:00
Éric Araujo
5c6684f314
Packaging: use repr to display projects name (3ebabfbf6fe3 followup)
2011-06-10 03:10:53 +02:00
Victor Stinner
10c30d6764
Issue #8407 : signal.sigwait() releases the GIL
...
Initial patch by Charles-François Natali.
2011-06-10 01:39:53 +02:00
R David Murray
51fcb811e3
Merge #10694 : zipfile now ignores garbage at the end of a zipfile.
2011-06-09 15:52:31 -04:00
R David Murray
4fbb9dbd34
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 15:50:51 -04:00
R David Murray
0a9f16b627
merge #12283 : Fixed regression in smtplib quoting of leading dots in DATA.
2011-06-09 15:21:02 -04:00
R David Murray
0f663d07e6
#12283 : Fixed regression in smtplib quoting of leading dots in DATA.
...
I unfortunately introduced the regression when I refactored the code,
and there were no tests of quoting so it wasn't caught. Now there
is one.
2011-06-09 15:05:57 -04:00
Vinay Sajip
bf353aadf2
Merged upstream changes.
2011-06-09 18:43:11 +01:00
Vinay Sajip
ae5740f139
Made time formats in Formatter more configurable.
2011-06-09 18:42:19 +01:00
R David Murray
f97c59aaba
#10424 : argument names are now included in the missing argument message
...
Fix and initial test patch by Michele Orrù.
2011-06-09 12:34:07 -04:00
Vinay Sajip
8dd8d582e3
Merged fix for issue #12168 from 3.2.
2011-06-09 16:55:23 +01:00
Vinay Sajip
8168d10ea6
Issue #12168 : SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler.
2011-06-09 16:50:49 +01:00
Brian Curtin
d9463b233c
Merge 3.2
2011-06-09 09:46:21 -05:00
Brian Curtin
95d028fd18
Correction to 88e318166eaf - Issue #11583
...
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 09:10:38 -05:00
Éric Araujo
e00a6703e8
Branch merge
2011-06-09 14:07:46 +02:00
Éric Araujo
0a975f957d
Fix example in packaging test_config.
...
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.
2011-06-09 07:47:25 +02:00
Brian Curtin
9a82eaade3
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:43:57 -05:00
Brian Curtin
9c669ccc77
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:17:18 -05:00
Charles-François Natali
4dd453c6aa
Issue #12021 : Make mmap's read() method argument optional. Patch by Petri
...
Lehtinen.
2011-06-08 19:18:14 +02:00
Antoine Pitrou
dd69649660
Issue #9205 : concurrent.futures.ProcessPoolExecutor now detects killed
...
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
2011-06-08 17:21:55 +02:00
Éric Araujo
df8ef02488
Style change in packaging: use “not in” over “not x in”.
...
Such tests are IMO easier to read if both operators are grouped.
2011-06-08 04:47:13 +02:00
Éric Araujo
46bdcf7d4b
Packaging: always use repr to display project names.
...
This helps debugging in case of trailing blanks and such things.
2011-06-08 04:40:13 +02:00
Éric Araujo
ea888e038b
Fix misunderstanding of how booleans work
2011-06-08 04:31:18 +02:00
Éric Araujo
3cab2f150c
Packaging cleanup: normalize print calls.
...
Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.
2011-06-08 04:10:57 +02:00
Éric Araujo
04fc999c05
Packaging cleanup: remove use of script_name where obsolete
2011-06-08 04:06:50 +02:00
Éric Araujo
ef3062f7af
Kill dead code in importlib.test.__main__ ( #12019 , reviewed by Brett Cannon)
2011-06-07 17:58:50 +02:00
Éric Araujo
313570a185
Branch merge: packaging fixes
2011-06-07 17:31:39 +02:00
Łukasz Langa
1752468d39
#12274 : use proper escaping for % in IDLE config (merged from 3.2).
2011-06-07 15:20:51 +02:00
Łukasz Langa
41c1910bb3
#12274 : use proper escaping for % in IDLE config.
2011-06-07 15:19:44 +02:00
Victor Stinner
3adba1ff81
(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
...
temporary symbolic link.
2011-06-07 12:19:34 +02:00
Victor Stinner
62ec61fb6a
test.support: can_symlink() removes the temporary symbolic link
2011-06-07 12:17:15 +02:00
Victor Stinner
149b1c7797
Use a sleep for test_subprocess timeout test
...
instead of an active loop (while True: pass) to limit race conditions.
2011-06-06 23:43:02 +02:00
Éric Araujo
69cdf9294f
Fix UnboundLocalError in a finally block of one packaging test
2011-06-06 22:24:19 +02:00
Éric Araujo
7373fccd50
Fix sdist to always include setup.cfg ( #11092 ), to comply with the spec
2011-06-06 21:55:43 +02:00
Éric Araujo
078368fe4d
Use strings instead of sets of lines in packaging.create tests.
...
Using sets in tests did not check whether the values were written in the right
section or with the right key.
2011-06-06 20:59:56 +02:00
Éric Araujo
de7563bd3c
Fix comment
2011-06-06 20:28:13 +02:00
Éric Araujo
9808dac192
Update comments in sysconfig.cfg
2011-06-06 20:07:04 +02:00
Charles-François Natali
368f34bb4b
Issue #12196 : Make os.pipe2() flags argument mandatory.
2011-06-06 19:49:47 +02:00