Commit Graph

47 Commits

Author SHA1 Message Date
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 698ef8cdd2 improve test performance 2020-11-02 11:11:57 +08:00
Dan Ryan 07a7c6110f Remove version from VCS lock keys
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-19 14:23:01 -04:00
Dan Ryan e03878d7c7 Add news entry and fix lockfile
- Drop pytest-tap
- Update azure pipelines config
- Borrow ramdisk configuration from pip
- Fix pyinstaller ref for python 2
- Add 0-minute timeout and add github workflow
- Add skip for pywin32
- Scale down to `-n auto` to reduce race conditions on windows
- Skip pywin32 on python 3.8 as the relevant dependencies aren't
  compatible
- Use default pip exists action = ignore to work around VCS race
  condition
- Create local temp directory to avoid crossing drive letter boundary on
  azure during CI runs
- Monkeypatch click windows console detection to return False in CI

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:06 -04:00
frostming 7d36f3fbda Reformat codes 2019-09-06 18:06:05 +08:00
Dan Ryan 83868c8f1a Cut over to devpi for tests and improve logging
- Verbose logs will now write gracefully to the terminal even while the
  spinner is running (i.e. during locking)
- This PR also cuts over to Devpi for a backing cache rather than a
  hacked httpbin instance
- Inclues a refactor of `pip_install` to deduplicate logic
- Attempts to switch back to relying on native editable installs in pip
  as the current implementation is broken on master (i.e. nothing is
  installed in the virtualenv)
- Fixes #3809

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-25 01:26:49 -04:00
Dan Ryan 8bb39a73e6 Check stderr instead of stdout for message and add required info back to outdated packages
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-17 02:04:55 -04:00
Dan Ryan 98f7f42742 Fix toml parsing and resolver comparisons
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-17 01:34:37 -04:00
Dan Ryan e7536ab1f6 Fix version comparisons in do_outdated
- Fix comparisons between post-release and non-post-release versions
- Update `pip_shims` to accommodate new pip versions
- Implement syntax changes in `environment.py` to account for new pip
  syntax
- Add `required` version output to `pipenv update --outdated`
- Add pipfile version pin information as well, if available

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-16 23:06:37 -04:00
Dan Ryan d8e66c7fce Add future imports to tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-16 00:52:10 -04:00
Dan Ryan b7de7c1cdf Fix marker formatting and inclusion
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 20:43:31 -04:00
Dan Ryan a47a26b87a Fix failing tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-20 11:51:15 -05:00
Dan Ryan f5fda09b9d Direct URL updates and pep517 fixes
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-14 22:44:51 -05:00
Dan Ryan 19f2ee61e9 Update resolver to handle all resolution in venv
- Resolve all VCS and non-piptools-resolveable deps in venv
- Implement pep517 for resolution of non-setuptools builds
- Add full support for the new dependency link format
- Fix breakages from pip 19* rollout and subsequent setuptools breakage

Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-02-11 00:48:35 -05:00
Dan Ryan 846b67f521 Update PEP 508 dependency parsing implementation
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-24 01:21:46 -05:00
jxltom 85e64b86be Resort imports for tests 2018-12-01 17:26:32 +08:00
Dan Ryan 2a7cc26767 Fix broken tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 13:55:50 -05:00
Dan Ryan 66e9822d8a Potentialy speed up tests, decrease network calls"
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 13:32:34 -05:00
Chris Miller cba5a1efc6 Remove debug print from test. 2018-11-17 12:52:12 -05:00
Chris Miller 70f6bec85e Use cross platform Path compatibility module in test. 2018-11-16 13:33:22 -05:00
Chris Miller 65e49f1bff Print generated Pipfile during test to help debug failures. 2018-11-16 10:23:51 -05:00
Chris Miller db1eb1bacb Use correct Path module to get tests to work. 2018-11-16 10:23:51 -05:00
Chris Miller a95ce8bb32 Remove unnecessary test marks and imports. 2018-11-16 10:23:51 -05:00
Chris Miller 262293699e Fix race condition when installing 2+ editable non-VCS pkgs at once
This regression was recently introduced, and only affects non-vcs
packages. The effect of the race is that installations of multiple
editable non-VCS sourced packages at once may cause some of them to be
un-importable.

The fix is to make editable package installs Blocking just like VCS
installs are.
2018-11-16 10:23:51 -05:00
Dan Ryan fedda7f2c4 Clean up test 2018-09-05 12:47:10 +08:00
Mickaël Schoentgen 25a4b558cd Fix 2 ResourceWarning: unclosed file, in tests 2018-09-01 15:58:33 +02:00
Alexandros Tzannes 86bbec18d9 Factor-out decorators for class tests 2018-08-06 10:44:10 -07:00
Alexandros Tzannes dd3b210862 Wrap two tests and helpers in a class 2018-08-06 10:41:16 -07:00
Alexandros Tzannes 3cc02ebd5d Break dependency-links test into two separate tests
Use helper functions to reduce code duplication since these two tests
are quasi-identical
2018-08-06 10:30:04 -07:00
Alexandros Tzannes 210a9d46fb Add back git+ssh version of dep-links test
See if it fails n build Kite
2018-08-06 10:04:16 -07:00
Dan Ryan 0e7ddbccf3 Enable dependency link processing
- Use `PIP_PROCESS_DEPENDENCY_LINKS` to toggle the processing of dependency links
2018-08-05 02:49:18 -04:00
Alexandros Tzannes f1cb2287ab Add -v flag to get better insight when it fails 2018-08-03 15:05:56 -07:00
Alexandros Tzannes e47fd53f95 [fixup] skip the git+ssh deplink
test if the git+https test works on Build Kite
2018-08-03 15:05:56 -07:00
Alexandros Tzannes 83ca4fbbb3 Add test for setup.py::dependency-link field 2018-08-03 15:05:56 -07:00
kennethreitz d4ef122709 fix more tests 2018-07-03 19:56:06 -04:00
kennethreitz a230eb867e fix a test 2018-07-03 19:54:02 -04:00
Dan Ryan 39a363b780 Update references to Path
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 22:28:31 -04:00
Tzu-ping Chung eafc97590d Fix docstrings that occurs in wrong places. 2018-06-25 00:55:42 +08:00
Dan Ryan 30b6425d57 Updated requirementslib and tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 23:35:35 -04:00
Dan Ryan 5d76b404f4 Add some tests
- the rest of the to-do items are at https://github.com/pypa/pipenv/projects/2
- We just need to review the items in the 'needs tests' column to ensure
  that they either have tests, or don't need to have tests
- If they need tests, and they don't yet have tests, we need to write
  them and make sure they pass
- Then we can release. No more features/bugfixes, this is now how it's
  going out.

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 03:01:20 -04:00
Dan Ryan 74430df2f3 Add tests to cover #2260
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 01:43:12 -04:00
Dan Ryan 18f6e94602 Fix iterator that i broke for reasons
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:26:16 -04:00
Dan Ryan ca05f2f3d6 Test fix and merge
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-13 11:49:17 -04:00
Tzu-ping Chung f730dd4899 Fix relative paths in tests 2018-04-12 17:48:53 +08:00
Tzu-ping Chung 4533e68bca Move things around 2018-04-12 17:35:17 +08:00