Commit Graph

481 Commits

Author SHA1 Message Date
jerempy bb0944265b added callables to [scripts] in Pipfile
Can now add a callable like {call = "package.module:func('arg')"}
2022-10-09 14:48:09 -04:00
Matt Davis 4fa70dba68 Merge branch 'main' into named-categories 2022-10-08 10:55:13 -04:00
Oz N Tiram 9d532123d1 Merge pull request #5389 from pypa/clean-conftest
Clean conftest
2022-10-06 08:13:29 +02:00
Matt Davis 19b53014f4 Merge branch 'main' into named-categories 2022-10-05 23:30:54 -04:00
Oz N Tiram 8d6bec6bfd Merge pull request #5387 from jerempy/python_full_version-in-pipfile
Python full version in pipfile
2022-10-06 01:17:05 +02:00
Oz N Tiram 1f836f66fc Remove usage of fs_encode
See also #5062
2022-10-06 00:24:08 +02:00
Oz N Tiram ea84f684a6 Remove unused import of threading 2022-10-06 00:23:47 +02:00
jerempy 3171333449 delete accidental dup test 2022-10-05 10:54:46 -04:00
jerempy 5bf9f1baac pipfile saves correctly
and news segment
2022-10-05 10:52:09 -04:00
Matt Davis 35b996df76 merge in main and resolve conflict. 2022-10-04 05:32:31 -04:00
jerempy 3fe3674949 test first - it fails
expected output doesn't match current output which is "python_version": "3.10"
2022-10-03 09:10:56 -04:00
Oz N Tiram d2fe28a8b0 Bump dparse version to 0.6.2 2022-10-02 23:58:38 +02:00
Matt Davis b3381ce4e8 Check point progress fixing tests in branch. 2022-09-22 04:32:32 -04:00
Matt Davis 8e81ddadc1 resolve merge conflict with main. 2022-09-21 21:41:12 -04:00
Matt Davis 2b1e270daa Add test. 2022-09-21 06:57:13 -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 9e064bc6c3 Fix issues from prior refactoring and specify --no-build-isolation by default. 2022-09-20 12:02:45 -04:00
Matt Davis 7497f0cbc8 resolve issues with uninstall. 2022-09-19 23:19:37 -04:00
Matt Davis eb6054ac0c Add test for isolated package lock. 2022-09-19 18:34:26 -04:00
Matt Davis 40900bcede Add install categories tests. 2022-09-19 18:10:22 -04:00
Matt Davis 8a4916ebcc Adjust test expctation. 2022-09-19 12:26:42 -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 129e821481 Remove comment - Plette does no expand env vars on disk 2022-09-15 14:54:32 +02:00
Oz N Tiram 21b6eb732d Yank skipped test - pipenv no longer supports unnamed index 2022-09-15 14:53:16 +02:00
Oz N Tiram 62b57b9d19 Merge pull request #5350 from pypa/issue-5349
Safer usages of pkg_resources
2022-09-14 19:39:52 +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 1b8f6278df Fix test_environment_variable_value_does_not_change_hash
It seems the are was an assertion in this test that was wrong.

I don't think pipenv install should modifiy the Pipfile when running
`pipenv install`.
2022-09-14 00:29:02 +02:00
Oz N Tiram 8c2118360f Fix broken test with plette.Pipfile
This tests actually required the private pypi, since fake-package
doesn't exist on Pypi!
2022-09-13 23:46:36 +02:00
Oz N Tiram 2805e75e6c Disable another test which breaks with plette 2022-09-13 16:48:09 +02:00
Oz N Tiram db743ea011 Disable test that break with plette
Unnamed sources will break with the following error:

pipenv.vendor.plette.models.base.ValidationError: {'url': 'https://pypi.org/simple', 'verify_ssl': True}
name: required field
2022-09-13 16:20:06 +02:00
Oz N Tiram 2a6b6c946d Fix failing tests with Plette.Pipfile
This commit comes with a warning! This might be considered a behavior
change. Since, plette uses a stricter boolean: \"true\" is not parsed
the same way as "true"
2022-09-13 14:58:40 +02:00
Matt Davis dcfa8d222c Fix remaining test. 2022-09-11 10:23:53 -04:00
Matt Davis 24c51eb3a2 Resolve environment variables expanding for the sources. 2022-09-11 10:16:52 -04:00
Matt Davis 0c8d4c371a Fix the tests. 2022-09-11 09:37:49 -04:00
Matt Davis 83d0f101d9 Fix hash generatiton with named categories and convert more to plette because of this. 2022-09-11 07:36:58 -04:00
Matt Davis 9e80997b8e Address test failures with the new requirementslib changes. 2022-09-10 21:09:35 -04:00
Oz N Tiram 3eacea2f49 Remove tests with --sequential 2022-09-09 22:56:55 +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
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 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