summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix setup.py register failure with invalid rst in description (#13614).Éric Araujo2012-12-091-11/+23
| | | | Original patch by Julien Courteau and Pierre Paul Lefebvre.
* Ignore .nfs* files in distutils (#7719).Éric Araujo2012-12-082-8/+20
| | | | | | | | These files are created by some NFS clients a file is edited and removed concurrently (see added link in doc for more info). If such a file is removed between distutils calls listdir and copy, it will get confused. Other special files are ignored in sdist (namely VCS directories), but this has to be filtered out earlier.
* Backout buggy patch committed for #13719Éric Araujo2012-03-071-9/+0
|
* Fix NameError from #13719 fixÉric Araujo2012-03-051-0/+1
|
* Make distutils’ upload command work with bdist_msi products (#13719).Éric Araujo2012-03-051-5/+13
| | | | Patch by Ralf Schmitt.
* Set archive format explicitly in one distutils testÉric Araujo2012-02-261-1/+2
|
* Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).Éric Araujo2012-02-252-40/+117
| | | | | | | | | | | | | | | These regex changes fix a number of issues for distutils on Windows: - #6884: impossible to include a file starting with 'build' - #9691 and #14004: sdist includes too many files - #13193: test_filelist failures This commit replaces the incorrect changes done in 0a94e2f807c7 and 90b30d62caf2 to fix #13193; we were too eager to fix the test failures and I did not study the code enough before greenlighting patches. This time we have unit tests from the problems reported by users to be sure we have the right fix. Thanks to Nadeem Vawda for his help.
* Fix test failure for shared builds caused by #1326113 fixÉric Araujo2012-02-151-1/+2
|
* Fix parsing of build_ext --libraries option (#1326113)Éric Araujo2012-02-151-6/+6
|
* Branch mergeÉric Araujo2012-02-051-0/+9
|\
| * Stop ignoring RPMs in distutils' upload command (#2945).Éric Araujo2012-01-151-0/+9
| | | | | | | | | | | | | | Bug reported by Hartmut Goebel and patch contributed by Carl Robben. Carl tested the fix and we have a buildbot with rpm installed, so I’m committing even though I could not run this test (but I do understand the changed code :)
* | Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.Ned Deily2012-02-031-2/+8
|/
* More fixes for PEP 3147 compliance in distutils (#11254)Éric Araujo2011-11-033-55/+84
|
* Cleanups in distutils tests.Éric Araujo2011-11-023-25/+32
| | | | | | | | - Actually check the contents of the file created by bdist_dumb. - Don’t use “RECORD” as filename for non-PEP 376 record file - Don’t start method name with “_test”, it smells like a disabled test method instead of an helper method - Fix some idioms (assertIn, addCleanup)
* Issue #7833: Ext. modules built using distutils on Windows no longer get a ↵Mark Hammond2011-10-171-2/+45
| | | | manifest
* Increase test coverage for distutils.filelist (#11751).Éric Araujo2011-10-111-7/+194
| | | | Patch by Justin Love.
* Add tests for Unicode handling in distutils’ check and register (#13114)Éric Araujo2011-10-092-3/+30
|
* Fix distutils byte-compilation to comply with PEP 3147 (#11254).Éric Araujo2011-10-072-7/+13
| | | | Patch by Jeff Ramnani. Tested with -B, -O and -OO.
* Make C code in one distutils test comply with ISO C (#10359).Éric Araujo2011-10-071-2/+2
| | | | Patch by Hallvard B Furuseth.
* Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.Éric Araujo2011-09-091-0/+14
|
* Slight cleanup in distutils test_dist.Éric Araujo2011-09-091-51/+47
| | | | | I have tests to add in this file and it’s always nice to start from a clean base.
* Warn instead of crashing because of invalid path in MANIFEST.in (#8286).Éric Araujo2011-09-021-1/+27
| | | | | sdist used to crash with a full traceback dump instead of printing a nice warning with the faulty line number.
* Enable catching WARN-level logging messages in distutils' test_sdistÉric Araujo2011-09-021-5/+4
|
* Fix typo (was build) and remove redundancy in docstringÉric Araujo2011-09-011-4/+3
|
* Make bdist_* commands respect --skip-build passed to bdist (#10946)Éric Araujo2011-08-291-21/+27
|
* Branch mergeÉric Araujo2011-08-261-0/+4
|\
| * Issue #12333: fix test_distutils failures under Solaris and derivativesAntoine Pitrou2011-08-251-0/+4
| |
* | Turn two ifs into one in the code I commited a few days agoÉric Araujo2011-08-251-3/+2
|/
* Fix distutils tests on Windows (#12678).Éric Araujo2011-08-233-23/+30
| | | | | | | | | | | | | | | | | | - First, support.fixup_build_ext (already used to set proper library_dirs value under Unix shared builds) gains the ability to correctly set the debug attribute under Windows debug builds. - Second, the filename for the extension module gets a _d suffix under debug builds. - Third, the test code properly puts our customized build_ext object into an internal dictionary to make sure that the install command will later use our object instead of re-creating one. That’s the downside of using low-level APIs in our test code: we have to manually push knobs and turn handles that would otherwise be handled behind the scenes. Thanks to Nadeem for the testing.
* Issue #12678: Fix distutils sdist test on Windows.Nadeem Vawda2011-08-211-0/+1
| | | | Patch by Jeremy Kloth.
* Fix distutils test_install for shared CPython buildsÉric Araujo2011-08-211-0/+1
|
* Factor out the build_ext fixup for shared Python builds.Éric Araujo2011-08-212-25/+33
| | | | I need this to fix the failing test_install.
* Add missing closing paren in docstring (thanks Ezio)Éric Araujo2011-08-211-1/+1
|
* Dedent example in docstringÉric Araujo2011-08-201-3/+3
|
* Add a test for extension modules in the distutils record file.Éric Araujo2011-08-201-0/+33
| | | | | | | I made a note a month ago that install --record wrote incorrect entries for extension modules (I think the problem was that the first character of the file was stripped), so I’m now adding a test to try to reproduce that in the current versions.
* Rework test_record a bit to make the test more exactÉric Araujo2011-08-201-10/+12
|
* Refactor the copying of xxmodule.c in distutils tests (#12141).Éric Araujo2011-08-202-24/+46
| | | | | | | | | I need to copy this file in another test too, so I moved the support code to distutils.tests.support and improved it: - don’t skip when run from the Lib/distutils/tests directory - use proper skip machinery instead of custom print/return/test suite fiddling.
* Fix regression with distutils MANIFEST handing (#11104, #8688).Éric Araujo2011-07-311-6/+33
| | | | | | | | | | | | | | | | | | | | | | The changed behavior of sdist in 3.1 broke packaging for projects that wanted to use a manually-maintained MANIFEST file (instead of having a MANIFEST.in template and letting distutils generate the MANIFEST). The fixes that were committed for #8688 (76643c286b9f by Tarek and d54da9248ed9 by me) did not fix all issues exposed in the bug report, and also added one problem: the MANIFEST file format gained comments, but the read_manifest method was not updated to handle (i.e. ignore) them. This changeset should fix everything; the tests have been expanded and I successfully tested the 2.7 version with Mercurial, which suffered from this regression. I have grouped the versionchanged directives for these bugs in one place and added micro version numbers to help users know the quirks of the exact version they’re using. Initial report, thorough diagnosis and patch by John Dennis, further work on the patch by Stephen Thorne, and a few edits and additions by me.
* Fix closes Issue11439 Remove the SVN keywords from the code as it is no ↵Senthil Kumaran2011-07-281-2/+0
| | | | longer applicable in hg. Patch Contributed by Neil Muller.
* Issue #9516: Correct and expand OS X deployment target tests in distutilsNed Deily2011-06-291-10/+37
| | | | test_build_ext.
* Issue #12141: Install a copy of template C module file so thatNed Deily2011-06-281-1/+10
| | | | | test_build_ext of test_distutils is no longer silently skipped when run outside of a build directory.
* Remove unneeded executable bit on two distutils filesÉric Araujo2011-06-042-0/+0
|
* Merge doc touch-ups and fixes for #9831 and #9223 from 3.1Éric Araujo2011-05-281-6/+10
|\
| * Fix test_build_py when sys.dont_write_bytecode is true (#9831).Éric Araujo2011-05-281-6/+10
| | | | | | | | | | | | | | | | The tests now pass all combinations of -O/-OO and -B. See also #7071 and #6292 for previous variations on the same theme. test_versionpredicate needs a skip when sys.flags.optimize is true, but I don’t know how to make that work with a DocTestSuite.
* | Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-152-2/+69
| | | | | | | | | | | | | | | | | | in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
* | Merge 3.1Éric Araujo2011-04-201-3/+3
|\ \ | |/
| * Fix improper tests in RegisterTestCaseÉric Araujo2011-04-141-3/+3
| |
* | #11565: Merge with 3.1.Ezio Melotti2011-03-163-3/+3
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-163-3/+3
| |
* | Merge fix for issue #11501Antoine Pitrou2011-03-153-5/+60
|\ \ | |/