Commit Graph

6129 Commits

Author SHA1 Message Date
Dan Ryan d838d7b4be Update locking to respect pep517 and isolation
- Fix verbosity and logging
- Clean minor fixes

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-29 00:46:23 -04:00
Frost Ming ffd5784193 Merge pull request #3648 from pypa/rename-news
rename news file
2019-03-26 09:53:26 +08:00
Frost Ming 0f1e2ed9bd rename news file 2019-03-25 21:32:21 +08:00
Dan Ryan 07e41ccb83 Merge pull request #3601 from pypa/bugfix/2747
Port #3263 with updates
2019-03-25 09:23:24 -04:00
Dan Ryan 036aed0cec Merge branch 'master' into bugfix/2747 2019-03-25 01:02:23 -04:00
Dan Ryan 778f6cc861 Merge pull request #3627 from pypa/update-pip
Update pip to version 19.0.3
2019-03-25 01:01:50 -04:00
Dan Ryan 4cc36083f1 Clean up old code
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-25 00:13:02 -04:00
Dan Ryan d937050884 Update pip patch
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-24 23:30:13 -04:00
Dan Ryan 92010826c8 Erm, remove verbose mode from tests
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-24 15:58:10 -04:00
Dan Ryan 32e918fd46 Don't print extra strings to stdout
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-24 14:49:15 -04:00
Dan Ryan 7ccaa3c75f Unlink file instead of calling non-existent delete function
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-24 14:07:34 -04:00
Dan Ryan 6971468f02 Write resolution results to temp json file instead of stdout
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-24 13:10:17 -04:00
Dan Ryan a960990103 fix double declaration of kwarg
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-23 22:36:03 -04:00
Dan Ryan 4a0b2b759a monkeypatch shutil.rmtree for tests
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-23 21:59:44 -04:00
Dan Ryan 4bd02aa6cc Fix temporary directory cleanup
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-23 17:38:20 -04:00
Dan Ryan 4f34b7c0d2 Update vistir to fix permissionerrors
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-22 20:27:52 -04:00
Dan Ryan 7d8f517229 Try ditching pip_src_dir in tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-21 22:05:32 -04:00
Dan Ryan b77f6cfa95 Point at new pip-tools version in patched file
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-21 01:17:09 -04:00
Dan Ryan c5729523ee Update vistir to rely on new rmtree logic
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-21 01:16:42 -04:00
Dan Ryan a63fd73de8 Fix azure pipelines invocation
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-20 22:31:35 -04:00
Dan Ryan 383020a720 Update test runners and fix resolver colorama calls
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2019-03-20 22:24:13 -04:00
Dan Ryan 429a7bc2b7 Colorama wrap stream
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-20 21:45:39 -04:00
Dan Ryan 5e2ab186d7 Update resolver to fix tempdir usage
- Fix piptools patch
- Fix windows ansi/colorama implementation
- Write output even if no newline is found during resolution

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-20 20:38:15 -04:00
Dan Ryan fa31b64f37 Update vendored piptools and pip versions
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-20 12:15:00 -04:00
Dan Ryan 00e8685be9 update pip shims
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-20 00:24:10 -04:00
Dan Ryan 1ebebcd7bb Update piptools
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-20 00:04:23 -04:00
Dan Ryan 52cf5e4960 Update to pip 19.0.3
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-19 09:33:11 -04:00
Dan Ryan 729e790ef4 Update pip version
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-19 01:12:54 -04:00
Dan Ryan c34b94e1c2 Remove test for open call since there are no editors in CI
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-18 21:58:51 -04:00
Dan Ryan b3599002d7 Merge branch 'master' into bugfix/2747 2019-03-18 01:14:51 -04:00
Dan Ryan 661184e5cc Merge pull request #3330 from pypa/bugfix/2783
Fix python path discovery if not called python
2019-03-17 23:14:33 -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 a23e9246d6 Update vistir
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:58 -04:00
Dan Ryan d361c86c7d Update azure pipeline scripts
Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure builds

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

Update azure pipeline windows code

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

Update python executable search for windows

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

Fix variable reference

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

Set virtual env variable on windows

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

globally install pipenv on windows

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:54 -04:00
Dan Ryan a17760e223 Update dummy spinner
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:51 -04:00
Dan Ryan dcd5369117 Fix vistir's encoding of terminal output for python 2
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:51 -04:00
Dan Ryan 466fcc0a2a Fix test skip
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:51 -04:00
Dan Ryan 73129d8401 Fix internet connectivity test
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:50 -04:00
Dan Ryan 8fdc589d05 Fix test skip
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:50 -04:00
Dan Ryan e08ce4de05 fix syntax error on python 2
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:50 -04:00
Dan Ryan 089805712a Update safety check command runner to handle exceptions
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:49 -04:00
Dan Ryan 77bac23f93 re-add setting to make environment active when running shell
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:49 -04:00
Dan Ryan cfd1e5992e Make sure python path is a string
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:48 -04:00
Dan Ryan f09e6f5c48 sort imports for easier merge
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:48 -04:00
Dan Ryan fa1c948445 Minor tweaks
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:48 -04:00
Dan Ryan 8da832f44f Update exception formatter
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:47 -04:00
Dan Ryan 6c51b7f0ad Fix windows lookups
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:47 -04:00
Dan Ryan dcfce70817 Fix python path discovery if not called python
- Begin a refactor of `delegator.run` invocation to ensure we capture
  and handle failures with our own exception wrappers
- Additoinally capture output and error logging and command information
  when running in verbose mode (should avoid significant repitition in
  the codebase)
- Refactor `which` and `system_which` to fallback to pythonfinder's
implementation
- Abstract `is_python_command` to identify whether we are looking for
  python, this enables us to rely on `pythonfinder.Finder.find_all_python_versions()`
  to ensure we aren't skipping python versions
- Fixes #2783

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:40 -04:00
Dan Ryan df34b90fc4 Port #3263 with updates
- Allow click's editor to inherit the environment from the subprocess.
- Fixes #2747
- Supersedes, replaces, and closes #3263

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-11 00:46:29 -04:00
Dan Ryan f347eee46e Merge branch 'master' into issue-2747 2019-03-11 00:17:15 -04:00