Commit Graph

47 Commits

Author SHA1 Message Date
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
Dan Ryan 00bef5eac7 Fix outline table test to avoid pep517 builder
- Add poetry to test fixtures

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:03 -04:00
Frost Ming f9cef97076 Remove tricky test case 2019-08-03 18:17:10 +08:00
Frost Ming 2dc8d0a070 use another version 2019-08-03 16:54:44 +08:00
Frost Ming c3b4c410fa change the version specifier 2019-08-03 11:42:07 +08:00
Frost Ming 7708cd8445 Pass lock options to outdated 2019-08-03 10:44:45 +08:00
John Vandenberg 2f5150ab29 test_install_without_dev: Replace pytz with tablib
pytz exists in the build environment, which will typically
be added to the PYTHONPATH when running the tests in rpmbuild.
The alternative is to create a virtualenv containing only the
pipenv dependencies, which is cumbersome to do when devendoring.
As the pytz library here is not critical to the logic of the
test method, replace it with tablib to reduce unintentionally
errors when packaging.

Continuation of https://github.com/pypa/pipenv/issues/3644
2019-07-11 13:33:02 +07:00
Dan Ryan 9c3ee2a72b Get rid of devpi
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-07-05 02:55:47 -04:00
Dan Ryan 5ac676711a Fix editable VCS dependency resolution
- Fixes #3809

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-07-05 02:06:43 -04: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 359906c669 Update tests to resolve some transient resolution issues
Signed-off-by: Dan Ryan <dan@danryan.co>

probably need to sync submodules for this to work

Signed-off-by: Dan Ryan <dan@danryan.co>

Update to new version of artifacts

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix windows failure

Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure-pipelines.yml for Azure Pipelines

Update lockfile test for windows

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix scandir test

Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure test steps

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix virtualenv test

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix python discovery when nothing is supplied

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix cli ensure_project call

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix run in virtualenv test

Signed-off-by: Dan Ryan <dan@danryan.co>

Show why virtualenv test failed if it did

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix python interpreter discovery

Signed-off-by: Dan Ryan <dan@danryan.co>

scale down lock test modifications and increase error logging

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner bugs on windows and python discovery

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix pythonfinder search algorithm to dodge false paths on win

Signed-off-by: Dan Ryan <dan@danryan.co>

use pipenv directly

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-03 22:01:07 -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 116d0857a2 Fix variable references
Signed-off-by: Dan Ryan <dan@danryan.co>

Fix variable references

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix variable references

Signed-off-by: Dan Ryan <dan@danryan.co>

Switch to powershell for windows virtualenv creation

Signed-off-by: Dan Ryan <dan@danryan.co>

use python version as path

Signed-off-by: Dan Ryan <dan@danryan.co>

use python version as path

Signed-off-by: Dan Ryan <dan@danryan.co>

swap variable name for python exe

Signed-off-by: Dan Ryan <dan@danryan.co>

add fallback for python exe

Signed-off-by: Dan Ryan <dan@danryan.co>

fix python variable setting

Signed-off-by: Dan Ryan <dan@danryan.co>

fix python variable setting

Signed-off-by: Dan Ryan <dan@danryan.co>

Use variable susbstitution for python executable location

Signed-off-by: Dan Ryan <dan@danryan.co>

Use activate script properly

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix floating quote in python version

Signed-off-by: Dan Ryan <dan@danryan.co>

Don't block on safety call in python 2 as it overwrites output for some reason

Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>

Don't block on pipenv graph either

Signed-off-by: Dan Ryan <dan@danryan.co>

Check command return code instead of calling `block`

Signed-off-by: Dan Ryan <dan@danryan.co>

Don't load json after its already loaded

Signed-off-by: Dan Ryan <dan@danryan.co>

Wait on return code before checking contents

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:11:05 -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
Frost Ming aadb24b9df Move to install test suite 2018-12-07 09:00:04 +08:00
Dan Ryan 2160b64005 Merge branch 'master' into bugfix/3324 2018-12-01 14:09:59 -05:00
Dan Ryan a500420f6c Merge branch 'master' into resort-imports 2018-12-01 13:06:25 -05:00
jxltom bea9e03165 Enable test disabled in travis 2018-12-01 22:17:00 +08:00
Frost Ming 360ed75992 try another package
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-12-01 20:56:47 +08:00
Frost Ming 7718350f2f Don't normalize name when writing Pipfile
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-12-01 19:44:10 +08:00
jxltom 85e64b86be Resort imports for tests 2018-12-01 17:26:32 +08:00
Frost Ming 6873145116 Abort pipenv when pip install fails 2018-11-28 16:42:14 +08:00
Dan Ryan feab1aed39 Fix failures from missing pipfile before install
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:27:31 -05:00
Dan Ryan 0bf7a48451 Make sure we actually create the pipfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:21:02 -05:00
Dan Ryan f99de85ef7 Fix pipfile creation with unnamed project
- Fixes #3260

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:00:53 -05:00
Grey Baker e04b84d36b Fix parsing of outline tables 2018-10-09 23:10:47 +01:00
Dan Ryan cd5cad30be Refactor CLI for organization and simplicity
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00
Dan Ryan 5ae2433bcf now does it work?
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 03:18:03 -04:00
Dan Ryan d5836ed3b0 Just strip https from test mirror index
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 03:10:34 -04:00
Tzu-ping Chung f711678537 Get virtualenv location from output
The Project class's implementation is a fucking mess. Avoid that.
2018-07-13 03:14:22 +08:00
Tzu-ping Chung a5a9583c2d Un-vendor Pew 2018-07-05 16:43:11 +08:00
kennethreitz 7588ca31cf passing tests! 2018-07-03 23:23:20 -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 3bfab233f5 Unicode file data
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 00:10:36 -04:00
Dan Ryan aa82db02f7 Update test with comments + minor tweak
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:32:20 -04:00
Dan Ryan cf8fcfd8c6 Merge branch 'tests-16.0' of github.com:pypa/pipenv into tests-16.0 2018-06-23 20:28:36 -04:00
Dan Ryan ef913b2148 Tests for #2273 and #2301
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:27:08 -04:00
Erin O'Connell d6adc1efa5 test skipping requirements if there is a lockfile or package name is specified 2018-06-23 18:15:03 -06:00
Dan Ryan b2f6932a13 Add tests for #2309
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:57:06 -04:00
Dan Ryan 6b8649f575 Add test for #1861
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:46:51 -04:00
Dan Ryan c76b95db34 Add test for install -e
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 02:05:44 -04:00
Jacob Henner af91eb68bb Add support for PyPI mirrors
Adds support for the --pypi-mirror command line parameter and the
PIPENV_PYPI_MIRROR environment variable for most pipenv operations.
This permits pipenv to function without pypi.org, which is necessary for
users:

    1. behind restrictive networks
    2. facing strict artifact sourcing policies
    3. experiencing poor performance connecting to pypi.org
    4. who've configured a local cache for performance reasons

When specified, the value of this parameter replaces all instances of
pypi.org and pypi.python.org within pipenv operations without modifying
or requring the modification of Pipfiles.

- Resolves #2075
2018-06-07 18:24:18 -04:00
Tzu-ping Chung 0984bab787 Do not expand environ in cache on package install
Fix #2100.
2018-05-05 01:04:36 +08:00
Tzu-ping Chung 4533e68bca Move things around 2018-04-12 17:35:17 +08:00