Commit graph

232 commits

Author SHA1 Message Date
É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
d5d831b74d Update doctring now that Python has real booleans 2011-06-06 01:13:48 +02:00
Éric Araujo
4559383664 Improve consistency in questions asked by packaging.create.
I reworded “wizard” because it is a Windows-specific term.
2011-06-04 22:37:57 +02:00
Éric Araujo
8f66f61e55 Clean up packaging.create and add TODO notes for future cleanups 2011-06-04 22:36:40 +02:00
Éric Araujo
18efecf30a Make help messages in packaging.run more consistent 2011-06-04 22:33:59 +02:00
Éric Araujo
2ef747cb77 Cleanup in packaging: don’t unnecessarily instantiate exceptions 2011-06-04 22:33:16 +02:00
Éric Araujo
35a4d01a92 Improve a few docstrings in packaging.
Also beautify import lists.  Having them grouped by lenght makes it slightly
easier to look for a module.
2011-06-04 22:24:59 +02:00
Éric Araujo
088025fc5b Use list constructor or built-in method instead of copy module 2011-06-04 18:45:40 +02:00
Éric Araujo
5d5bde1df2 Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.
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.
2011-06-03 17:28:23 +02:00
Éric Araujo
acf71b89ff Merge packaging doc fix 2011-06-02 16:43:25 +02:00
Éric Araujo
8c86ecdab5 Fix format of warnings from the packaging check command 2011-06-02 14:54:44 +02:00
Éric Araujo
78af7d8392 Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.
This removes the need to call flush manually in each test, except when
testing code that creates warning without checking them.
2011-06-02 14:53:59 +02:00
Tarek Ziade
721ccd0ce1 added the generate-setup action 2011-06-02 12:00:44 +02:00
Éric Araujo
98b6592266 Branch merge 2011-06-01 19:47:06 +02:00
Éric Araujo
25987d0c4b The compiler class for EMX was removed 2011-06-01 15:20:44 +02:00
Éric Araujo
25d5737f15 Fix typos in class names 2011-06-01 14:41:11 +02:00
Éric Araujo
1256a6864e Re-add line that was mistakenly removed alongside RPM support.
This reveals the need for bdist* tests.
2011-05-31 22:38:41 +02:00
Éric Araujo
9deedf696e Re-apply distutils2 changes lost before the merge of packaging.
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.
2011-05-31 18:04:32 +02:00
Éric Araujo
a94bdee2e4 Fix nonsensical name.
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.
2011-05-31 15:05:38 +02:00
Éric Araujo
b4fefc8fa2 Fix test name in debug message 2011-05-31 14:33:32 +02:00
Tarek Ziade
e2655974cf code cleanup in packaging.run 2011-05-31 12:15:42 +02:00
Tarek Ziade
5a5ce388ed make sure we check for write access before starting the install, and add correct exit code 2011-05-31 12:09:34 +02:00
Tarek Ziade
441531f6e6 improved pysetup list UI 2011-05-31 09:18:24 +02:00
Tarek Ziade
f47fa58b62 better UI when the user does not have the perms to remove the project 2011-05-30 23:26:51 +02:00
Tarek Ziade
1cc9bbd751 fixed the test_uninstall patch 2011-05-30 19:16:49 +02:00
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