2744 Commits

Author SHA1 Message Date
kennethreitz 761073f3f1 next version v9.0.2 2018-01-16 10:45:51 -05:00
kennethreitz d026a83da3 Merge pull request #1235 from pypa/hotfix/parse_url_to_link
Properly parse urls as Link objects
2018-01-16 10:07:26 -05:00
kennethreitz e4237196fb Merge pull request #1289 from pypa/revert-1233-tmpfile_cleanup
Revert "Clean up temporary files created during installation"
2018-01-16 10:07:05 -05:00
kennethreitz 1afaa0a748 history 2018-01-16 10:04:30 -05:00
kennethreitz 3d562ca899 lazy load modules 2018-01-16 09:59:35 -05:00
kennethreitz bdcf7cc40d lazy load modules 2018-01-16 09:54:14 -05:00
kennethreitz e5cbf97b48 improved installation instructions 2018-01-16 09:45:36 -05:00
kennethreitz 0e993a711b changelog 2018-01-16 09:43:23 -05:00
kennethreitz ce6827d5a2 changelog 2018-01-16 09:42:56 -05:00
kennethreitz e29d7ee45e appears to be working 2018-01-16 09:40:59 -05:00
kennethreitz a975318e21 in theory, support environment varibles for sources 2018-01-16 09:20:10 -05:00
kennethreitz b3674d74a6 docstring 2018-01-15 16:59:05 -05:00
kennethreitz 855214c549 initial support for pip config 2018-01-15 11:17:23 -05:00
Nate Prewitt 6292d87875 Merge pull request #1298 from cclauss/patch-2
Missing comma in __all__ tuple?
2018-01-14 00:06:45 -08:00
cclauss 694afba17d missing comma in __all__ tuple? 2018-01-14 07:44:23 +01:00
Dan Ryan 8d8f0f8261 Revert "Clean up temporary files created during installation" 2018-01-11 22:14:16 -05:00
Dan Ryan 5034ad67bf Differentiate urls and paths when generating reqs 2018-01-11 16:07:51 -05:00
Dan Ryan 451045ce7d Properly parse urls as Link objects
- Fixes #1121
- Adds a bunch of tests for pipenv.utils.get_requirement()
2018-01-11 16:05:10 -05:00
kennethreitz d8dc25b289 Merge pull request #1244 from pypa/hotfix/handle_drive_parsing_error
Fix ensure_project bug on windows when missing pipfile
2018-01-11 14:15:15 -05:00
kennethreitz f5b482453f Merge pull request #1233 from OddBloke/tmpfile_cleanup
Clean up temporary files created during installation
2018-01-11 14:12:18 -05:00
kennethreitz 8e377dafd2 Merge pull request #1236 from pypa/hotfix/local_files_to_pipfile
More thorough checks before resolving files
2018-01-11 14:11:03 -05:00
kennethreitz 5959b3c256 Merge pull request #1241 from OddBloke/1240
Don't shellquote backup Python executable
2018-01-11 14:10:26 -05:00
kennethreitz 394bf305aa Merge pull request #1242 from pypa/hotfix/ignore_extra_requirements_txt
Skip search for requirements.txt when provided
2018-01-11 14:09:14 -05:00
kennethreitz f6026ecf0a Merge pull request #1268 from mkai/patch-2
pipenv update fails if freeze output contains comments
2018-01-11 14:06:59 -05:00
kennethreitz afb5e6a0aa Merge pull request #1275 from tonybaloney/tox-pipenv
Add a reference to a 3rd party plugin for tox
2018-01-11 14:06:38 -05:00
kennethreitz 08c01cb1ca Merge pull request #1282 from dongweiming/fix-verbose
Fix uninstall package error in verbose mode
2018-01-11 14:06:25 -05:00
Nate Prewitt 8f322b004c Merge pull request #1287 from karec/master
replace netloc by hostname when adding trusted-host arg to pip
2018-01-11 10:21:27 -08:00
emmanuel valette 56c693028d replace netloc by hostname when adding trusted-host arg to pip 2018-01-11 16:44:16 +01:00
Nate Prewitt ec0c99847a Merge pull request #1278 from bbelyeu/fix-link
Fix bad link in pipenv --envs output
2018-01-10 16:44:56 -08:00
kennethreitz 6b79aceffc Update sidebarintro.html 2018-01-10 10:08:31 -05:00
kennethreitz ceccd25373 Update sidebarlogo.html 2018-01-10 10:06:27 -05:00
dongweiming a0e3f0ee17 Fix uninstall package error in verbose mode 2018-01-09 18:29:07 +08:00
Brad Belyeu 55ef58216c 🐛 Fix bad link in pipenv --envs output 2018-01-08 16:20:51 -06:00
Anthony Shaw 0843ec63bc add reference to plugin 2018-01-08 14:35:39 +11:00
kennethreitz 14b7c1ae16 Merge branch 'master' of github.com:kennethreitz/pipenv 2018-01-06 09:02:39 -05:00
kennethreitz 462ffc3e97 3.6.4
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-01-06 09:02:27 -05:00
Nick Coghlan 7847324f93 Link to OWASP Top 10 from docs (#1269)
* Link to OWASP Top 10 from docs
2018-01-04 18:38:56 -08:00
Markus Kaiserswerth f322d93578 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-04 12:13:53 +01:00
Nate Prewitt 68d1a29ecd fix bad variable assignment 2018-01-02 22:15:44 -08:00
dragon788 50ad7746ee Fixed broken links to fancy install methods (#1258)
* Fixed broken links to fancy install methods

Outside of the TOC blocks it was referring to install.html instead of /install/ and resulted in broken links.
2018-01-01 18:48:08 -08:00
Nate Prewitt e45b597f8d Merge pull request #1250 from joshfriend/python-3.6.4
Update default python for 3.6.x to 3.6.4
2017-12-26 08:14:18 -08:00
Josh Friend fc6fc16f4a Update default python for 3.6.x 2017-12-26 11:11:19 -05:00
Daniel Watkins c4aa4d2aa2 Explicitly cause dependency resolution failure in the test
This also moves to using projects that are more closely related to this
one as the examples.
2017-12-22 17:23:42 -05:00
Daniel Watkins b0111b5dc9 Make test assertions match the test name more closely
This updates
test_editable_vcs_install_in_pipfile_with_dependency_resolution_doesnt_traceback
to check (a) that dependency resolution was triggered, and (b) that
there was no traceback (rather than just the specific traceback we are
currently seeing).
2017-12-22 17:14:17 -05:00
Daniel Watkins c097d5bd96 Fix tmpfile cleanup for non-blocking pip_install calls
Before this commit, we were cleaning up the tmpfiles before the pip
command had run, meaning we hit errors.
2017-12-22 16:19:18 -05:00
Daniel Watkins ba9c434157 Clean up temporary files created during install
This encapsulates two places that temporary files are created: during
dependency resolution, and for the actual call to pip install.
2017-12-22 16:19:18 -05:00
Daniel Watkins 7025b682ab Don't write editable requirements to a temporary file
We never need to read from the file, so it's unnecessary.
2017-12-22 16:19:18 -05:00
Daniel Watkins 416eb667fd Remove commented line 2017-12-22 16:19:18 -05:00
Daniel Watkins 81ed62f997 Don't create the test tmpdir within the test project
This causes issues with recursion when installing the test project.
2017-12-22 16:19:18 -05:00
Daniel Watkins 0022981fe4 Add PipenvInstance.tmpdir to capture temporary artifacts during testing
This allows tests to assert that files aren't being left in the
temporary directory.
2017-12-22 16:19:18 -05:00