Commit Graph

5363 Commits

Author SHA1 Message Date
Dan Ryan 6518325a3c Stop using subprocess to interface with windows finder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:04:43 -04:00
Dan Ryan a709bf845f Update pythonfinder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:04:43 -04:00
Tzu-ping Chung 10749cc66c Don't fallback if a command is not found 2018-07-25 17:04:39 -04:00
Tzu-ping Chung 3a734f1ef0 Proper subprocess decoding 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 07a64777b4 Unused 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 0b7b0c983a Refactor and docstring for find_a_system_python 2018-07-25 17:03:41 -04:00
Tzu-ping Chung a2f8442179 We DONT want sys.executable when searching
sys.executable should be the last resort if the user gives us nothing. If
we are given ANYTHING, we should avoid using sys.executable.
2018-07-25 17:03:41 -04:00
Tzu-ping Chung 9cb3f970bd Clean up help module 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 27028e1942 Possibly stray echo 2018-07-25 17:03:41 -04:00
Dan Ryan 861c075876 Use new api in help methods
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 8bb39a412a Fix version iteration in pythonfinder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 2de9505668 Fix system path iterator
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 08cb159e22 Windows fix
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 0d7afadd63 Update pythonfinder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 597cd2d917 Cleanup core and help to use new finder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan b93b287fc9 Try the new code
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 50aff8e330 Update pythonfinder
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 5366253f39 More robust path searching
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan c6fb1ea31f Fix path search to include prereleases
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 684475e2c6 More debugging
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan dd06342428 More debug info for buildkite
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan c6a3284d30 Updated buildkite to set home properly
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 5da85d34b3 Add some debugging
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 26c34641d1 Updated buildkite to echo out the path
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan aeb07cdec0 Fix search path
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan 33328c435a Fully integrate pythonfinder for system pythons
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Dan Ryan d3d5d563e7 Update pythonfinder and make full use of it in support calls
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 17:03:41 -04:00
Tzu-ping Chung b82d5587e3 Tape directly into Pythonfinder instead 2018-07-25 17:03:41 -04:00
Tzu-ping Chung d5cebedee8 Keep logic of using actual Python commands 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 59b974bfc1 Use Pythonfinder in help 2018-07-25 17:03:41 -04:00
Tzu-ping Chung ac41cdcf4e Remove duplicate and unused code 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 6d7b26ae6c Minimal Pythonfinder intergration 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 0d2ceb6312 Pull in PythonFinder updates 2018-07-25 17:03:41 -04:00
Tzu-ping Chung 9e2f8295c1 Merge pull request #2645 from pypa/bugfix/2527-pipenv-verbosity
PIPENV_VERBOSITY
2018-07-25 15:46:27 +08:00
Tzu-ping Chung 68b1bce503 News 2018-07-25 15:36:03 +08:00
Tzu-ping Chung cd82cdba63 Invert the verbosity flag (lower is less verbose) 2018-07-25 15:28:55 +08:00
Ethan Fulbright 7abd45f02d Move PIPENV_VERBOSITY to correct place in alphabet
Oops.
2018-07-25 15:24:54 +08:00
Ethan Fulbright 118469db3b Add verbosity int variable, use capsys in test_core
Changed PIPENV_SUPPRESS_NESTED_WARNING to PIPENV_VERBOSITY, an integer
value that defaults to 0 (verbose).
Changed test in test_core.py to use capsys to capture standard
output/error in order to improve compatibility with Python 2.
2018-07-25 15:24:54 +08:00
Haplo 7c681cc139 Add ability to suppress nested venv courtesy notice
Added an environment variable, PIPENV_SUPPRESS_NESTED_WARNING, to be
used to suppress the courtesy notice from warn_in_virtualenv.
Changed wording of the courtesy notice to mention suppression variable.
Fixes #2527.
2018-07-25 15:24:54 +08:00
Dan Ryan d33c4e86e1 Fix exception handling
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-25 00:14:44 -04:00
Dan Ryan dc97d73e62 Add exception handling for non-existent setup_py_dir
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 23:37:28 -04:00
Dan Ryan c584739b41 Handle NoneType paths
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 20:31:27 -04:00
Dan Ryan 1c6acfecb5 Ensure that we use posix style strings instead of Path objects for chdir context manager
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 20:24:06 -04:00
Dan Ryan 6e38560a7f Add chdir context manager and properly run setup.py files during resolution
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 19:36:28 -04:00
Dan Ryan 5334183c43 Make sure there is a link to check against
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 19:11:36 -04:00
Dan Ryan f3e4e73cff Fix resolution using dependency_links with ssh
- Exclude VCS SSH uris from hashing
- Add additional resilience to the piptools resolver
- Fixes #2613

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 18:43:28 -04:00
Dan Ryan 00dd845372 Enable parsing of dependency links in setup.py
- Fixed errors with url parsing during hashing

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 18:43:28 -04:00
Dan Ryan 350aedeb15 Add news entry for #2641
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-07-24 18:43:12 -04:00
Dan Ryan 2fd9d30dcf Merge pull request #2641 from pypa/bugfix/2623-windows-python-in-msys
Support Msys Bash
2018-07-24 18:33:58 -04:00
Tzu-ping Chung 4a6f071cfe Improve emulator detection for multiple values
Running MSYS inside Cmder now returns "cmder,msys", and can look up the
shell correctly.
2018-07-24 20:20:22 +08:00