Commit graph

525 commits

Author SHA1 Message Date
Michael Felt
ed57e13df6 bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)
Command line options for the xlc compiler behave differently from gcc and clang,
so skip this test case for now when xlc is the compiler.

Patch by aixtools (Michael Felt)
2018-12-29 00:03:17 +10:00
Victor Stinner
17d0c0595e
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
2018-12-18 16:17:56 +01:00
Serhiy Storchaka
67a93b3a0b
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
Serhiy Storchaka
24b447edf2
Use in-memory streams instead of NamedTemporaryFile. (GH-9508) 2018-09-23 14:10:07 +03:00
Serhiy Storchaka
4b860fd777
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)
Use "backslashreplace" instead of "unicode-escape".  It is not
implementation depended and escapes only non-encodable characters.

Also simplify the code.
2018-09-23 09:12:59 +03:00
Steve Dower
f14c28f397
bpo-34011: Fixes missing venv files and other tests (GH-9458) 2018-09-20 13:38:34 -07:00
Victor Stinner
39487196c8
bpo-34530: Fix distutils find_executable() (GH-9049)
distutils.spawn.find_executable() now falls back on os.defpath if the
PATH environment variable is not set.
2018-09-04 11:01:09 +02:00
Bo Bayles
2fc98ae115 bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)
Patch by Bo Bayles.
2018-01-25 19:02:03 -05:00
Neil Schemenauer
8837dd092f
bpo-19610: Warn if distutils is provided something other than a list to some fields (#4685)
* Rather than raise TypeError, warn and call list() on the value.

* Fix tests, revise NEWS and whatsnew text.

* Revise documentation, a string is okay as well.

* Ensure 'requires' and 'obsoletes' are real lists.

* Test that requires and obsoletes are turned to lists.
2017-12-04 18:58:12 -08:00
Berker Peksag
dcaed6b2d9
bpo-19610: setup() now raises TypeError for invalid types (GH-4519)
The Distribution class now explicitly raises an
exception when 'classifiers', 'keywords' and
'platforms' fields are not specified as a list.
2017-11-23 21:34:20 +03:00
xdegaye
d34d8fc24f
bpo-29185: Fix test_distutils failures on Android (GH-4438)
* Run gzip with separate command line options (Android understands  '-f9' as the name of a file).
* Creation of a hard link is controled by SELinux on Android.
2017-11-18 18:17:16 +01:00
Steve Dower
05f01d8525 bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632) 2017-09-07 11:49:23 -07:00
Zachary Ware
49ce74efe8 Remove all mention of Windows IA-64 support (GH-3389)
It was mostly removed long ago.
2017-09-06 15:45:25 -07:00
Benjamin Peterson
069306312a remove IRIX support (closes bpo-31341) (#3310)
See PEP 11.
2017-09-04 16:36:05 -07:00
Victor Stinner
92fd6c9ef5 bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380)
BuildExtTestCase of test_distutils now uses support.temp_cwd() in
setUp() to remove files created in the current working in all
BuildExtTestCase unit tests, not only test_build_ext().

