summaryrefslogtreecommitdiff
path: root/setuptools/tests/config
Commit message (Collapse)AuthorAgeFilesLines
* Adjust apply_pyproject testsAnderson Bravalheri2023-05-031-0/+13
|
* Minor adjustments in apply_pyproject.tomldev/egg_info_requiresAnderson Bravalheri2023-05-031-1/+1
|
* Overhaul for better visibility of warnings (#3849)Anderson Bravalheri2023-04-202-16/+10
|\
| * Use new warnings in setuptools/config/setupcfg.pyAnderson Bravalheri2023-03-071-15/+9
| |
| * Use new warnings in setuptools/config/_apply_pyprojecttoml.pyAnderson Bravalheri2023-03-071-1/+1
| |
| * Import SetuptoolsDeprecationWarning from setuptools.warningsAnderson Bravalheri2023-03-062-2/+2
| |
* | Update code generated by validate-pyproject (#3875)Anderson Bravalheri2023-03-281-18/+41
|\ \
| * | Improve tests on license-files for pyproject.tomlAnderson Bravalheri2023-03-281-18/+41
| |/
* | Test warnings for dynamic scripts when entry-points is not dynamicAnderson Bravalheri2023-03-201-0/+12
|/
* Update test expectations to match new packaging versionAnderson Bravalheri2023-01-231-0/+20
|
* Fix version syntax in test_nowarn_accidental_env_marker_misconfigMichał Górny2023-01-211-2/+2
| | | | | | | | | | Fix the two "marker"-alike cases (for package `python_version`) for test_nowarn_accidental_env_marker_misconfig to use `<3` rather than `<'3'`. The latter maps to the version `'3'` which is not a valid version and therefore causes an error with packaging-22.0+. See the discussion at https://github.com/pypa/setuptools/commit/506e7e7e1cac6a5d534184d35a20a73e9dd58045#r97577660
* Add a test for maintainers w/ international emailsSviatoslav Sydorenko2022-11-101-10/+51
| | | | | | | | | | | | The current `email.headerregistry.Address` implementation only allows RFC 5322 but the world is slowly moving towards supporting the international emails too. This patch adds a test case that is currently expected to fail but hopefully should pass once the support for RFC 6532 is implemented in the standard library. Refs: * https://datatracker.ietf.org/doc/html/rfc6532 * https://en.wikipedia.org/wiki/International_email
* Ensure pyproject.toml accepts UTF-8 in maintainersAnderson Bravalheri2022-11-091-2/+19
|
*-. Merge PRs #3636 #3634 #3633 #3595 #3576 #3569 #3564Anderson Bravalheri2022-10-141-0/+9
|\ \
| * | Catch an edge case in expand._assert_local()Mike Salvatore2022-09-181-0/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Using str.startswith() has an edge case where someone can access files outside the root directory. For example, consider the case where the root directory is "/home/user/my-package" but some secrets are stored in "/home/user/my-package-secrets". Evaluating a check that "/home/user/my-package-secrets".startswith("/home/user/my-package") will return True, but the statement's intention is that no file outside of "/home/user/my-package" can be accessed. Using pathlib.Path.resolve() and pathlib.Path.parents eliminates this edge case.
* | expand: Give bytes to ast.parse to let it discover encoding cookie.Julien Palard2022-09-271-0/+14
|/
* 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
|/