Commit Graph

7708 Commits

Author SHA1 Message Date
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
Matt Davis 07c1b2c319 Apply fix to constraints generation based on fact that pip resolver does not allowe unnamed constraints. 2022-09-02 13:37:56 +02:00
swaldhoer c7499e899c Use a context manager to handle the temporary constraints file (#5316)
* Use a context manager to handle the temporary constraints file
2022-09-01 20:43:06 -04:00
Dalton Durst b38ea71658 Fix Docker example in Basic Usage
The Docker example in the Basic Usage document needed a bit of TLC. Because the name of the virtualenv changed between the builder and the runtime container, Python was unable to find itself or its site-packages directory:

coolio@674956d0c53e:/usr/src$ ./venv/bin/pip
bash: ./venv/bin/pip: /usr/src/.venv/bin/python: bad interpreter: No such file or directory

To fix this, I changed the directory of the virtualenv in the runtime container to .venv which matches the builder.

I also added an example of how to get run.py into the container in the first place, since we run it later.
2022-09-02 01:12:59 +02:00
Matt Davis bde1f1a1b4 Fix issue where a file install is included with the hashed requirements. 2022-09-02 01:11:19 +02:00
github-actions[bot] f04071c52f Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-01 00:17:07 +00:00
Matt Davis 1124db2986 Release v2022.8.31 2022-08-31 20:13:50 -04:00
Matt Davis 9d9bf81952 add news fragment. 2022-08-31 20:13:34 -04:00
Matt Davis 2cdf6eb6b7 Add newsfragment. 2022-08-31 20:01:57 -04:00
Matt Davis f0d29d415c fix test 2022-09-01 01:52:50 +02:00
Matt Davis 46f8c863e0 Cleanup requests packages from the install_twists tests. 2022-09-01 01:52:50 +02:00
Matt Davis 44583cab20 Make this operation safe for all users and provide tests. 2022-09-01 01:52:50 +02:00
Matt Davis afba3e49d1 Allow the unredacted package link URL to prevent environment variable from being redacted. **** 2022-09-01 01:52:50 +02:00
Matt Davis d630506138 Drop progress bar. (#5315) 2022-08-31 19:52:26 -04:00
Matt Davis 0caed6906f Reduce the amount of calls to pip and the number of tempfiles in batch_install. (#5301)
* Reduce the amount of calls to pip and the number of temp files in batch_install.

* Add logic to read the progress of the install in realtime from pip and stop using progress bar.

* refactor based on PR feedback.
2022-08-31 19:51:29 -04:00
Matt Davis faf54135d3 add news fragmnent. 2022-09-01 01:31:35 +02:00
Matt Davis 7426e9eb79 Remove no longer used method which_pip 2022-09-01 01:31:35 +02:00
Matt Davis bc761c18d8 remove debug statement. 2022-08-31 23:37:24 +02:00
Matt Davis 5940a0720b Add news fragment. 2022-08-31 23:37:24 +02:00
Matt Davis 1695bee789 remove this environmnet variable usage which has limitations on some systems. 2022-08-31 23:37:24 +02:00
Matt Davis 99ca97a562 Remove dateutil. 2022-08-31 14:50:56 +02:00
github-actions[bot] 0bb13ed27d Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-30 21:41:42 +00:00
Matt Davis 54ddf16065 Release v2022.8.30 2022-08-30 17:38:54 -04:00
khanhdq b563bbe04c Typo 2022-08-30 21:56:43 +02:00
khanhdq 7a2d03f943 Add news fragments. 2022-08-30 21:56:43 +02:00
khanhdq 188d9c1872 Fixes checking constraint throws deprecation messages. 2022-08-30 21:56:43 +02:00
Matt Davis 6567f35277 Also remove orderedmultidict 2022-08-30 20:27:50 +02:00
Matt Davis 49674610b9 Add news fragment. 2022-08-30 20:27:50 +02:00
Matt Davis cade3ef8e9 Vendor in requirementslib==2.0.1 and vistir==0.6.1 2022-08-30 20:27:50 +02:00
Matt Davis 0d8662977a Revert "Fix nondeterminism with environment markers #5239 (#5286)" (#5306)
This reverts commit 4b9fc02a25.
2022-08-29 09:19:31 -04:00
Matt Davis bac7b68e4a Try to address these sproadic test failures without skipping the test. 2022-08-29 08:36:05 +02:00