Commit Graph

7738 Commits

Author SHA1 Message Date
Matt Davis 9e80997b8e Address test failures with the new requirementslib changes. 2022-09-10 21:09:35 -04:00
Matt Davis d97f75a325 correct remaining project level imports. 2022-09-09 22:16:49 -04:00
Matt Davis e45d53546a Safer import of pkg_resources. 2022-09-09 22:09:57 -04:00
Matt Davis 61552ef2bf Remove pip_shims renames. 2022-09-09 22:06:41 -04:00
Matt Davis e9f24a9b60 Undo dir rename because it affected the license file location. 2022-09-09 22:03:23 -04:00
Matt Davis 79d1184923 Use importlib to ensure pipenv and ensure pkg_resource is importable. 2022-09-09 21:57:20 -04:00
Matt Davis 268a7fcfda Use same style importlib patch that we use to provide vendored pip 2022-09-09 21:28:11 -04:00
Oz N Tiram badb310741 Merge pull request #5338 from pypa/5334-take2
Actually load the dot env file before virtualenv creation.
2022-09-08 01:58:49 +02:00
Matt Davis 5e7aee3a77 Actually load the dot env file before virtualenv creation. 2022-09-07 19:23:41 -04:00
Oz N Tiram cec086491b Merge pull request #5337 from pypa/bump-plette
Bump plette version to v0.3.0
2022-09-08 01:02:43 +02:00
Oz N Tiram cff9c94853 Add news fragment 2022-09-08 00:56:01 +02:00
Oz N Tiram 9ccbbcaa5d Bump vendored version of plette to v0.3.0
This version removes Python2 support. Partial fix for #5187.
2022-09-08 00:49:24 +02:00
Oz N Tiram 7407087f20 Merge pull request #5336 from pypa/bump-shellingham
Bump vendored version of shellingham
2022-09-08 00:39:49 +02:00
Oz N Tiram eaf3d0a130 Add news fragment 2022-09-08 00:10:16 +02:00
Oz N Tiram 2f0265d076 Bump vendored version of shellingham
Fix #5333
2022-09-08 00:06:55 +02:00
Oz N Tiram f6ef1d31bf Merge pull request #5334 from pypa/earlier-dot-env-load
Load the dot env earlier
2022-09-07 19:52:52 +02:00
Oz N Tiram 9527820fb6 Merge pull request #5331 from pypa/slowest-tests
Examine the 20 slowest tests and make improvements.
2022-09-07 19:50:59 +02:00
Oz N Tiram 4aad6f683e Merge branch 'main' into slowest-tests 2022-09-07 19:19:17 +02:00
Matt Davis f46212e0fe More test optimizations. 2022-09-07 16:21:35 +02:00
Matt Davis 2407558d90 More test optimizations. 2022-09-07 16:21:30 +02:00
Matt Davis a64d675187 Fix lint 2022-09-07 06:34:06 -04:00
Matt Davis be17a9f871 Add news fragment. 2022-09-07 06:29:03 -04:00
Matt Davis fb4765a17b Load the dot env earlier so that PIPENV_CUSTOM_VENV_NAME is more useful across projects. 2022-09-07 06:27:03 -04:00
Aron Bierbaum ffcbdfa817 Fix test suite 2022-09-07 04:58:35 +02:00
Aron Bierbaum 37b39330bf Remove else clause that would always be triggered
The else clause of a for loop is executed unless a break statement is
executed to terminate the for loop.

