Commit Graph

2624 Commits

Author SHA1 Message Date
Dan Ryan de02f531ff Cleanup artifacts of earlier fixes
- Only remove 'vcs+' pattern from URI in convert_deps_from_pip if the
requirement uri explicitly begins with requirement.vcs+
2017-11-27 12:55:47 -05:00
Dan Ryan c9ae3708ff Only strip VCS prefix for URIs with vcs+ patterns
- Fixes #1126
- Does a simple check before stripping the VCS prefix on
a requirement.uri in pipenv.utils.convert_deps_from_pip
2017-11-27 12:09:19 -05:00
Nate Prewitt 8a880296f8 Merge pull request #1125 from delirious-lettuce/fix_typos
Fix typos
2017-11-26 22:50:18 -08:00
Delirious Lettuce 6cbd38f46d Fix typos:
`resursively` | `recursively`
  `additonal` | `additional`
  `occured` | `occurred`
  `vulnerabilties` | `vulnerabilities`
  `gven` | `given`
  `pipenev` | `pipenv`
  `requirments` | `requirements`
  `virtualenvrionment` | `virtualenvironment`
  `envrionment` | `environment`
  `dependecies` | `dependencies`
  `requiments` | `requirements`
  `Seperated` | `Separated`
  `bugifx` | `bugfix`
  `supression` | `suppression`
  `intall` | `install`
  `Suport` | `Support`
  `autocurrections` | `autocorrections`
  `coccurency` | `concurrency`
  `consistient` | `consistent`
  `saftey` | `safety`
  `afer` | `after`
  `configuraable` | `configurable`
  `remporary` | `temporary`
  `depdendencies` | `dependencies`
  `pactched` | `patched`
2017-11-26 23:26:24 -07:00
Erin O'Connell 33d7393228 Update HISTORY.txt 2017-11-23 10:22:17 -07:00
Erin O'Connell d92ceef691 Merge pull request #1109 from darkfeline/fix
Prompt for confirmation before replacing existing virtualenv
2017-11-23 10:20:53 -07:00
Erin O'Connell 57192443a1 Merge pull request #1117 from helderco/fix-lock
Fix "connection reset by peer" when grabbing hashes during lock
2017-11-23 10:01:44 -07:00
Erin O'Connell 7603783d8f Merge pull request #1112 from vphilippon/stay-in-our-own-cache
Use the pipenv cache path in the patched pip-tools
2017-11-22 21:26:21 -07:00
Vincent Philippon 6d4e0a143c Use the pipenv cache path in the patched pip-tools 2017-11-22 22:12:43 -05:00
Allen Li ccf22d5ae2 Prompt for confirmation before replacing existing virtualenv
Fixes https://github.com/kennethreitz/pipenv/issues/997
2017-11-22 11:38:49 -08:00
Helder Correia 06745ab73e Fix "connection reset by peer" when grabbing hashes 2017-11-22 17:36:22 -01:00
kennethreitz 822679ef56 Merge pull request #1095 from techalchemy/bugfix/1083-install-local-path
Properly split and parse requirements lines
2017-11-21 19:54:00 -05:00
Erin O'Connell c3b08ed55f hide the element using jquery 2017-11-20 20:02:05 -07:00
Erin O'Connell 007f24cfa9 Update hacks.html 2017-11-20 19:40:50 -07:00
Erin O'Connell 11e878d819 hid the search bar while links are broken 2017-11-20 19:30:58 -07:00
Erin O'Connell 22df63ea71 Update HISTORY.txt 2017-11-19 21:53:07 -07:00
Erin O'Connell 898e4de2bb Merge pull request #1096 from kennethreitz/issue-1087
Fixes encoding issue with environment variables from .env files
2017-11-19 19:53:08 -07:00
Dan Ryan 35d5457823 Add tests for local package extras
- Will be even more complete with #1098
2017-11-19 20:49:49 -05:00
Erin O'Connell ddde2b227e merging a PR from the official dotenv repo that addresses the newline issue 2017-11-19 15:59:16 -07:00
Erin O'Connell aac0ef92a5 moved dotenv from vendor to patched 2017-11-19 15:17:51 -07:00
Erin O'Connell 0a5e5dab48 removed unnecessary encoding 2017-11-18 23:18:48 -07:00
Dan Ryan 1d751a13f1 Properly split and parse requirements lines
- Split out markers and local paths
- Fixes #870 and #1083 and #858
- Also splits markers properly using pip's approach
- The requirements parser we use really needs a lot of help
2017-11-18 19:02:39 -05:00
Nate Prewitt 0bf74bf4c6 Merge pull request #1090 from techalchemy/master
Revert "In HackedPythonVersion, patch sys.version_info"
2017-11-17 17:13:35 -08:00
Dan Ryan d73217fbb9 Revert "In HackedPythonVersion, patch sys.version_info"
This reverts commit 73ba65fabb.
2017-11-17 19:15:47 -05:00
Nate Prewitt 478848d685 Merge pull request #1078 from MarcDufresne/master
Fix #1054, 'Using <python> to create virtualenv' now outputs to stderr
2017-11-17 12:25:11 -08:00
Nate Prewitt 562d8d353e Merge pull request #1086 from henryiii/patch-2
Fix #1085 for Python 2
2017-11-17 09:35:58 -08:00
Henry Schreiner 8d55d47e7d Fix #1085 for Python 2
This is needed to get pipenv to work on Python 2 hosts (current version on PyPI is broken). Adds the base class of `FileNotFoundError` and adds the default argument of `None` to the `utime` call.
2017-11-17 10:43:32 -05:00
Marc-André Dufresne c279beca85 Fix #1054, 'Using <python> to create virtualenv' now outputs to stderr 2017-11-16 16:31:17 -05:00
Nate Prewitt d7f1b61a1a Merge pull request #1076 from kennethreitz/mock-sys-version
In HackedPythonVersion, patch sys.version_info
2017-11-16 11:29:08 -08:00
Vincent Philippon f19ee4283e A dot and an if away from salvation 2017-11-16 13:22:30 -05:00
Vincent Philippon 73ba65fabb In HackedPythonVersion, patch sys.version_info
This is required to have pip/pip-tools get the right wheels according to
the project virtualenv python version.
2017-11-16 12:58:47 -05:00
kennethreitz 908b41df75 add shellquote
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-11-16 09:44:01 -05:00
Erin O'Connell 8deba2e33e version bump 2017-11-15 23:23:05 -07:00
Erin O'Connell 2275ad5b44 kenneth is awesome 2017-11-15 22:47:59 -07:00
Nate Prewitt 023696e469 Merge pull request #1066 from techalchemy/bugfix/1056-unparsed-reqs-in-pipfile
Stop writing unparseable requirements to Pipfiles
2017-11-15 16:50:17 -08:00
Dan Ryan 7f26c16102 Update test to not test for anything like cli arg
- Use a clearly unparseable package name instead
2017-11-15 19:05:00 -05:00
Dan Ryan 28907ef29c Stop writing unparseable requirements to Pipfiles
- Add better exception handling and error messaging for parse errors
- Add test to verify this is now being handled correctly
- Fixes #1056
2017-11-14 21:11:11 -05:00
Nate Prewitt f8e418a5f6 Merge pull request #958 from techalchemy/bugfix/relative-directories
Relative file and path installation
2017-11-14 16:09:37 -08:00
Dan Ryan 2b1e1607f3 Fix missing commit from tests
* everything else is good to go (verified)
* Fixes #949, #939, #817, #914, #1012, #1028, #1025, #960, #1043, #1045
2017-11-14 12:35:15 -05:00
Dan Ryan d320bc4b1e Fix local and relative path installation
Summary of squashed commits:
* Handle relative paths more elegantly
* Wrapper around requirements.parse() for filesystem paths
* Undo previous hacks for simplicity
* Vendor pathlib2 for backwards compatibility
* Resolve relative paths for parsing, keep them relative in pipfile
* Add checks for empty req names and remote uris
* Add tests for local paths
* Fix test paramaterization
* Bugfixes for python27 and windows paths
* Fix windows tests
* Fix windows tests for python27 path encoding
* Re-vendor pathlib2 correctly
* Fix tests for windows paths
* Fix file and path checking
* Fix SCHEME_LIST rename
* Fix path resolution to check existence first
* Catch OSErrors for unpinned dependencies
* Last holdout of FILE_LIST conversion
* Fix for path resolution for unpinned packages
* Dont do path conversions on dictionaries
* Update docstring and comments

