Commit Graph

915 Commits

Author SHA1 Message Date
Dan Ryan 31301b1536 Fix deps and testing infrastructure
- Fix requirement parsing
- Add appveyor config
- cutover from pathlib to pathlib2 if needed
- Pin pathlib2==2.1.0 to avoid scandir
- Windows script runner fix
- Backport `shlex.quote()` for use in `pipenv run`
- Update tests and appveyor

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-06 23:19:32 -04:00
Frost Ming 786929b0bf remove redundant lines 2018-03-30 22:35:48 +08:00
kennethreitz 4c51214e7e remove --update
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-19 06:46:10 -04:00
kennethreitz 71ad64cc6d white 2018-03-15 07:04:06 -04:00
kennethreitz c2f7f697ee black
https://github.com/ambv/black
2018-03-14 17:00:29 -04:00
Graham Ullrich 086f6d8739 Show formatted help with --help and -h options
Show help for main pipenv command in same format for all three
help invocations:
```
pipenv
pipenv --help
pipenv -h
```
2018-03-14 12:56:56 -06:00
kennethreitz 70fa4aabeb remove background task, as it's problematic #1589 2018-03-12 09:04:52 -04:00
kennethreitz f25609ca47 fix #1669 2018-03-11 14:13:59 -04:00
kennethreitz 511c3460e6 warn if requested update package is not in Pipfile
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-11 08:51:17 -04:00
kennethreitz 642a907f8d fixes #1611 2018-03-11 08:40:25 -04:00
Josh Holland bbce020b1a Don't run another process to print completion script
See #1247.
2018-03-08 17:00:37 +00:00
Josh Holland c17a202cb5 Move handling of --completion earlier to make it way faster
See #1247.
2018-03-07 21:47:48 +00:00
kennethreitz 916fd26eee fix
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-28 11:02:54 -05:00
kennethreitz 58e46534e2 ensure_project in update
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-28 11:01:41 -05:00
kennethreitz fab345c9ea --outdated
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-28 10:06:28 -05:00
kennethreitz 3e10df6435 update individual packages
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-28 09:44:50 -05:00
kennethreitz 1d021cd3ff add update back, sorta
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-28 09:33:17 -05:00
kennethreitz 23dfa96d58 improvements to cli
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-24 11:02:08 -05:00
kennethreitz 525ed7886e --selective-upgrade 2018-02-24 10:06:15 -05:00
kennethreitz acd3fc736d settings
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-24 09:52:05 -05:00
kennethreitz e760efc130 @click.option('--keep-outdated', is_flag=True, default=False, help=u"Keep out–dated dependencies from being updated in Pipfile.lock.") 2018-02-24 09:43:22 -05:00
kennethreitz 40962f6063 --keep-outdated for install 2018-02-24 09:41:04 -05:00
kennethreitz 0411fb29d7 keep_outdated for pipenv uninstall
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-24 09:38:00 -05:00
kennethreitz 4a16d824cf pipenv lock --keep-updated
#1255
2018-02-24 09:31:08 -05:00
kennethreitz e711fe3137 remove jumbotron
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 15:10:58 -05:00
kennethreitz a21160acd1 remove flake8
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 14:53:14 -05:00
kennethreitz bb5a572c44 pipenv clean
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 14:47:48 -05:00
kennethreitz 366ea49edb first pass at 'sync'
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 14:01:19 -05:00
Michał Sochoń be5719109d Update cli.py
Fix broken url.
Fixes #759 again.
2018-02-18 21:00:14 +01:00
Jeff Tratner 34bd253f20 Set pip log level to INFO when verbose
+ allow `-v` to mean `--verbose`
2018-02-17 08:54:26 -08:00
kennethreitz 94b20eb3f5 add --system support to pipenv check
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-13 12:16:15 -05:00
kennethreitz 4c83c9ea2b declare an encoding
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-04 14:16:53 -05:00
kennethreitz 8d3a34d45e cleanup refactor
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-04 14:12:06 -05:00
kennethreitz 63a2cfc542 refactor
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-04 14:09:32 -05:00
kennethreitz 48a020b6d5 lazy load pip
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-04 10:54:53 -05:00
Nate Prewitt ad7229b754 Merge pull request #1362 from berkerpeksag/update-python-versions
Update Python 3.3 and 3.6 versions
2018-01-27 21:44:34 -08:00
Nate Prewitt d6f08de1a6 Merge pull request #1367 from pypa/hotfix/post_901_minor
Post 9.0.1 minor merges
2018-01-27 21:44:00 -08:00
Dan Ryan 1db269847f Fix capitalization 2018-01-27 20:43:41 -05:00
Berker Peksag 4d788d10d1 Update Python 3.3 and 3.6 versions
* 3.3.7 was released on 2017-09-19
* 3.6.4 was released on 2017-12-19
2018-01-28 04:22:23 +03:00
Markus Kaiserswerth a94018f837 pipenv update fails if freeze output contains comments
If the output of ``pip freeze`` contains comments (e. g. a line like ``## !! Could not determine repository location``), then the ``pipenv update`` command fails when it tries to parse the requirements:

``python
(project-cIS5-zzV) bash-3.2$ pipenv update -d
Updating all dependencies from Pipfile…
Traceback (most recent call last):
  File "/.local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/cli.py", line 2559, in update
    do_purge()
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/cli.py", line 1230, in do_purge
    dep = convert_deps_from_pip(package)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/utils.py", line 624, in convert_deps_from_pip
    req = get_requirement(dep)
  File "/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/utils.py", line 311, in get_requirement
    req = [r for r in requirements.parse(dep)][0]
IndexError: list index out of range
``

It tries to make sense of the ``##`` "requirement", which fails.

This commit adds a simple fix to ignore comments in the ``pip freeze`` output.
2018-01-27 15:41:30 -05:00
Dan Ryan 9532637293 Skip search for requirements.txt when provided
- Fixes #1197
2018-01-27 15:41:30 -05:00
Dan Ryan c92693c14f Undo all the cleanup, fix tests 2018-01-27 02:32:15 -05:00
Dan Ryan 5084accb67 Fix click formatting 2018-01-27 02:12:57 -05:00
Dan Ryan 61a0cf9c05 Scrub needless system flag additions 2018-01-27 02:12:57 -05:00
Dan Ryan cd0351c145 Add system flag to all resolve_deps calls
- Add --system Flag to all CLI functions that interact with python
environments
- Add 'envvar' parameter to click options to parse into system flag if
we miss it in environments.py
2018-01-27 02:12:57 -05:00
Dan Ryan 16708a4da5 Pass 'allow_global' to resolve_deps
- Fixes #1002
2018-01-27 02:12:56 -05:00
Nate Prewitt 3170b122b2 fix bad variable assignment 2018-01-26 02:48:17 -08:00
Josh Friend e21e5e1194 Update default python for 3.6.x 2018-01-26 02:47:59 -08:00
Yehuda Deutsch 35a0533e1a Pass clear flag to lock when updating 2018-01-26 02:46:52 -08:00
Nikita Sobolev fc48184b9a Updates cli.py with proper requirements filename
In some systems `Requirements.txt` != `requirements.txt` and this line could possibly bring confusion to users.
Since we are only searching for actual `requirements.txt` in `find_requirements()`: https://github.com/pypa/pipenv/blob/cbcc89bee73e5af2e34252deb686ad7578e14c61/pipenv/utils.py#L1121
2018-01-26 02:23:11 -08:00