-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,288 additions
and
474 deletions.
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,29 @@ | ||
Thank you for contributing to Pipenv! | ||
|
||
|
||
##### The issue | ||
|
||
What is the thing you want to fix? Is it associated with an issue on GitHub? Please mention it. | ||
|
||
Always consider opening an issue first to describe your problem, so we can discuss what is the best way to amend it. Note that if you do not describe the goal of this change or link to a related issue, the maintainers may close the PR without further review. | ||
|
||
|
||
##### The fix | ||
|
||
How does this pull request fix your problem? Did you consider any alternatives? Why is this the *best* solution, in your opinion? | ||
|
||
|
||
##### The checklist | ||
|
||
* [ ] Associated issue | ||
* [ ] A news fragment in the `news/` directory to describe this fix with the extension `.bugfix`, `.feature`, `.behavior`, `.doc`. `.vendor`. or `.trivial` (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #. | ||
|
||
<!-- | ||
##### If this is a patch to the `vendor` directory… | ||
Please try to refrain from submitting patches directly to `vendor` or `patched`, but raise your issue to the upstream project instead, and inform Pipenv to upgrade when the upstream project accepts the fix. | ||
A pull request to upgrade vendor packages is strongly discouraged, unless there is a very good reason (e.g. you need to test Pipenv’s integration to a new vendor feature). Pipenv audits and performs vendor upgrades regularly, generally before a new release is about to drop. | ||
If your patch is not or cannot be accepted by upstream, but is essential to Pipenv (make sure to discuss this with maintainers!), please remember to attach a patch file in `tasks/vendoring/patched`, so this divergence from upstream can be recorded and replayed afterwards. | ||
--> |
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,151 @@ | ||
/* | ||
* Konami-JS ~ | ||
* :: Now with support for touch events and multiple instances for | ||
* :: those situations that call for multiple easter eggs! | ||
* Code: https://github.com/snaptortoise/konami-js | ||
* Copyright (c) 2009 George Mandis (georgemandis.com, snaptortoise.com) | ||
* Version: 1.6.2 (7/17/2018) | ||
* Licensed under the MIT License (http://opensource.org/licenses/MIT) | ||
* Tested in: Safari 4+, Google Chrome 4+, Firefox 3+, IE7+, Mobile Safari 2.2.1+ and Android | ||
*/ | ||
|
||
var Konami = function (callback) { | ||
var konami = { | ||
addEvent: function (obj, type, fn, ref_obj) { | ||
if (obj.addEventListener) | ||
obj.addEventListener(type, fn, false); | ||
else if (obj.attachEvent) { | ||
// IE | ||
obj["e" + type + fn] = fn; | ||
obj[type + fn] = function () { | ||
obj["e" + type + fn](window.event, ref_obj); | ||
} | ||
obj.attachEvent("on" + type, obj[type + fn]); | ||
} | ||
}, | ||
removeEvent: function (obj, eventName, eventCallback) { | ||
if (obj.removeEventListener) { | ||
obj.removeEventListener(eventName, eventCallback); | ||
} else if (obj.attachEvent) { | ||
obj.detachEvent(eventName); | ||
} | ||
}, | ||
input: "", | ||
pattern: "38384040373937396665", | ||
keydownHandler: function (e, ref_obj) { | ||
if (ref_obj) { | ||
konami = ref_obj; | ||
} // IE | ||
konami.input += e ? e.keyCode : event.keyCode; | ||
if (konami.input.length > konami.pattern.length) { | ||
konami.input = konami.input.substr((konami.input.length - konami.pattern.length)); | ||
} | ||
if (konami.input === konami.pattern) { | ||
konami.code(konami._currentLink); | ||
konami.input = ''; | ||
e.preventDefault(); | ||
return false; | ||
} | ||
}, | ||
load: function (link) { | ||
this._currentLink = link; | ||
this.addEvent(document, "keydown", this.keydownHandler, this); | ||
this.iphone.load(link); | ||
}, | ||
unload: function () { | ||
this.removeEvent(document, 'keydown', this.keydownHandler); | ||
this.iphone.unload(); | ||
}, | ||
code: function (link) { | ||
window.location = link | ||
}, | ||
iphone: { | ||
start_x: 0, | ||
start_y: 0, | ||
stop_x: 0, | ||
stop_y: 0, | ||
tap: false, | ||
capture: false, | ||
orig_keys: "", | ||
keys: ["UP", "UP", "DOWN", "DOWN", "LEFT", "RIGHT", "LEFT", "RIGHT", "TAP", "TAP"], | ||
input: [], | ||
code: function (link) { | ||
konami.code(link); | ||
}, | ||
touchmoveHandler: function (e) { | ||
if (e.touches.length === 1 && konami.iphone.capture === true) { | ||
var touch = e.touches[0]; | ||
konami.iphone.stop_x = touch.pageX; | ||
konami.iphone.stop_y = touch.pageY; | ||
konami.iphone.tap = false; | ||
konami.iphone.capture = false; | ||
konami.iphone.check_direction(); | ||
} | ||
}, | ||
touchendHandler: function () { | ||
konami.iphone.input.push(konami.iphone.check_direction()); | ||
|
||
if (konami.iphone.input.length > konami.iphone.keys.length) konami.iphone.input.shift(); | ||
|
||
if (konami.iphone.input.length === konami.iphone.keys.length) { | ||
var match = true; | ||
for (var i = 0; i < konami.iphone.keys.length; i++) { | ||
if (konami.iphone.input[i] !== konami.iphone.keys[i]) { | ||
match = false; | ||
} | ||
} | ||
if (match) { | ||
konami.iphone.code(konami._currentLink); | ||
} | ||
} | ||
}, | ||
touchstartHandler: function (e) { | ||
konami.iphone.start_x = e.changedTouches[0].pageX; | ||
konami.iphone.start_y = e.changedTouches[0].pageY; | ||
konami.iphone.tap = true; | ||
konami.iphone.capture = true; | ||
}, | ||
load: function (link) { | ||
this.orig_keys = this.keys; | ||
konami.addEvent(document, "touchmove", this.touchmoveHandler); | ||
konami.addEvent(document, "touchend", this.touchendHandler, false); | ||
konami.addEvent(document, "touchstart", this.touchstartHandler); | ||
}, | ||
unload: function () { | ||
konami.removeEvent(document, 'touchmove', this.touchmoveHandler); | ||
konami.removeEvent(document, 'touchend', this.touchendHandler); | ||
konami.removeEvent(document, 'touchstart', this.touchstartHandler); | ||
}, | ||
check_direction: function () { | ||
x_magnitude = Math.abs(this.start_x - this.stop_x); | ||
y_magnitude = Math.abs(this.start_y - this.stop_y); | ||
x = ((this.start_x - this.stop_x) < 0) ? "RIGHT" : "LEFT"; | ||
y = ((this.start_y - this.stop_y) < 0) ? "DOWN" : "UP"; | ||
result = (x_magnitude > y_magnitude) ? x : y; | ||
result = (this.tap === true) ? "TAP" : result; | ||
return result; | ||
} | ||
} | ||
} | ||
|
||
typeof callback === "string" && konami.load(callback); | ||
if (typeof callback === "function") { | ||
konami.code = callback; | ||
konami.load(); | ||
} | ||
|
||
return konami; | ||
}; | ||
|
||
|
||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { | ||
module.exports = Konami; | ||
} else { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], function() { | ||
return Konami; | ||
}); | ||
} else { | ||
window.Konami = Konami; | ||
} | ||
} |
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 @@ | ||
Fixed the ability of pipenv to parse ``dependency_links`` from ``setup.py`` when ``PIP_PROCESS_DEPENDENCY_LINKS`` is enabled. |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Added environment variable `PIPENV_VERBOSITY` to control output verbosity | ||
without needing to pass options. | ||
Added environment variables `PIPENV_VERBOSE` and `PIPENV_QUIET` to control | ||
output verbosity without needing to pass options. |
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 @@ | ||
Fixed multiple issues with finding the correct system python locations. |
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,4 @@ | ||
Greatly enhanced python discovery functionality: | ||
|
||
- Added pep514 (windows launcher/finder) support for python discovery. | ||
- Introduced architecture discovery for python installations which support different architectures. |
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 @@ | ||
Update ``pythonfinder`` to major release ``1.0.0`` for integration. |
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,2 @@ | ||
Catch JSON decoding error to prevent exception when the lock file is of | ||
invalid format. |
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 @@ | ||
Dependency links to private repositories defined via ``ssh://`` schemes will now install correctly and skip hashing as long as ``PIP_PROCESS_DEPENDENCY_LINKS=1``. |
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 resolution of editable and VCS dependencies. |
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 @@ | ||
Updated documentation to use working fortune cookie addon. |
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,2 @@ | ||
Add ``COMSPEC`` to fallback option (along with ``SHELL`` and ``PYENV_SHELL``) | ||
if shell detection fails, improving robustness on Windows. |
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 @@ | ||
Fixed a bug which sometimes caused pipenv to parse the ``trusted_host`` argument to pip incorrectly when parsing source URLs which specify ``verify_ssl = false``. |
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 @@ | ||
Prevent crashing when a virtual environment in ``WORKON_HOME`` is faulty. |
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 @@ | ||
Fixed virtualenv creation failure when a .venv file is present in the project root. |
Oops, something went wrong.