summaryrefslogtreecommitdiff
path: root/setuptools/config
Commit message (Collapse)AuthorAgeFilesLines
* Minor adjustments in apply_pyproject.tomldev/egg_info_requiresAnderson Bravalheri2023-05-031-3/+3
|
* Remove redundant URL partAnderson Bravalheri2023-04-241-1/+1
|
* Overhaul for better visibility of warnings (#3849)Anderson Bravalheri2023-04-205-93/+115
|\
| * Cluster deprecations due_dateAnderson Bravalheri2023-03-072-3/+3
| |
| * Use new warnings in setuptools/config/setupcfg.pyAnderson Bravalheri2023-03-071-36/+57
| |
| * Use new warnings in setuptools/config/pyprojecttoml.pyAnderson Bravalheri2023-03-071-22/+20
| |
| * Use new warnings in setuptools/config/expand.pyAnderson Bravalheri2023-03-071-2/+2
| |
| * Use new warnings in setuptools/config/_apply_pyprojecttoml.pyAnderson Bravalheri2023-03-071-21/+17
| |
| * Use new warnings in setuptools/config/__init__.pyAnderson Bravalheri2023-03-071-11/+18
| |
| * Import SetuptoolsDeprecationWarning from setuptools.warningsAnderson Bravalheri2023-03-063-3/+3
| |
* | _deprecated_config_handler(): Use warn stacklevel for better feedbackChristian Clauss2023-04-061-1/+1
| |
* | Update code generated by validate-pyproject (#3875)Anderson Bravalheri2023-03-281-7/+6
|\ \
| * | Update code generated by validate-pyprojectAnderson Bravalheri2023-03-281-7/+6
| |/
* | Fix '_WouldIgnoreField' warnings for scripts/gui_scriptsAnderson Bravalheri2023-03-201-1/+7
|/
* Improve error messages for pyproject.toml validation (#3838)Anderson Bravalheri2023-03-061-8/+8
|\
| * Improve error messages for pyproject.toml validationAnderson Bravalheri2023-02-271-8/+8
| |
* | Simplify _section_options using str.partition and a generator.Jason R. Coombs2023-03-051-11/+5
| |
* | Extract method for _section_options.Jason R. Coombs2023-03-051-10/+14
| |
* | Resolve setter once.Jason R. Coombs2023-03-051-5/+3
| |
* | Trap exception directly instead of tracking with boolean.Jason R. Coombs2023-03-051-12/+3
| |
* | Rename value to avoid masking variable.Jason R. Coombs2023-03-051-3/+3
| |
* | Use try/except in __setitem__.Jason R. Coombs2023-03-051-4/+3
| |
* | ⚫ Fade to black.Jason R. Coombs2023-03-051-13/+21
|/
* Update generated validation code using validate_pyproject==0.12.1Anderson Bravalheri2023-01-271-75/+77
|
* Update generated validation code using validate_pyproject==0.12Anderson Bravalheri2023-01-252-80/+112
|
* Update implementation to consider new packaging exceptionsAnderson Bravalheri2023-01-231-11/+16
|
* Avoid exhausting iteratorAnderson Bravalheri2023-01-201-3/+2
|
* Delay importAnderson Bravalheri2023-01-201-1/+2
|
* Account for file directive with string in pyproject.tomlAnderson Bravalheri2023-01-201-2/+4
|
* Ensure file referenced by 'license.file' in pyproject.toml is added to sdistAnderson Bravalheri2023-01-191-0/+1
|
* Ensure file referenced by 'readme' in pyproject.toml is added to sdistAnderson Bravalheri2023-01-191-3/+9
|
* Add files referenced by 'file=' directive in pyproject.toml to sdistAnderson Bravalheri2023-01-191-3/+6
|
* Add files referenced by file: directive in setup.cfg to sdistAnderson Bravalheri2023-01-191-4/+11
|
* Fix getattr statementAnderson Bravalheri2022-11-281-1/+1
|
*---. Merge PRs #3636 #3634 #3633 #3595 #3576 #3569 #3564Anderson Bravalheri2022-10-144-20/+23
|\ \ \
| | * | Update validate_pyprojectAnderson Bravalheri2022-09-023-19/+21
| | |/
| * | Use abspath() instead of resolve() in expand._assert_local()Mike Salvatore2022-09-221-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4249da1ecf uses `pathlib.Path.resolve()` instead of `os.path.abspath()` to canonicalize path names. `resolve()` resolves symlinks, whereas `abspath()` does not. `resolve()` can also raise a `RuntimeError` if infinite loops are discovered while resolving the path. There is some concern that using `resolve()` would not be backwards compatible. This commit switches back to `abspath()` but still uses `Path.parents` to avoid the edge case. See PR #3595 for more details.
| * | Catch an edge case in expand._assert_local()Mike Salvatore2022-09-181-1/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Use pathlib to open the fileJason R. Coombs2022-09-291-3/+2
| |
* | expand: Give bytes to ast.parse to let it discover encoding cookie.Julien Palard2022-09-271-1/+1
|/
* Fix problems with name discovery and dynamic versionsAnderson Bravalheri2022-08-191-5/+10
|
* Merge 'main' into feature/pep660Anderson Bravalheri2022-08-062-18/+71
|\
| * Improve pyproject.toml validation messages (#3487)Anderson Bravalheri2022-08-061-4/+8
| |\
| | * Improve pyproject.toml validation messagesAnderson Bravalheri2022-08-041-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: use contextlib.suppress instead of try/except+passAnderson Bravalheri2022-08-061-3/+2
| | |
| * | setup.cfg parsing: Fix incorrect refactoringAnderson Bravalheri2022-08-061-9/+11
| | |
| * | setup.cfg parsing: Simplify warn_accidental_env_marker_misconfigAnderson Bravalheri2022-08-061-17/+17
| | |
| * | setup.cfg parsing: Refactor _parse_requirements_list and ↵Anderson Bravalheri2022-08-061-33/+33
| | | | | | | | | | | | warn_accidental_env_marker_misconfig
| * | Add warning for potential extras_require misconfigurationLumir Balhar2022-08-061-0/+48
| |/ | | | | | | Fixes: https://github.com/pypa/setuptools/issues/3467
* | Merge 'upstream/main' into feature/pep660Anderson Bravalheri2022-07-211-1/+1
|\ \ | |/