aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_egg_info.py
Commit message (Collapse)AuthorAgeFilesLines
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-21/+27
|
* Remove DALS for single-line stringsMick Koch2019-10-281-40/+40
|
* Add support for `license_files` option in metadataMick Koch2019-10-281-0/+198
|
* Added test for metadata-version 1.2Bastian Venthur2019-05-161-0/+1
|
* Merge branch 'master' into license-fix-357Jason R. Coombs2019-01-271-4/+99
|\
| * Merge pull request #1180 from ↵Jason R. Coombs2019-01-271-0/+46
| |\ | | | | | | | | | | | | benoit-pierre/fix_889_and_non-ascii_in_setup.cfg_take_2 improve encoding handling for `setup.cfg`
| | * Merge branch 'master' into fix_889_and_non-ascii_in_setup.cfg_take_2Jason R. Coombs2019-01-251-56/+210
| | |\
| | * | improve encoding handling for `setup.cfg`Benoit Pierre2017-10-251-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support the same mechanism as for Python sources for declaring the encoding to be used when reading `setup.cfg` (see PEP 263), and return the results of reading it as Unicode. Fix #1062 and #1136.
| * | | Feed the hobgoblins (delint).Jason R. Coombs2019-01-261-2/+3
| | |/ | |/|
| * | 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
| * | Add tests for setup.py inclusionShashank Singh2018-11-021-1/+15
| | | | | | | | | | | | | | | | | | 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
| * | Add unit tests for setuptools deprecation warningsrobinjhuang2018-10-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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 unnecessary parameters from the testDeniz Taneli2018-11-101-6/+2
| | |
* | | Address review commentsDeniz Taneli2018-11-101-0/+2
| | |
* | | Make the new tests parametrizedDeniz Taneli2018-10-281-60/+19
| | |
* | | Unit tests for installing licenses from setup.cfg (#357)Deniz Taneli2018-10-271-0/+92
|/ / | | | | | | Co-Authored-By: Poyzan Nur Taneli <31743851+ptaneli@users.noreply.github.com>
* | Merge pull request #1427 from stephenfin/touch-egg-info-directoryJason R. Coombs2018-09-161-0/+17
|\ \ | | | | | | Touch 'egg-info' directory
| * | egg_info: Touch 'egg-info' directoryStephen Finucane2018-08-191-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'tox' determines whether a package should be rebuilt by comparing the timestamp of the package's 'egg-info' directory and its 'setup.py' or 'setup.cfg' files [1][2]. Unfortunately this checks the 'egg-info' directory itself, which is not updated, unlike the contents of that directory. This means that 'tox' will always rebuild the package once one of the two setup files has been updated. While this is clearly a bug in 'tox' that should be fixed separately, there is merit in using this as a heuristic so enable it. [1] https://github.com/tox-dev/tox/blob/3.1.0/src/tox/venv.py#L253-L257 [2] https://github.com/tox-dev/tox/blob/3.1.0/src/tox/venv.py#L221-L244 Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | setuptools: fix regression with `egg_info` commandBenoit Pierre2018-08-211-0/+16
|/ / | | | | | | Ensure version is tagged only once.
* | Use Python 3 syntax for new-style clasessJason R. Coombs2018-06-031-2/+4
| |
* | Drop support for EOL Python 3.3Hugo2018-05-241-1/+1
| |
* | Tests in test_egg_info no longer invoke 'setup.py install', but instead ↵Jason R. Coombs2018-05-161-39/+11
| | | | | | | | focus on the behavior in egg_info as the namesake suggests.
* | Don't require network in testsJeremy Bowman2018-05-161-8/+8
| |
* | tests: Add regression test for #1081Stephen Finucane2018-03-261-0/+12
| | | | | | | | | | | | | | This ensures we don't unknowingly change the behavior of this again. Signed-off-by: Stephen Finucane <stephen@that.guru> Fixes: #1307
* | provide a failing test case for regression introduced in b2ea3c4a - spurious ↵wim glenn2018-03-161-0/+17
| | | | | | | | "Provides-Extra:" generated in metadata
* | Updates for PEP 566 (Metadata 2.1)Dustin Ingram2018-03-141-0/+19
| |
* | Merge branch 'master' into masterJason R. Coombs2018-01-041-7/+35
|\ \
| * | Add test asserting that install_requires parameters cannot be unordered. Ref ↵Jason R. Coombs2017-11-251-14/+11
| | | | | | | | | | | | #458.
| * | Add another test demonstrating that if requirements are declared in a ↵Jason R. Coombs2017-11-251-0/+14
| | | | | | | | | | | | non-deterministic order, they may appear in the metadata in non-deterministic order. Ref #458.
| * | Add two tests demonstrating that requires.txt generation is deterministic. ↵Jason R. Coombs2017-11-251-0/+14
| | | | | | | | | | | | Ref #458.
| * | Cleanup indentationJason R. Coombs2017-11-251-7/+10
| | |
* | | Support PEP 345 Project-URL metadataJeremy Stanley2017-11-221-0/+30
|/ / | | | | | | | | | | | | | | | | | | | | By including one or more Project-URL entries in PKG-INFO metadata, PyPI can display helpful hyperlinks in a generic manner. Add support here to be able to pass it through setup.cfg and setup.py with a project_urls dict. See the corresponding section of the Core Metadata Specifications from the Python Packaging User Guide for details: https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
* | Merge branch 'master' into drop-py26Jason R. Coombs2017-11-191-2/+4
|\|
| * Clean up resource warnings during testsJon Dufresne2017-09-161-2/+4
| | | | | | | | | | | | | | | | | | | | When tests are invoked with the Python flag -Wall, warnings appear in the form of: ResourceWarning: unclosed file ... Close all files and resources deterministically to avoid such warnings. Most often, easiest to do using a context manager.
* | Merge branch 'master' into drop-py26Jason R. Coombs2017-09-031-36/+249
|\|
| * Add test_long_description_content_typeMarc Abramowitz2017-08-281-0/+25
| | | | | | | | | | | | | | | | | | Test that specifying a `long_description_content_type` keyword arg to the `setup` function results in writing a `Description-Content-Type` line to the `PKG-INFO` file in the `<distribution>.egg-info` directory. `Description-Content-Type` is described at https://github.com/pypa/python-packaging-user-guide/pull/258
| * fix requires handling when using setup.cfgBenoit Pierre2017-08-021-141/+193
| |
| * do not strip empty sections in `extras_require`Benoit Pierre2017-07-251-0/+18
| |
| * Revert "fix `install_requires` handling of extras"Benoit Pierre2017-07-231-6/+36
| | | | | | | | This reverts commit a3ec721ec1e70f1f7aec6c3349ad85b446410809.
| * fix `install_requires` handling of extrasBenoit Pierre2017-07-151-1/+32
| | | | | | | | | | | | Internally move requirements in `install_requires` that are using extras to `extras_require` so those extras don't get stripped when building wheels.
| * fix `extras_require` handlingBenoit Pierre2017-07-151-4/+43
| | | | | | | | | | Allow requirements of the form `"extra": ["barbazquux; {marker}"]` by internally converting them to `"extra:{marker}": ["barbazquux"]`.
| * DelintJason R. Coombs2017-07-131-1/+1
| |
| * extract variable for expected_requires.Jason R. Coombs2017-07-131-4/+5
| |
| * Extract the creation of the mismatch marker.Jason R. Coombs2017-07-131-13/+21
| |
| * Restore test that includes an environment marker.Jason R. Coombs2017-07-131-0/+6
| |
| * fix handling of environment markers in `install_requires`Benoit Pierre2017-07-131-5/+10
| |
| * Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-241-1/+1
| | | | | | | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
| * Strip out vendored packages and require them instead. Ref #581.Jason R. Coombs2017-01-011-1/+1
| |
| * Drop support for 'tag_svn_version' distribution option. Fixes #619.Jason R. Coombs2017-01-011-5/+2
| |