https://docs.python.org/3/reference/compound_stmts.html#the-for-statement
2022-09-07 04:58:35 +02:00
Aron Bierbaum 7bb23b9a37 Fix check if requirement's index name is in sources 2022-09-07 04:58:35 +02:00
Aron Bierbaum a5edaf5411 Improve type hints 2022-09-07 04:58:35 +02:00
Matt Davis bcaae97caa More test optimizations. 2022-09-06 00:46:46 -04:00
Matt Davis eb6295adb1 only install triggeres this warning. 2022-09-06 00:17:07 -04:00
Matt Davis 93c8bdaf62 Examine the 20 slowest tests and make improvements. 2022-09-06 00:13:12 -04:00
Matt Davis 9848862927 Convert test runner to use pypiserver package as standalone process (#5284)
* Check point progress on moving tests to pypiserver.

* Allow other indexes to mimic the pypi json API for package hashes.

* Fix these tests that run on lower python versions only.

* Try adding the pypiserver to the github actions to only run once.

* Expand the scope of fixtures for pypiserver.

* try to accomedate microsoft runner.

* Windows networking troubles.

* Remove running as a background job.

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to introduce pypi as the root index because setuptools-scm is not in our pypi artifacts.

* see if the windows tests run faster (and the other tests) by supplying waitress.

* Only use waitress on windows because the others are fast on the default.  Fix requests pollution.

* Supply a suitable Pipfile instead for these two failing tests.

* More requests resolver cross test contamination cleanup.

* remove problematic tests because even on my version of python 3.8.12 this does not work due to AttributeError: 'HTMLParser' object has no attribute 'unescape'

* fix mirror install test.

* Fix Pipfile.

* Fix Pipfile for real

* Fix tests

* Cleanup test naming and more test enhancements.

* Save this optimization for a subsequent PR.

* Cleanup the TemporaryDirectory between tests.

* resolve merge conflict.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* tableflip on those requests tests that read the setup metadata in reqlib from other tests.

* Update developer documentation for running tests.

* add news fragment.

* Try gunicorn perfoormance for linux/mac

* Only use gunicorn on linux based on the results of last run.
2022-09-05 10:19:12 -04:00
tocic dd4b0eaafe Fix typos 2022-09-05 15:33:09 +02:00
Oz N Tiram 822620bb30 Deprecate the --three flag
pipenv now uses python3 by default.
2022-09-05 15:32:35 +02:00
Matt Davis 7b9b1aeb1c Allow users to pass a string of extra arguments to pip (#5283)
* Allow users to pass a string of extra arguments to pip install
2022-09-04 16:20:59 -04:00
Matt Davis d3446485c0 Add news fragment. 2022-09-04 15:38:38 +02:00
Matt Davis d337d126e2 Rebased PR on main. 2022-09-04 15:38:38 +02:00
github-actions[bot] e6efe0521f Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-04 13:27:01 +00:00
Matt Davis 3b4bde7bb0 Release v2022.9.4 2022-09-04 09:24:50 -04:00
Matt Davis 7d80a7fea5 Use a different library since I could not figure out the six conflicts this caused with other tests. 2022-09-04 00:28:02 +02:00
Matt Davis dbb0277866 Try to fix cross test pollution of Pipfile. 2022-09-04 00:28:02 +02:00
Matt Davis b26b4bfe2f Try to fix cross test pollution of Pipfile. 2022-09-04 00:28:02 +02:00
Matt Davis 4d7fc1506e Have the tests cleanup Pipfile after itself. 2022-09-04 00:28:02 +02:00
Matt Davis d59ded7de5 Add test case that fails on main branch and covers example fix of the issue. 2022-09-04 00:28:02 +02:00
Matt Davis b38c91c681 change flake8 repo since gitlab is down for maintenace. 2022-09-04 00:28:02 +02:00
Matt Davis 6be8d939ca add news fragment. 2022-09-04 00:28:02 +02:00
Matt Davis b97c1e0a4f possible fix for issue where requirement is a file or URL but does contain hashes. 2022-09-04 00:28:02 +02:00
Matt Davis 04bee00cac relock pipenv 2022-09-04 00:26:59 +02:00
github-actions[bot] 80222bcc78 Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-02 14:03:21 +00:00
Matt Davis a5c4493157 Release v2022.9.2 2022-09-02 10:01:17 -04:00
Dos Moonen cc5612e4c3 Respect disable_pip_input setting from Pipfile (#5323)
Co-authored-by: Dos Moonen <d.moonen@nki.nl>
2022-09-02 09:59:45 -04:00