Tarek Ziade
b9c09878ab
displaying the faulty project name is a good idea
2011-05-30 12:25:38 +02:00
Tarek Ziade
2da756592b
removed spurious output
2011-05-30 12:25:21 +02:00
Tarek Ziade
b1b6e1384c
Cleaned up the installer output behavior.
...
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.
2011-05-30 12:07:49 +02:00
Tarek Ziade
43f289ad88
cleanup packaging.database
2011-05-30 11:07:54 +02:00
Tarek Ziade
a17d8883fd
a resource module for 2 functions is overkill. database is the right place for those
2011-05-30 10:57:44 +02:00
Éric Araujo
7f9b37be45
Port r86353 to packaging ( #10359 : “;” after function definition is invalid in ISO C)
2011-05-29 02:59:52 +02:00
Éric Araujo
601aba6f15
Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2
2011-05-29 00:56:39 +02:00
Tarek Ziade
5eb555990a
Issue #12180 : Fixed a few remaining errors in test_packaging when no threading.
2011-05-25 23:46:09 +02:00
Victor Stinner
9bcfacd4fc
Issue #12167 : packaging.tests.test_dist unloads the temporary module
...
Fix a reference leak.
2011-05-24 14:01:39 +02:00
Victor Stinner
79d1b1ce3f
Issue #12167 : packaging.tests.support, LoggingCatcher restores correctly the
...
log level. Avoid also calls to .addCleanup() in setUp().
2011-05-24 13:59:21 +02:00
Tarek Ziade
e1177d9d17
Issue #12125 : fixed the failures under Solaris due to improper test cleanup.
2011-05-23 19:07:56 +02:00
Tarek Ziade
fabc30833f
fixed the cwd cleanup in packaging test_util
2011-05-23 18:47:27 +02:00
Tarek Ziade
eb64b61bf5
make sure the cwd is restored on tearDown
2011-05-23 18:31:20 +02:00
Tarek Ziade
a1ae533ac9
make sure build_dir.build_lib is synced to the faked build location
2011-05-23 17:35:20 +02:00
Tarek Ziade
e5f9cbdaae
skip more tests in packaging if threading is not supported
2011-05-23 00:41:27 +02:00
Tarek Ziade
a3c1545a2e
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7
2011-05-22 23:25:48 +02:00
Tarek Ziade
3517369894
Issue 12132 - skip the test_buil_ext test if the xx module is not found
2011-05-22 22:09:55 +02:00
Tarek Ziade
2bc55e482e
Issue 10126 - backported distutils fix for the enable-share mode into packaging
2011-05-22 21:21:44 +02:00
Tarek Ziade
2c40f60c32
added the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesNotMatch errors
2011-05-21 23:59:09 +02:00
Tarek Ziade
99d4623850
deactivating one test under win32 for now
2011-05-21 23:05:19 +02:00
Tarek Ziade
cc243cc808
make sure the crawler can browse file-based indexes under win32
2011-05-21 22:47:40 +02:00
Tarek Ziade
76ad4f0ec9
fixed the export symbols for the win32 linker
2011-05-21 21:48:04 +02:00
Tarek Ziade
5edc31ecaf
skip the pypi upload doc test via https, if ssl is not available
2011-05-21 19:53:45 +02:00
Tarek Ziade
be20be1345
use the same line terminator everywhere
2011-05-21 19:45:48 +02:00
Tarek Ziade
4bdd9f36a0
fixed the move api in packaging.install, and closing the handle left by mkstemp() in its test module
2011-05-21 15:12:10 +02:00
Tarek Ziade
2db5674a95
we want to generate /-separated paths setup.cfg files even under win32
2011-05-21 14:24:14 +02:00
Tarek Ziade
91f0e346cc
fixed the way the cfg file markers values are split under win32
2011-05-21 12:00:10 +02:00
Tarek Ziade
ec9b76d282
fixed the separator issues in packaging/resources+config
2011-05-21 11:48:16 +02:00
Tarek Ziade
94449616da
fixed a few mocking/cleanup issues in packaging test_util for win32
2011-05-21 10:37:58 +02:00
Victor Stinner
9904b22b78
Close #12114 : fix a potential deadlock in packaging.util._find_exe_version()
...
Avoid also zombi processes: Popen.communicate() calls its wait() method.
2011-05-21 02:20:36 +02:00
Ezio Melotti
bb00976fbf
Fix another ResourceWarning in test_packaging.
2011-05-20 20:27:54 +03:00
Ezio Melotti
2177ac9c41
Fix more ResourceWarnings in test_packaging moving the join() and server_close() in the stop method.
2011-05-20 19:35:58 +03:00
Ezio Melotti
86c54f0955
Fix several ResourceWarnings in test_packaging.
2011-05-20 14:13:58 +03:00
Victor Stinner
4050c69f78
packaging.tests.test_command_install_data: restore correctly sysconfig._SCHEMES
2011-05-20 01:56:42 +02:00
Victor Stinner
e1e3b12979
fix packaging tests on Windows: use os.path.join() in glob patterns
2011-05-20 00:33:39 +02:00
Victor Stinner
f966803c08
packaging: fix the constructor of FakePopen
...
packaging.util requires the env keyword.
2011-05-20 00:12:10 +02:00
Victor Stinner
8914fed842
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
...
Don't encode the path list
2011-05-20 00:05:58 +02:00
Victor Stinner
9999185447
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
2011-05-19 23:46:03 +02:00
Victor Stinner
9cf6d13141
Issue #12112 : fix the encoding of setup.py in the packaging module
...
* read: use tokenize.detect_encoding()
* write: use 'utf-8'
2011-05-19 21:42:47 +02:00
Ezio Melotti
975077a889
Refactor a few tests to use the new requires_zlib decorator.
2011-05-19 22:03:22 +03:00
Ezio Melotti
cad648cbc9
Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support.
2011-05-19 21:25:10 +03:00
Tarek Ziade
ebbb14c1a1
Issue #12120 , Issue #12119 : tests were missing a sys.dont_write_bytecode check
2011-05-19 19:56:12 +02:00
Tarek Ziade
2db2d3beeb
removed unused method in packaging.create
2011-05-19 19:07:06 +02:00
Victor Stinner
c3364529b8
Issue #12112 : packaging reads/writes metadata using UTF-8
2011-05-19 18:49:56 +02:00
Victor Stinner
dd13dd4bcc
Issue #12112 : packaging reads and writes setup.cfg using UTF-8
2011-05-19 18:45:32 +02:00
Victor Stinner
4c9706bd27
package: replace open(fn, 'w').close() by open(fn, 'wb').close()
...
We don't need to open the files in text mode just to create them (or update
their modification time).
2011-05-19 15:52:59 +02:00
Victor Stinner
21a9c748aa
packaging: use with open() instead of try/finally: close
2011-05-19 15:51:27 +02:00
Tarek Ziade
0e3f3a7076
fixed the path splitting
2011-05-19 15:51:54 +02:00
Tarek Ziade
fd88318ac4
Issue #12115 : skipping all tests that need threading under a threadless environment
2011-05-19 15:26:59 +02:00
Victor Stinner
cfd365b937
Issue #10419 , issue #6011 : port 6ad356525381 fix from distutils to packaging
...
build_scripts command of packaging now handles correctly non-ASCII path (path
to the Python executable). Open and write the script in binary mode, but ensure
that the shebang is decodable from UTF-8 and from the encoding of the script.
2011-05-19 15:18:36 +02:00
Victor Stinner
35de5ac44d
packaging: don't use locale encoding to compute MD5 checksums
...
Open the file in binary mode or use UTF-8 encoding.
2011-05-19 15:09:57 +02:00
Tarek Ziade
cd0f7bfd32
Issue #12113 : make sure generated module is not reused on a second run
2011-05-19 14:46:10 +02:00
Tarek Ziade
311a2d1bc9
make sure split() is called before the encoding
2011-05-19 13:59:45 +02:00
Tarek Ziade
3b1a22a6df
Issue #12109 fixing typo in packaging's test_command_upload_docs
2011-05-19 13:46:41 +02:00
Tarek Ziade
1231a4e097
initial import of the packaging package in the standard library
2011-05-19 13:07:25 +02:00