Signed-off-by: Dan Ryan <dan@danryan.co>
2017-11-14 00:39:57 -05:00
Dan Ryan 24b445a96a WIP: Relative file and path installation
* Issues - #949, #939, #936 and to a lesser extent #817 #540 and more
* Fixed: Local file path installation (resolves in pipfile as relative
path)
* Pass file:// URI to Requirements library for resolving

TODO:
* Ignore non-explicit directory paths lacking os.sep or ./
* Add tests
2017-11-14 00:30:31 -05:00
kennethreitz a5798c59c1 Merge pull request #1047 from jonathn/fix-pipenv-run-args
Ensure 'run <command>' arguments are not stolen by 'run' arguments
2017-11-13 20:15:36 -05:00
Dan Ryan d22a7a352b Merge pull request #1053 from tedmiston/bash-completion
Add bash shell completion instructions
2017-11-13 17:42:34 -05:00
Taylor D. Edmiston 35a5157f56 Add bash shell completion instructions 2017-11-11 14:24:18 -05:00
Jon a480b69f99 Ensure 'run <command>' arguments are not stolen by 'run' arguments 2017-11-08 17:38:41 -06:00
kennethreitz 40a2ac6244 who wrote this shit 2017-11-08 11:51:41 -05:00
kennethreitz e365c6804f Update advanced.rst 2017-11-08 11:49:57 -05:00
Nate Prewitt e8f031a0d1 Merge pull request #1041 from techalchemy/bugfix/virtualenv-bin-python-check
Check if virtualenv location really exists
2017-11-07 23:26:19 -08:00
Dan Ryan a4aca53b5d Check if virtualenv location really exists
- Check if virtualenv_location exists as an os path as part of the virtualenv_exists check
- Fixes #969
2017-11-08 01:33:25 -05:00
Nate Prewitt 94640b88b9 Merge pull request #1039 from eli-b/patch-1
Fixed a typo in a docstring
2017-11-06 11:43:34 -08:00