aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_upload.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove "upload" and "register" commands.Paul Ganssle2019-11-021-201/+10
| | | | | | The upload and register commands were deprecated over a year ago, in July 2018 (PR GH-1410, discussed in issue GH-1381). It is time to actively remove them in favor of twine.
* Remove unused importJason R. Coombs2018-12-291-1/+0
|
* import internal version of sixOleg Sharov2018-11-131-1/+1
|
* Remove bdist_rpm and bdist_dumb commentPaul Ganssle2018-11-121-20/+0
| | | | | | | This comment is not used anywhere and `platform.dist()` is deprecated. See CPython PR #10414: https://github.com/python/cpython/pull/10414 and bpo-35186: https://bugs.python.org/issue35186
* Fix show_response behavior on Python 2Paul Ganssle2018-11-071-0/+9
| | | | | | | The `upload.show_response` feature was not added until Python 3. Rather than backport it, it is now enabled only if supported. This also adds a "smoke test" for the feature.
* Fix bdist_rpm and bdist_dumb in upload_filePaul Ganssle2018-11-071-0/+21
| | | | | This fixes uploads when bdist_rpm or bdist_dumb are the command, both of which insert a comment about what platform they are built for.
* Fix gpg signature code in upload_filePaul Ganssle2018-11-071-0/+26
| | | | | | | | This fixes an issue where `distutils.spawn.spawn` was not available in the ported upload_file, which is only used when signing the data. This also adds a test that the gpg signature command is invoked and included in the uploaded data.
* Add test for OSError in upload_filePaul Ganssle2018-11-071-0/+10
|
* Add test for HTTPError in upload_filePaul Ganssle2018-11-071-0/+20
|
* Add test for invalid URLs in upload_filePaul Ganssle2018-11-071-1/+18
|
* Use the patched_upload fixture in upload_metadataPaul Ganssle2018-11-071-21/+6
| | | | | `test_upload_metadata` was written before the fixture, so this updates the test to use the fixture.
* Add upload fixturePaul Ganssle2018-11-071-0/+45
| | | | | This is a fixture to create an upload command with a patched version of urlopen so that no HTTP queries are sent.
* Use get_metadata_version in upload_filePaul Ganssle2018-11-071-1/+0
| | | | | | | Previously this value was hard-coded to '1.0', which was inaccurate for many packages. Fixes #1381
* Add failing test for issue #1381Paul Ganssle2018-11-071-0/+59
|
* Tests for deprecation warningsDustin Ingram2018-07-081-0/+43