summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Instead of detecting 'get-pip' during the import of pip, detect the attempt ↵bugfix/2993-reduxJason R. Coombs2022-01-102-2/+28
| | | | to 'import setuptools' during 'get-pip', and in that case, stub the import to signal the presence of setuptools. Ref #3022. Fixes #2993.
* Disable cygwin tests for now. Ref #3016.Jason R. Coombs2022-01-081-0/+1
|
* Bump version: 60.4.0 → 60.5.0v60.5.0Jason R. Coombs2022-01-084-3/+11
|
* Merge pull request #2990 from asottile/distutils-hack-set-originJason R. Coombs2022-01-083-1/+11
|\ | | | | set origin= for distutils.__spec__
| * set origin= for distutils.__spec__Anthony Sottile2022-01-082-1/+4
| | | | | | | | set origin so spec finding reports the correct location -- https://docs.python.org/3/library/importlib.html#importlib.machinery.ModuleSpec
| * Check that distutils has an origin. Ref #2990.Jason R. Coombs2022-01-081-0/+7
| |
* | Bump version: 60.3.1 → 60.4.0v60.4.0Jason R. Coombs2022-01-0814-30/+44
| |
* | Merge pull request #3009 from tiran/issue3006_startup_speedupJason R. Coombs2022-01-083-27/+38
|\ \ | |/ |/| Speedup startup of Python by importing less
| * pytest.ini uses tabsChristian Heimes2022-01-081-2/+1
| |
| * Suppress distutils deprecation warningChristian Heimes2022-01-081-0/+2
| |
| * Move filter into meta finderChristian Heimes2022-01-081-20/+21
| |
| * Use internal warnings API and _TrivialRe hack to install filterChristian Heimes2022-01-081-6/+19
| |
| * Temporarily add back filter, tests fail without itChristian Heimes2022-01-081-4/+4
| |
| * Add changelog entryChristian Heimes2022-01-081-0/+2
| |
| * Speedup startup of Python by importing lessChristian Heimes2022-01-081-28/+22
|/ | | | | | | | | | | | | | | ``_distutils_hack`` is imported by a ``.pth`` file at every start of a Python interpreter. The import of costly modules like ``re`` and ``contextlib`` almost doubles the initial startup time of an interpreter. - replace ``contextlib`` with simple context manager and try/except - replace ``re`` with simple string match - move import of ``importlib`` into function body - remove ``warnings.filterwarnings()``, which imports ``re``, too. Fixes: #3006 Signed-off-by: Christian Heimes <christian@python.org>
* Merge pull request #3014 from pypa/feature/distutils-hack-startup-perfJason R. Coombs2022-01-083-0/+9
|\ | | | | Capture performance of interpreter startup.
| * Capture performance of interpreter startup. Ref #3006.feature/distutils-hack-startup-perfJason R. Coombs2022-01-073-0/+9
|/
* Merge pull request #2953 from liuzhe-lz/mainJason R. Coombs2022-01-073-2/+52
|\ | | | | Fixed a bug that easy install incorrectly parsed Python 3.10 version string
| * fix version parsingliuzhe2022-01-072-2/+3
| |
| * Add test to make sure 3.10 is not interpreted as 3.1Anderson Bravalheri2022-01-071-0/+49
| |
* | Merge pull request #3013 from ananthp/docs/2674-packaging-resourcesAnderson Bravalheri2022-01-072-2/+4
|\ \ | |/ |/| docs/2674: packaging resources in quickstart guide
| * Update docs/userguide/quickstart.rstAnanth Pattabiraman2022-01-071-1/+1
| | | | | | Co-authored-by: Anderson Bravalheri <andersonbravalheri+github@gmail.com>
| * add 2674 changelogAnanth Pattabiraman2022-01-071-0/+1
| | | | | | for pull request for #2674 as per developer guide
| * add resources on packagingAnanth Pattabiraman2022-01-071-2/+3
|/ | | Section `Resources on Python packaging` did not point to any resource. Added as discussed on #2674
* Merge pull request #3012 from abravalheri/remove-numpy-from-integration-testsAnderson Bravalheri2022-01-071-2/+1
|\ | | | | Remove `numpy` sdists from integration tests
| * Remove `numpy` sdists from integration testsAnderson Bravalheri2022-01-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Numpy now uses a version cap for setuptools in their `pyproject.toml`, which defies a bit the value of including it in the integration tests. As revealed in a conversation with `numpy` maintainer, it seems that they not plan to remove this cap (maybe only update it from time to time, only if necessary). Moreover they are also studying other build backends. So I think that now the best thing to do would be stop trying to build numpy sdists with the current version of setuptools, otherwise we risk to break this test.
* | Merge pull request #3011 from abravalheri/fix-placement-of-news-fragmentAnderson Bravalheri2022-01-071-0/+0
|\ \ | |/ |/| Fix misplaced news fragment
| * Fix misplaced news fragmentAnderson Bravalheri2022-01-071-0/+0
|/ | | | | PR #2839 accidentally misplaced the news fragment file under root. This commit fix that.
* Merge pull request #2839 from msuozzo/patch-1Jason R. Coombs2022-01-064-5/+39
|\ | | | | Maintain `requires` order in METADATA.
| * Use MappingProxyType to ensure immutability.Matthew Suozzo2022-01-061-1/+1
| |
| * Merge remote-tracking branch 'upstream/main' into patch-1Anderson Bravalheri2022-01-06149-2699/+6304
| |\
| * | Add new test to document expected order stability.Matthew Suozzo2021-12-161-0/+33
| | |
| * | Remove pkg_resources nondeterminism.Matthew Suozzo2021-11-281-2/+2
| | |
| * | Add news entry.Matthew Suozzo2021-10-301-0/+1
| | |
| * | Revert inner function name change.Matthew Suozzo2021-10-301-1/+1
| | |
| * | Maintain `requires` order in METADATA.Matthew Suozzo2021-10-301-4/+4
| | | | | | | | | | | | | | | It seems that workflows that build -> install -> build would have the order of requires changed by these sorted() calls. From a brief attempt to trace through all the related interfaces, it seems this is the only code that changes the order of the requirements and so would be the only source of the observed inconsistency of Requires-Dist entries. If this sorting is desirable, the other setuptools and wheel interfaces that interact with the requirements should also sort them. Otherwise, it's valuable to retain the order across all parts of the system.
* | | Merge pull request #2952 from abravalheri/issue-2950Anderson Bravalheri2022-01-0712-0/+513
|\ \ \ | | | | | | | | Change vendoring script to preserve license files
| * | | Improve path handling on move_license taskAnderson Bravalheri2021-12-221-2/+3
| | | |
| * | | Remove license lookup in *.egg-infoAnderson Bravalheri2021-12-211-3/+2
| | | | | | | | | | | | | | | | I believe that only wheels install licenses in the *.dist-info.
| * | | Add news fragmentAnderson Bravalheri2021-12-211-0/+1
| | | |
| * | | Change vendoring script to preserve license filesAnderson Bravalheri2021-12-2111-0/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out by #2950, it is probably a good idea to keep the license files for the vendored dependencies. This is done by changing the `pavement.py` tasks.
* | | | Merge pull request #2968 from abravalheri/remove-need-for-tmp-src-fixtureAnderson Bravalheri2022-01-0715-123/+160
|\ \ \ \ | | | | | | | | | | [CI] Remove the need for the `tmp_src` fixture
| * | | | Ensure test_cygwin pass before CI release actionAnderson Bravalheri2022-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | It seems that the release action in the CI was running even when the cygwin tests did not pass... It is likely we want it to pass first.
| * | | | Use setuptools wheel instead of source tree in integration testsAnderson Bravalheri2022-01-062-10/+8
| | | | |
| * | | | Add news fragmentAnderson Bravalheri2022-01-063-0/+17
| | | | |
| * | | | Prevent some tests from inadvertently using the project root for buildsAnderson Bravalheri2022-01-063-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests are running the build process using setuptools own directory as cwd. This impacts the build process and also leave behind artifacts produced during tests (like .egg-info folders)
| * | | | Remove dependency on pytest_virtualenvAnderson Bravalheri2022-01-062-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Now that all tests use `jaraco.envs`, there is no need to depend on `pytest_virtualenv`.
| * | | | Replace tmp_src fixture with the virtualenv fixturesAnderson Bravalheri2022-01-063-82/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of re-building/installing setuptools from the source tree every time, the tests now rely on the venv, wheel and sdist fixtures (the venv fixture is populated from sdist/wheel). Moreover migrate `test_virtualenv` to use `jaraco.envs` (so it uses the same libraries ad `test_distutils_adoption`).
| * | | | Extract venv fixtures from test_distutils_adoptionAnderson Bravalheri2022-01-063-26/+47
| | | | | | | | | | | | | | | | | | | | | | | | | … and change it to install the pre-build setuptools wheel (fixture) instead of installing from the source tree
| * | | | Add fixtures for sdist and wheel artifactsAnderson Bravalheri2022-01-063-0/+47
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | They should be build once for each session and be able to be re-used in parallel (assuming read-only) for all tests. This is useful when dealing with virtual environments