-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add spinner during locking #2993
Closed
Closed
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
85c73e3
Add spinner during locking
techalchemy b485bb6
Fix spinner environment detection
techalchemy 272e98c
Add news entries and trusted host fix
techalchemy 7bae105
Fix windows vcs resolution
techalchemy 77d8fea
Provide helper function to decode unicode characters into writeable o…
techalchemy 40ca0bc
Fix windows VCS resolution
techalchemy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enhanced CI detection to detect Azure Devops builds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added a new spinner during ``pipenv lock`` to indicate that pipenv is still actively running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1311,6 +1311,7 @@ def pip_install( | |
trusted_hosts=None | ||
): | ||
from notpip._internal import logger as piplogger | ||
from .vendor.urllib3.util import parse_url | ||
|
||
src = [] | ||
if not trusted_hosts: | ||
|
@@ -1344,7 +1345,8 @@ def pip_install( | |
index_source = index_source.copy() | ||
except SourceNotFound: | ||
src_name = project.src_name_from_url(index) | ||
verify_ssl = True if index not in trusted_hosts else False | ||
index_url = parse_url(index) | ||
verify_ssl = True if index_url.host not in trusted_hosts else False | ||
index_source = {"url": index, "verify_ssl": verify_ssl, "name": src_name} | ||
sources = [index_source.copy(),] | ||
if extra_indexes: | ||
|
@@ -1355,7 +1357,8 @@ def pip_install( | |
extra_src = project.find_source(idx) | ||
except SourceNotFound: | ||
src_name = project.src_name_from_url(idx) | ||
verify_ssl = True if idx not in trusted_hosts else False | ||
src_url = parse_url(idx) | ||
verify_ssl = True if src_url.host not in trusted_hosts else False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. verify_ssl = src_url.host not in trusted_hosts |
||
extra_src = {"url": idx, "verify_ssl": verify_ssl, "name": extra_src} | ||
if extra_src["url"] != index_source["url"]: | ||
sources.append(extra_src) | ||
|
@@ -1383,10 +1386,6 @@ def pip_install( | |
with open(r) as f: | ||
if "--hash" not in f.read(): | ||
ignore_hashes = True | ||
# trusted_hosts = [ | ||
# "--trusted-host={0}".format(source.get("url")) for source in sources | ||
# if not source.get("verify_ssl", True) | ||
# ] | ||
pip_command = [which_pip(allow_global=allow_global), "install"] | ||
if pre: | ||
pip_command.append("--pre") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/pipenv/vendor/vistir/misc.py b/pipenv/vendor/vistir/misc.py | ||
index 723bb117..a18717f4 100644 | ||
--- a/pipenv/vendor/vistir/misc.py | ||
+++ b/pipenv/vendor/vistir/misc.py | ||
@@ -206,7 +206,7 @@ def run( | ||
) | ||
else: | ||
spinner = yaspin | ||
- animation = spinners.Spinners.bouncingBar | ||
+ animation = spinners.Spinners.dots | ||
else: | ||
|
||
@contextmanager |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that the following form is enough:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it is! thanks for the feedback :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bigger fish to fry on this one -- VCS installs are throwing permissions errors :(