summaryrefslogtreecommitdiff
path: root/setuptools
Commit message (Collapse)AuthorAgeFilesLines
* Merge https://github.com/pypa/distutils into distutils-e0787faJason R. Coombs2022-11-1375-631/+557
|
* Skip an additional test under xdist. Ref pypa/distutils#183. Expanded ↵Jason R. Coombs2022-11-131-4/+8
| | | | workaround for pytest-dev/pytest-xdist#843.
* Skip test under xdist as it fails after migrating to Python logging. Ref ↵Jason R. Coombs2022-11-131-0/+4
| | | | pypa/distutils#183. Workaround for pytest/pytest-xdist#843.
* ⚫ Fade to black.Jason R. Coombs2022-11-131-6/+10
|
* 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 pull request #3656 from bmorris3/typosJason R. Coombs2022-11-041-2/+2
|\ | | | | Typo corrections
| * Typo correctionsBrett M. Morris2022-10-311-2/+2
| |
* | Limit the amount of whitespace to search/backtrack. Fixes #3659.Jason R. Coombs2022-11-042-2/+1
| |
* | Add test capturing failed expectation. Ref #3659.Jason R. Coombs2022-11-042-1/+14
| |
* | ⚫ Fade to black.Jason R. Coombs2022-11-041-40/+37
| |
* | Remove workaround for emacs.Jason R. Coombs2022-11-041-1/+0
| |
* | ⚫ Fade to black.Jason R. Coombs2022-11-041-63/+100
|/
* Consistently use unittest.mock in testsMiro Hrončok2022-10-176-12/+7
| | | | | | | - Some tests used unittest.mock from the standard library - Some tests used mock from PyPI - Some tests tried to import unittest.mock with a fallback to mock (the import never fails on Python 3.7+, older Pythons are not supported)
*---------. Merge PRs #3636 #3634 #3633 #3595 #3576 #3569 #3564Anderson Bravalheri2022-10-149-30/+50
|\ \ \ \ \ \
| | | | | | * remove python2 casesStéphane Blondon2022-08-252-3/+1
| | | | | | |
| | | | | * | Improve warnings in editable installAnderson Bravalheri2022-08-262-5/+10
| | | | | |/
| | | | * | Update validate_pyprojectAnderson Bravalheri2022-09-023-19/+21
| | | | |/
| | | * | Handle no-packages projects in editable_wheelAnderson Bravalheri2022-10-121-1/+6
| | | | |
| | * | | 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-182-1/+13
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | fix small error message typo in editable_wheel.pyalexzorin2022-10-121-1/+1
| | |/ | |/|
* | | Skip stdlib distutils tests on Python 3.12Miro Hrončok2022-10-131-4/+17
|/ / | | | | | | | | | | | | This is an imperfect way to make the tests pass on Python 3.12. Long-term goal is to deprecate the stdlib option, see https://github.com/pypa/setuptools/issues/3625
* | Restore protection of distutils.log patching.Jason R. Coombs2022-10-081-0/+5
| |
* | Restore test for log module, but bypass when irrelevant.Jason R. Coombs2022-10-081-0/+18
| |
* | Skip manifest tests as they're copy pasta and broken under a unified logging ↵Jason R. Coombs2022-10-051-0/+2
| | | | | | | | framework.
* | Suppress monkeypatch when Log is gone, indicating distutils is using logging ↵Jason R. Coombs2022-10-051-1/+2
| | | | | | | | natively.
* | Support caplog and capsys now that logs go through logging.Jason R. Coombs2022-10-051-4/+14
| |
* | Remove hack around distutils.dist.log, no longer relevant with ↵Jason R. Coombs2022-10-052-27/+0
| | | | | | | | pypa/distutils#183.
* | Extract context manager for suppressing logs. Ref pypa/distutils#183.Jason R. Coombs2022-10-051-8/+17
| |
* | Merge pull request #3613 from JulienPalard/mdk-expandJason R. Coombs2022-09-292-3/+16
|\ \ | | | | | | expand: Give bytes to ast.parse to let it discover encoding cookie.
| * | 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-272-1/+15
| | |
* | | Merge https://github.com/pypa/distutils into distutils-6852b20Jason R. Coombs2022-09-2911-234/+250
|/ /
* | Merge https://github.com/pypa/distutils into distutils-d82d926Jason R. Coombs2022-09-244-129/+88
|/
* Prevent accidental name matching in editable hooks (#3562)Anderson Bravalheri2022-08-242-1/+25
|\
| * Prevent accidental partial name matching in editable hooksAnderson Bravalheri2022-08-241-1/+1
| |
| * Capture problems with similar names in editable installAnderson Bravalheri2022-08-241-0/+24
| |
* | Remove inadvertent splatting of the name attribute (#3547)Anderson Bravalheri2022-08-243-6/+53
|\ \
| * | Fix problems with name discovery and dynamic versionsAnderson Bravalheri2022-08-191-5/+10
| | |
| * | Replicate problems with name discovery and dynamic versionsAnderson Bravalheri2022-08-191-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to issue 3545 it seems that "name-discovery" happens, even when the project already explicitly sets it. This is related to parsing of dynamic versions (via `attr` directive), which triggers the auto-discovery to obtain the value of `package_dir`. The value of `package_dir` is used to find the path to the module in `version = {"attr" = "module_name.attr_name"}`.
| * | Remove inadvertent splatting of the name attributeBenno Rice2022-08-191-1/+0
| | | | | | | | | | | | | | | | | | | | | The `name` attribute of a `Distribution` object is used by the command-line processing system and is not intended to hold the name of the distribution itself. Setting it to the name will cause the command-line processing system to have a bad time.
| * | Replicate problems with `setup.py --version` and auto-discoveryAnderson Bravalheri2022-08-191-0/+9
| | |
* | | Merge https://github.com/pypa/distutils into distutils-22b9bcfJason R. Coombs2022-08-215-77/+66
| |/ |/|
* | Limit number of string replacementsAnderson Bravalheri2022-08-211-1/+5
| |
* | Fix recursion problem in finderAnderson Bravalheri2022-08-212-2/+3
| |
* | Capture recursion problem with editable finderAnderson Bravalheri2022-08-211-0/+20
|/ | | | First mentioned in issue 3550.
* Remove monkeypatching of msvc9compiler. Fixes #3536Jason R. Coombs2022-08-173-292/+1
|
* Merge https://github.com/pypa/distutilsJason R. Coombs2022-08-163-0/+1710
|
* Remove unecessary commaAnderson Bravalheri2022-08-151-1/+1
|