Move also tearDown() just after setUp().
2017-05-02 13:11:50 +02:00
Victor Stinner
f6448e5d65 bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278)
test_build_ext() of test_distutils now uses support.temp_cwd() to
prevent the creation of a pdb file in the current working directory
on Windows.
2017-04-25 02:11:09 +02:00
Martin Panter
fff07e34fa Merge spelling and grammar from 3.5 2016-12-18 05:37:21 +00:00
Martin Panter
2f9171d900 Fix spelling and grammar in code comments and documentation 2016-12-18 01:23:09 +00:00
Xavier de Gaye
dfc13e069a Issue 26931: Skip the test_distutils tests using a compiler executable
that is not found
2016-11-17 09:00:19 +01:00
Serhiy Storchaka
cb637fa231 Some distutils tests require zlib for creating tar.gz source distribution. 2016-10-23 22:58:06 +03:00
Serhiy Storchaka
0211bb78fd Some distutils tests require zlib for creating tar.gz source distribution. 2016-10-23 22:56:14 +03:00
Berker Peksag
b5bb404cca Issue #28222: Don't fail if pygments is not available
We can't just skip the test if docutils is available,
but pygments is not because the purpose of the test
was testing a bug in _check_rst_data().
2016-10-04 20:54:44 +03:00
Berker Peksag
d3dbba4174 Issue #28222: Merge from 3.5 2016-10-04 20:55:26 +03:00
Benjamin Peterson
095e32bfc5 merge 3.5 (#1703178) 2016-09-28 23:17:04 -07:00
Benjamin Peterson
4254e8c548 build_ext: correctly parse the link_objects user option (closes #1703178)
Patch by Valerie Lambert.
2016-09-28 23:13:58 -07:00
Serhiy Storchaka
bd48d27944 Issue #22493: Inline flags now should be used only at the start of the
regular expression.  Deprecation warning is emitted if uses them in the
middle of the regular expression.
2016-09-11 12:50:02 +03:00
Martin Panter
0be894b2f6 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
Jason R. Coombs
b44c849de4 Merge backout for test suite fix 2016-09-01 21:59:46 -04:00
Jason R. Coombs
8ac147d6ee Backed out changeset cc86e9e102e8 2016-09-01 21:55:22 -04:00
Jason R. Coombs
65e3319283 Issue #12285: Merge with 3.4 2016-09-01 21:15:04 -04:00
Jason R. Coombs
9650b19212 Merge backout for test suite fix 2016-09-01 22:00:03 -04:00
Jason R. Coombs
75fbf87d73 Issue #12885: Merge with 3.5 2016-09-01 21:16:32 -04:00
R David Murray
8890bb2264 #27904: fix distutils tests.
Patch by Ville Skyttä.
2016-08-31 11:39:35 -04:00
Raymond Hettinger
15f44ab043 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-08-30 10:47:49 -07:00
Donald Stufft
2af36ac04f Merge 3.5 2016-08-03 18:49:46 -04:00
Donald Stufft
ef330d35c8 Merge 3.4 2016-08-03 18:49:19 -04:00
Donald Stufft
c6c2217f27 Merge 3.3 2016-08-03 18:48:17 -04:00
Donald Stufft
fb7929044a Switch upload.pypi.io to upload.pypi.org 2016-08-03 18:43:38 -04:00
Xavier de Gaye
d141531eb5 Issue #27472: Add test.support.unix_shell as the path to the default shell. 2016-07-22 12:15:29 +02:00
Martin Panter
702f4f5d6f Issue #23804: Merge spelling and NEWS fixes from 3.5 2016-07-11 12:54:44 +00:00
Martin Panter
204bf0b9ae English spelling and grammar fixes 2016-07-11 07:51:37 +00:00
Donald Stufft
77e8408346 merge 3.5 2016-07-06 17:50:21 -04:00
Donald Stufft
a1fc45ae73 Fix a test with the new upload URL 2016-07-06 17:46:37 -04:00
Benjamin Peterson
961900ad85 merge 3.5 2016-07-06 14:00:46 -07:00
Benjamin Peterson
9409b4aa8f merge 3.4 2016-07-06 14:00:38 -07:00
Donald Stufft
ad04a85aff Switch to the new upload url for PyPI 2016-07-06 16:18:39 -04:00
Donald Stufft
188c118ba5 Switch to the new upload url for PyPI 2016-07-06 15:27:35 -04:00
Berker Peksag
606e5a6efe Merge from 3.5 2016-06-24 08:48:46 +03:00
Berker Peksag
91d53e7b20 Make PyPIRCCommandTestCase derive from a base class
Several test cases in distutils use PyPIRCCommandTestCase as
their base class and as a result of that the following tests
were ran more than once:

* test_server_registration
* test_server_empty_registration
* test_config_interpolation

This commit moves the infrastructure used by other tests
into a new BasePyPIRCCommandTestCase class.
2016-06-24 08:48:27 +03:00
Berker Peksag
4335437506 Issue #20120: Merge from 3.5 2016-06-20 21:42:05 +03:00