aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
Commit message (Collapse)AuthorAgeFilesLines
* Initial attempt to fall back to PyOpenSSL when built-in SSL is inadequate. ↵feature/pyopenssl-fallbackJason R. Coombs2018-12-131-1/+31
| | | | Ref #1320
* Fix the testsPaul Moore2018-11-141-2/+2
|
* Backend should not say that setuptools is needed to buildPaul Moore2018-11-141-2/+2
|
* add a test to catch unvendored dependenciesBenoit Pierre2018-11-131-0/+12
|
* import internal version of sixOleg Sharov2018-11-133-6/+5
|
* Fix issue with missing author metadataPaul Ganssle2018-11-122-2/+18
| | | | | Prior to this patch, if the author or author_email were omitted from `setup`, a malformed `PKG-INFO` would be created.
* Remove bdist_rpm and bdist_dumb commentPaul Ganssle2018-11-122-28/+2
| | | | | | | 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-072-3/+14
| | | | | | | 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-072-0/+22
| | | | | 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-072-0/+27
| | | | | | | | 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 an in-memory IO object instead of a temp filePaul Ganssle2018-11-071-6/+9
| | | | | | Rather than writing to a file in a temporary directory, we can write to and read from an in-memory buffer, now that the encoding functionality in write_pkg_file is fixed.
* Use write_field in write_pkg_filePaul Ganssle2018-11-071-20/+26
| | | | | | This creates a wrapper function for writing fields in the PKG-INFO file, both to simplify the syntax and to add a point where we can inject an encoding function in order to support Python 2.7 compatibility.
* Add test for read_pkg_filePaul Ganssle2018-11-071-0/+96
|
* Use get_metadata_version in upload_filePaul Ganssle2018-11-072-2/+1
| | | | | | | Previously this value was hard-coded to '1.0', which was inaccurate for many packages. Fixes #1381
* Start patching DistributionMetadata.read_pkg_filePaul Ganssle2018-11-072-19/+26
| | | | | | | | | This turns get_metadata_version into a method on DistributionMetadata, populated either by inferrence (in the case of package metadata specified in `setup`) or from the data in a specified PKG-INFO file. To populate metadata_version from PKG-INFO, we need to monkey patch read_pkg_file in addition to write_pkg_file.
* Store metadata version on metadata objectPaul Ganssle2018-11-071-2/+6
|
* Add failing test for issue #1381Paul Ganssle2018-11-071-0/+59
|
* Add DistributionMetadata.read_pkg_filePaul Ganssle2018-11-071-0/+53
| | | | | This is the baseline, unchanged from the version in distutils.dist, to be modified before patching.
* Add upload_file to setuptools.command.uploadPaul Ganssle2018-11-071-1/+146
|
* Merge pull request #1572 from pganssle/import_futures_test_reqsPaul Ganssle2018-11-041-2/+3
|\ | | | | Add futures and backport to Python 2.7 test requirements
| * Add futures backport to test reqsPaul Ganssle2018-11-021-2/+3
| | | | | | | | | | | | | | | | `setuptools.tests.test_build_meta` relies on the Python 3 feature `concurrent.futures` to run, and as a result has been silently skipped in Python 2.7. This adds the `futures` backport to the 2.7 test requirements and turns the `pytest.importorskip` invocations in test_build_meta into standard import statements.
* | Test that manifest can exclude setup.pyPaul Ganssle2018-11-031-0/+21
| |
* | Add setup.py to egg-info by defaultShashank Singh2018-11-021-0/+6
| | | | | | | | Fixes GH issue #1506
* | Add tests for setup.py inclusionShashank Singh2018-11-023-4/+70
|/ | | | | | This tests that `setup.py` is included by default in the distribution with the egg_info command and when an sdist is built with build_meta.build_sdist
* Merge pull request #1541 from smenon8/deprecate-requiresPaul Ganssle2018-10-292-1/+38
|\ | | | | Deprecate the requires keyword
| * Merge branch 'master' into deprecate-requiresSreejith Menon2018-10-281-19/+27
| |\
| * | Deprecate the requires keywordSreejith Menon2018-10-272-1/+37
| | | | | | | | | | | | | | | | | | | | | For runtime dependencies, install_requires should be used. For build dependencies, a PEP 518-compliant `pyproject.toml` should be used. Other dependencies can use extra requirements.
* | | Add unit tests for setuptools deprecation warningsrobinjhuang2018-10-283-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | These are tests to ensure that the specified deprecation warnings are raised when the functions are called. Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
* | | Add custom deprecation warning classesJunhan Huang2018-10-285-8/+36
| |/ |/| | | | | | | | | | | | | | | | | | | `DeprecationWarning` is not visible by default in the latest versions of CPython, so this switches the deprecation warnings in setuptools and pkg_resources over to custom classes derived from `Warning` instead. Fixes issue github issue #159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
* | Inline variableJason R. Coombs2018-10-281-4/+1
| |
* | Extract _get_option function for getting an option from getter or attribute.Jason R. Coombs2018-10-281-9/+14
| |
* | Feed the hobgoblins (delint).Jason R. Coombs2018-10-281-6/+11
|/
* Remove pytest marker and code for Python < 2.7Nikolaus Waxweiler2018-10-272-7/+0
|
* Mark Py 2/3-only tests as skip instead of xfailNikolaus Waxweiler2018-10-275-6/+6
| | | | | Also reuse pre-defined py2_only and py3_only decorators where appropriate.
* Merge pull request #1520 from ssato/data_files_2Jason R. Coombs2018-10-252-0/+25
|\ | | | | Add data_files support in setup.cfg
| * Add data_files support in setup.cfg with test caseSatoru SATOH2018-10-242-0/+25
| | | | | | | | | | | | In the test case, dist.data_files needs to be sorted because the current implementation loads the configuration files as a dictionary with arbitrary order on Python < 3.6.
* | Drop use of six.u (#1517)Thirumal Venkat2018-10-231-1/+1
|/
* Deprecate Subversion download functionality. Ref #1502. Used UserWarning ↵Jason R. Coombs2018-09-231-0/+2
| | | | instead of DeprecationWarning so it's visible to users who might be relying on this functionality.
* Suppress Unbuild egg warnings in TestPTHFileWriterJason R. Coombs2018-09-231-0/+1
|
* Update tests to remove use of deprecated get_script_headerJason R. Coombs2018-09-231-5/+5
|
* Replace redundant code with call of that code.Jason R. Coombs2018-09-231-3/+1
|
* Use stacklevel=2 to better reveal usage of deprecated calls.Jason R. Coombs2018-09-231-1/+1
|
* Use preferred interface, fixing DeprecationWarning on later Pythons.Jason R. Coombs2018-09-231-2/+1
|
* Ignore warnings about deprecated features.Jason R. Coombs2018-09-231-0/+1
|
* Capture expected warningJason R. Coombs2018-09-231-1/+3
|