summaryrefslogtreecommitdiff
path: root/setuptools/tests/config
Commit message (Collapse)AuthorAgeFilesLines
* Improve pyproject.toml validation messages (#3487)Anderson Bravalheri2022-08-061-18/+5
|\
| * Improve pyproject.toml validation messagesAnderson Bravalheri2022-08-041-18/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Based on the following discussions: - https://github.com/pypa/packaging.python.org/pull/1031#issuecomment-1127214128 - https://github.com/pypa/packaging-problems/issues/604 it seems that people are having a hard time finding information about validation error due to the long traceback and debug info. The idea behind this change is to make the most relevant information to fix the error easier to spot.
* | setup.cfg parsing: Refactor _parse_requirements_list and ↵Anderson Bravalheri2022-08-061-2/+2
| | | | | | | | warn_accidental_env_marker_misconfig
* | Add warning for potential extras_require misconfigurationLumir Balhar2022-08-061-0/+45
|/ | | | Fixes: https://github.com/pypa/setuptools/issues/3467
*-. Allow `file` directive for dependencies (#3253, #3255)Anderson Bravalheri2022-06-192-0/+100
|\ \
| | * Allow `file:` for `dependencies` and `optional-dependencies` in pyproject.tomlAarni Koskela2022-04-081-0/+82
| | |
| * | Allow `file:` for `requires` statements in setup.cfgAarni Koskela2022-06-141-0/+18
| | | | | | | | | | | | Refs #1951
* | | test_expand: Add example for annotated assignment without valueAnderson Bravalheri2022-06-191-5/+9
| | |
* | | Add support for annotated assignments to static attribute lookup.Karl Otness2022-06-181-0/+12
|/ / | | | | | | | | | | | | | | When walking the ast of a module, look for AnnAssign nodes in addition to Assign to support assignments with type annotations, for example. Since we have to read different attributes, split the generators into a for loop. Existing ast.Assign nodes follow the same processing as before.
* | Add deprecation messages for `namespace_packages` (#3262)Anderson Bravalheri2022-05-162-3/+23
|\ \
| * | Add deprecation messages for `namespace_packages`.Anderson Bravalheri2022-05-162-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | The docs in https://setuptools.pypa.io/en/latest/userguide/package_discovery.html and https://packaging.python.org/en/latest/guides/packaging-namespace-packages/ suggest that this field is deprecated.
* | | Remove residual dependencies from setup.py when dependencies are set in ↵Anderson Bravalheri2022-05-161-0/+9
|\ \ \ | |/ / |/| | | | | pyproject.toml (#3306)
| * | Capture expectations about overwritten dependencies in testAnderson Bravalheri2022-05-041-0/+9
| | | | | | | | | | | | This is discussed in issue 3300.
* | | do not backfill Project-URL: homepage into Home-page: field (causes ↵wim glenn2022-04-291-8/+15
|/ / | | | | | | duplicates on PyPI). prevent "UNKNOWN" vals from appearing in summary, license, platform. prevent an extra newline getting added in long description
* | Try to rescue the download backing off a few secondsAnderson Bravalheri2022-04-211-2/+8
|/
* Simplify auto-discovered package_dirAnderson Bravalheri2022-04-051-1/+31
| | | | | | | | If the directory follows a src-layout-ish, try harder to make `package_dir` in the form `{"": "src"}`. This might be later important for PEP 660 (e.g. when composing pth files or symlinking the toplevel packages).
* Add test for dynamic readme from setup.py argsAnderson Bravalheri2022-04-041-0/+14
|
* Add comments with instructions for developersAnderson Bravalheri2022-04-012-0/+7
|
* Fix flake8 problemsAnderson Bravalheri2022-04-012-2/+0
|
* Add script that allow users to preload examples for offline testingAnderson Bravalheri2022-04-012-0/+20
|
* Split download helpers to their own fileAnderson Bravalheri2022-04-012-30/+52
|
* Add metatest to make sure auxiliary file is properly packagedAnderson Bravalheri2022-04-011-1/+16
|
* Fix previous detection of empty arraysAnderson Bravalheri2022-03-271-3/+5
|
* Ensure pyproject.toml does not break dynamic install_requiresAnderson Bravalheri2022-03-271-2/+25
|
* Prepare to be strict in the future about entry-points in pyprojectAnderson Bravalheri2022-03-271-25/+39
|
* Improve error/warning messagesAnderson Bravalheri2022-03-271-1/+1
|
* Adequate existing tests for the latest changesAnderson Bravalheri2022-03-271-2/+2
|
* Tests mixed pyproject metadata + config from setup.pyAnderson Bravalheri2022-03-271-2/+48
| | | | With emphasis on the ``dynamic`` behaviour
* Remove left-over debug statementAnderson Bravalheri2022-03-261-1/+0
|
* Remove no longer necessary xfail markAnderson Bravalheri2022-03-261-4/+1
|
* Test popular invalid pyproject patternsAnderson Bravalheri2022-03-261-0/+41
|
* Make sure dynamic classifiers in pyproject.toml don't fail (#3210)Anderson Bravalheri2022-03-254-32/+72
|\
| * Make sure dynamic classifiers don't fail on unexisting filesAnderson Bravalheri2022-03-254-32/+72
| |
* | Test setup.py' include_package_data not ignored when parsing pyprojectAnderson Bravalheri2022-03-251-0/+23
|/
* Change tests for resolve_class to consider different layoutsAnderson Bravalheri2022-03-241-5/+16
| | | | | Although this situation is different from the one described in #3000, that issue served as inspiration behind this change.
* Add unit test for read_attrAnderson Bravalheri2022-03-241-24/+44
| | | | Closes #3176
* Add test for default include-package-data with 'pyproject.toml'Anderson Bravalheri2022-03-221-0/+13
|
* Adequate existing tests to the new errors for auto-discoveryAnderson Bravalheri2022-03-182-16/+27
|
* Add tests for dynamic classifiers on pyproject.tomlAnderson Bravalheri2022-03-171-6/+38
|
* Change pyproject.toml tests to not use dynamic for license/license-filesAnderson Bravalheri2022-03-091-3/+4
|
* Test the behavior of license and license-files in pyproject.tomlAnderson Bravalheri2022-03-091-0/+24
|
* Capture expectations about discovery and attr/cmdclassAnderson Bravalheri2022-03-091-17/+53
| | | | … `pyproject.toml` configs
* Make sure package_dir is populated before processing cmdclass and 'attr:' in ↵Anderson Bravalheri2022-03-091-17/+20
| | | | setup.cfg
* Allow expand.find_packges to fill package_dirAnderson Bravalheri2022-03-091-3/+8
|
* Find namespaces by default when using config in 'pyproject.toml'Anderson Bravalheri2022-03-052-4/+4
|
* Add some type hints to config.setupcfgAnderson Bravalheri2022-03-051-0/+1
|
* Show significant error messages to user and avoid traceback pollutionAnderson Bravalheri2022-03-051-11/+51
|
* Back-fill Description-Content-Type according to readme suffixAnderson Bravalheri2022-03-051-3/+38
| | | | | | | | | | | | According to PEP 621, the backend should fill-in the content-type if the `readme` field is passed as a string. The value is derived from the extension of the file (an error should be raised when that is not possible). Previously all READMEs were wrongly assumed rst. This error was reported in: https://discuss.python.org/t/help-testing-experimental-features-in-setuptools/13821/4
* Add tests against "empty" pyproject.tomlAnderson Bravalheri2022-03-051-0/+11
|
* Avoid failing due to 3rd party config in pyproject.tomlAnderson Bravalheri2022-03-051-0/+18
|