Commit Graph

115 Commits

Author SHA1 Message Date
Matt Davis 9a98977997 Add test and news fragment. 2023-06-30 23:02:17 -04:00
Matt Davis 6daa947bc7 skip other failing test -- won't be possible to support multiple indexes without using our resolver. 2023-06-18 22:45:06 +02:00
Matt Davis 99800ec7a2 Requirementslib==2.3.0 (#5672)
* Bump requirementslib that drops vistir.

* Add news fragment

* Add missing file

* Remove vistir entirely

* fix circular import

* revert issue that may be causing circular import issue

* Hackaround current pythonfinder version importlib usage.

* PR Feedback

* fix lint
2023-04-29 19:22:28 +02:00
Oz Tiram abcb3e2df4 Remove pytest-pypi server from usage in tests 2022-12-28 15:45:41 +01:00
Matt Davis 75132d6acd Resolve issue where null markers were getting added when extras were provided. 2022-12-09 02:55:05 -05:00
Matt Davis bf289af7e6 Treat each index as its own install phase (per category) in order to fulfill index restrictions (default behavior). 2022-10-30 05:28:08 -04:00
Matt Davis cd583dcfa2 Remove duplicated test variant with the same name. 2022-10-16 10:16:30 -04:00
Matt Davis b3381ce4e8 Check point progress fixing tests in branch. 2022-09-22 04:32:32 -04:00
Matt Davis 8cf819c108 Fix bug where locking one category clears the other category locks. 2022-09-20 15:36:58 -04:00
Matt Davis eb6054ac0c Add test for isolated package lock. 2022-09-19 18:34:26 -04:00
Matt Davis afb5ce7d3e Resolve merge conflicts with main. 2022-09-19 10:58:28 -04:00
Oz N Tiram 3a57dd0f21 Merge branch 'main' into replace-pipfile-with-plette 2022-09-15 15:08:18 +02:00
Oz N Tiram a23fee69b0 Remove skipped test - Pipenv no longer lock with incomplete sources 2022-09-15 14:55:42 +02:00
Oz N Tiram 8bbb4bdd51 Fix test_lock_updated_source
This was broken because of wrong Pipfile format.
Plette is strict!
2022-09-14 08:39:32 +02:00
Oz N Tiram a2130f7396 Fix missing name for source in test_dev_lock_use_default_packages_as_constraint 2022-09-14 01:17:59 +02:00
Oz N Tiram 7ecea16e25 Fix test_lock_updated_source
The source must contain a name or Plette will fail.
2022-09-14 01:01:11 +02:00
Oz N Tiram 2805e75e6c Disable another test which breaks with plette 2022-09-13 16:48:09 +02:00
Matt Davis 0c8d4c371a Fix the tests. 2022-09-11 09:37:49 -04:00
Matt Davis 9e80997b8e Address test failures with the new requirementslib changes. 2022-09-10 21:09:35 -04:00
Oz N Tiram 4aad6f683e Merge branch 'main' into slowest-tests 2022-09-07 19:19:17 +02:00
Matt Davis 2407558d90 More test optimizations. 2022-09-07 16:21:30 +02:00
Aron Bierbaum ffcbdfa817 Fix test suite 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
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
Dương Quốc Khánh e9dc3247dc Issue 4371 incorrect dependencies when install dev packages (#5234)
* Add test, ensure dev lock use default packages as constraints.

* Use default packages as constraints when locking develop packages.

* Add test, ensure installing dev-packages use default packages as constraints. (#4371) (#2987)

* Use default packages as constraints when installing provided dev packages.

* change vistir.path.normalize_path to pipenv.utils.shell.normalize_path

* Add function that get contraints from packages.

* Add test for get_constraints_from_deps function

* Use get_constraints_from_deps to get constraints

* Use @cached_property instead of @property

* Use standalone utility to write constraints file

* prepare_constraint_file use precomputed constraints.

* Add news fragment.
2022-08-13 05:17:09 -04:00
Matt Davis 84065c49ed test corrections. 2022-08-06 08:32:25 +02:00
Matt Davis 1daa4d5d8d Remove old way of generting requirements. 2022-08-06 08:32:25 +02:00
Matt Davis 771cee564a Remove tests that are old and permenently skipped, remove OS skips that seem to not make sense. 2022-07-29 15:28:18 +02:00
Matt Davis cd5a9683be Rename notpip to pip. Vendor in pip-22.2.1 and latest requirementslib and vistir. 2022-07-28 11:58:10 +02:00
Matt Davis 3387881a6d Code reorg utils into utils module reduces complexity (#4990)
* Split apart the massive utils.py into a utils module
2022-03-29 20:27:33 -04:00
Matt Davis 0788b0122e Refactor test into a version that also check quiet mode, move to correct test file.
Add test cases for pip freeze has expected output
Add test for the package index restrictions.
2022-03-26 10:05:56 -04:00
Matt Davis 7f05d65eed Restore this message as stderr because it affects requirements.txt generation (#5005)
* Restore this message as stderr because it affects requirements.txt generation.

* Only load the dotenv file when it's a real file, and thus only print the message when it's present.

* Add news fragment.
2022-03-23 15:22:42 +01:00
Matt Davis 5a151615aa missed these tests becasue they run only on earlier python versions. 2022-03-11 03:25:13 -05:00
Jeremy Fleischman 34652df63c Use a PackageFinder with ignore_compatibility when collecting hashes
This fixes https://github.com/pypa/pipenv/issues/4885
2022-01-06 22:01:43 -08:00
Frost Ming ff32a68771 Remove some usages of vistir.compat 2021-11-08 23:49:40 +08:00
Frost Ming 264b47438c fix sys.version_info 2021-11-05 15:33:39 +08:00
Frost Ming 88df069d68 fix tests for 3.9 and 3.10 2021-11-05 14:45:37 +08:00
Frost Ming 99beff2db0 fix vcs test cases 2021-11-04 21:42:37 +08:00
Frost Ming 7c77435bcc fix vcs url 2021-11-04 20:38:15 +08:00
Frost Ming e78ead7484 Don't include self for resolution for editable deps 2021-11-04 16:06:59 +08:00
Frost Ming 904f0a3b86 capture outputs written in subprocesses 2021-08-03 10:41:19 +08:00
Frost Ming 6ef9344a5f Avoid wait() on processes 2021-07-29 14:42:52 +08:00
Frost Ming 9b4eb98529 Remove unused patch files 2021-07-28 17:30:17 +08:00
Frost Ming a82bbb7b27 Try switching from delegator to subprocess 2021-07-28 16:39:36 +08:00
Frost Ming ca5d931f1f Update to py36 plus syntax 2021-07-28 10:59:00 +08:00
Frost Ming fac3eaeaa7 Revendor packages and update patches 2021-07-27 09:45:57 +08:00
Frost Ming 306731cbe0 Update test cases according to the latest pip 2021-07-26 16:48:55 +08:00