summaryrefslogtreecommitdiff
path: root/setuptools/tests
Commit message (Collapse)AuthorAgeFilesLines
* Feed the hobgoblins (delint).Jason R. Coombs2019-01-021-4/+6
|
* Merge pull request #1559 from RajdeepRao/BUG-1551Paul Ganssle2018-12-312-2/+53
|\ | | | | Disallow files for license inputs
| * Add explicit test for license in setup.cfgPaul Ganssle2018-12-291-0/+20
| |
| * Change how license field ValueError is testedPaul Ganssle2018-12-291-6/+14
| | | | | | | | | | | | | | Both the old and new approaches are deeply unsatisfying to me, but without reworking how these test commands are run, I think this is about as close as we can get to enforcing that this specific call raises ValueError.
| * Disallow files for license inputsrajdeep2018-12-291-1/+24
| | | | | | | | | | | | | | | | | | | | | | The ability to handle files was originally added and documented based on a misunderstanding of what the `license` field should include. The field should be the name of the license, not the full text. It is likely that anyone actually using this was outputing malformed PKG-INFO files, because most license files contain newlines. See GH issue #1551
* | Remove unused importJason R. Coombs2018-12-291-1/+0
|/
* Assert that warning is raised with svn downloadsPaul Ganssle2018-12-281-2/+4
| | | | | This both prevents the warning from surfacing during the tests and ensures that no regressions occur.
* Add test for download_svn, improving coverage on patchJason R. Coombs2018-12-151-0/+16
|
* Merge pull request #1544 from kanikas3/added-unittest-download-gitJason R. Coombs2018-12-141-0/+39
|\ | | | | added unittest for _download_git
| * Call index.download, covering more code. Split test into two.Jason R. Coombs2018-12-141-25/+28
| |
| * added unittest for _download_gitKanika Sabharwal2018-10-271-0/+36
| |
* | Fix the testsPaul Moore2018-11-141-2/+2
| |
* | add a test to catch unvendored dependenciesBenoit Pierre2018-11-131-0/+12
| |
* | import internal version of sixOleg Sharov2018-11-132-3/+2
| |
* | Fix issue with missing author metadataPaul Ganssle2018-11-121-0/+16
| | | | | | | | | | 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-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 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.
* | Add test for read_pkg_filePaul Ganssle2018-11-071-0/+96
| |
* | 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
| |
* | 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 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-291-0/+17
|\ \ | | | | | | Deprecate the requires keyword
| * | Deprecate the requires keywordSreejith Menon2018-10-271-0/+17
| |/ | | | | | | | | | | | | 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>
* 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.
* Add data_files support in setup.cfg with test caseSatoru SATOH2018-10-241-0/+17
| | | | | | 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.
* 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
|
* Ignore warnings about deprecated features.Jason R. Coombs2018-09-231-0/+1
|
* Capture expected warningJason R. Coombs2018-09-231-1/+3
|
* Add tests exposing the issues with sdist_directory not being --dist-dirBernat Gabor2018-09-161-1/+35
|
* Merge pull request #1402 from ↵Jason R. Coombs2018-09-161-8/+33
|\ | | | | | | | | daa/pkg-resources-always-handle-namespace-package-path Improved handling of module __path__ attribute for namespace packages, fixes #1321
| * remove xfail for AppVeyor from namespace tests entirelyAlexander Duryagin2018-08-211-4/+0
| |
| * remove xfail for namespace tests that actually pass in AppVeyorAlexander Duryagin2018-08-211-13/+1
| |
| * change formatting to fix flake8 warningAlexander Duryagin2018-08-171-2/+4
| |
| * xfail namespace packages tests on appveyor instead of skipping themAlexander Duryagin2018-08-171-8/+16
| |
| * always process module.__path__ for namespace packages, fixes #1321Alexander Duryagin2018-06-271-0/+31
| |
* | Merge pull request #1427 from stephenfin/touch-egg-info-directoryJason R. Coombs2018-09-161-0/+17
|\ \ | | | | | | Touch 'egg-info' directory