summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename `config` to `config.setupcfg`Anderson Bravalheri2022-03-051-919/+0
| | | | | This will facilitate the implementation of other configuration formats (such as pyproject.toml as initially defined by PEP 621)
* remove lib2to3 usageThomas Grainger2021-09-041-230/+123
|
* globbing for [options.data_files]: Remove special treatment for filenames ↵Alan Fregtman2021-07-211-3/+0
| | | | with globby characters that exist literally.
* Update globbing for [options.data_files] to be implicit, not requiring a ↵Alan Fregtman2021-07-211-3/+6
| | | | custom directive.
* Implement "glob:" directive for declarative "data_files" option.Alan Fregtman2021-06-301-0/+35
|
* Fix formatting of tests and change dash deprecation method nameMelissa Li2021-03-081-8/+8
|
* Apply suggestions in code review.Jason R. Coombs2021-03-061-2/+3
| | | | Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* Test for uppercase metadata warningMelissa Li2021-03-051-0/+18
|
* Add test for dash preserved extras_require in setup.cfgMelissa Li2021-03-021-0/+14
|
* Add test for conversion warningMelissa Li2021-03-021-0/+19
|
* Modify existing tests to be compatible with future underscore changeMelissa Li2021-03-021-2/+2
|
* Merge pull request #2571 from makeroo/mainJason R. Coombs2021-02-251-0/+24
|\ | | | | Correctly parse cmdclass in setup.cfg. Fixes #2570
| * Correctly parse cmdclass in setup.cfg. Fixes #2570Simone Pierazzini2021-02-181-0/+24
| |
* | Update test for case-sensitive entry point namesMelissa Li2021-02-241-16/+0
| |
* | Add case-sensitive entry point name testMelissa Li2021-02-231-0/+34
|/
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-23/+1
|
* Disable test on Python 2.Jason R. Coombs2020-05-161-0/+5
|
* Try constructing the fake package at the beginning of the test.Jason R. Coombs2020-05-161-12/+14
|
* Update test to create separate subpackages. Hoping that avoids issues with ↵Jason R. Coombs2020-05-161-10/+8
| | | | caching.
* Delete packages from sys.modulesJason R. Coombs2020-05-161-0/+5
|
* Alter test so it actually triggers the intended behavior.Jason R. Coombs2020-05-161-2/+2
|
* Extract StaticModule and patch_path helpers.Jason R. Coombs2020-05-161-1/+1
|
* Merge `literal_attr:` functionality into `attr:`John T. Wodder II2020-05-151-53/+1
|
* Implement a "literal_attr:" config directiveJohn T. Wodder II2020-05-151-0/+64
|
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-3/+3
|
* Change coding cookie to use utf-8 (lowercase)Jon Dufresne2019-10-211-1/+1
| | | | | | | | | | | | | | | | | While perfectly valid, the encoding 'UTF-8' (uppercase) is not recognized by the Emacs MULE system. As such, it displays the following warning when opening a file with it used as an encoding cookie: Warning (mule): Invalid coding system ‘UTF-8’ is specified for the current buffer/file by the :coding tag. It is highly recommended to fix it before writing to a file. Some discussion of this can be found at: https://stackoverflow.com/questions/14031724/how-to-make-emacs-accept-utf-8-uppercase-encoding While the post does offer a workaround for Emacs users, rather than ask all to implement it, use the more typical utf-8 (lowercase).
* Add more tests for valid behavior. Expand exception, any should do.Jason R. Coombs2019-09-111-1/+23
|
* Add test capturing failure. Ref #1787.Jason R. Coombs2019-09-111-0/+12
|
* When reading config files, require them to be encoded with UTF-8. Fixes #1702.Jason R. Coombs2019-04-051-22/+9
|
* Feed the hobgoblins (delint).Jason R. Coombs2019-04-051-4/+7
|
* Merge pull request #1180 from ↵Jason R. Coombs2019-01-271-2/+73
|\ | | | | | | | | 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-8/+242
| |\
| * | improve encoding handling for `setup.cfg`Benoit Pierre2017-10-251-2/+63
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | add test to ensure `setup.cfg` interpolation behavior remain unchangedBenoit Pierre2017-10-251-0/+10
| | |
* | | Feed the hobgoblins (delint).Jason R. Coombs2019-01-261-6/+10
| |/ |/|
* | Add explicit test for license in setup.cfgPaul Ganssle2018-12-291-0/+20
| |
* | 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 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.
* | Rename find_namepaces_ns to find_namespace_packages (#1423)Carsten Klein2018-08-171-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #1419 PEP420: add find_namespace: directive * fix #1419 PEP420: add find_namespace: directive to documentation * fix #1419 PEP420: add tests * fix #1419 PEP420: clean up code * fix #1419 PEP420: fix typo in documentation * fix #1419 PEP420: fix typo in documentation * fix #1419 PEP420: clean up code * fix #1419 PEP420: add changelog entry * fixup! fix #1419 PEP420: add tests * fix #1419 PEP420: cleanup code refactor markers * #1420: Rename find_namespace_ns to find_namespace_packages * #1420: update changelog entry
* | Merge pull request #1343 from ianw/long-descr-typeJason R. Coombs2018-05-181-1/+42
|\ \ | | | | | | Allow setting long_description_content_type externally
| * | Allow setting long_description_content_type externallyIan Wienand2018-05-171-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tools, such as PBR, might want to set long_description_content_type during the parent object's Distribution.__init__() call (during distutils setup_keywords entry points). However, that field is currently unconditionally overwritten after these calls, erasing the value. We would rather not duplicate the existing method of copying into dist.metadata as done with project_urls. This preserves the fields within Distribution.metadata described by self._DISTUTIULS_UNUPPORTED_METADATA, or otherwise takes it from arguments. A test case that simulates setting the long description and overriding the arguments is added.
* | | Fix attr: with package_dirsJeremy Bowman2018-05-151-3/+50
|/ /
* | Support loading version from a fileJeremy Bowman2018-05-151-0/+17
| |
* | Updates for PEP 566 (Metadata 2.1)Dustin Ingram2018-03-141-0/+1
| |
* | Merge branch 'master' into masterJason R. Coombs2018-01-041-0/+2
|\ \
| * | Add setup.cfg support for long_description_content_type (in line with docs).Henk-Jaap Wagenaar2017-11-211-0/+2
| |/
* | Support PEP 345 Project-URL metadataJeremy Stanley2017-11-221-0/+16
|/ | | | | | | | | | | 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
* Avoid interaction of multiple factors in test.Jason R. Coombs2017-08-281-1/+1
| | | If one wishes to test both 'mixed' and 'sandboxed', let's create a separate test for that, but it's probably unnecessary.
* Support list of files passed to `file:` directiveSviatoslav Sydorenko2017-08-281-8/+2
| | | | | * `file:` not accepts comma-separated list of filenames * files' contents are glues with an LF separator
* Allow adding few files @ metadata.long_descriptionSviatoslav Sydorenko2017-08-281-0/+24
|