Commit Graph

730 Commits

Author SHA1 Message Date
kennethreitz f4d8f3199e Merge pull request #241 from blueyed/fix-requirements-help
Fix help for --requirements in lock command
2017-02-24 12:01:28 -05:00
Daniel Hahler 7bc32f3ae2 Fix help for --requirements in lock command 2017-02-24 17:58:19 +01:00
Nate Prewitt 9c5fe2f824 Update README.rst 2017-02-24 07:51:58 -07:00
Nate Prewitt 7f2bce5397 updating HISTORY 2017-02-21 10:34:50 -07:00
Nate Prewitt a6e87c6af1 Merge pull request #238 from simnalamburt/issue-228
Hash the project path and use it as a virtualenv's name
2017-02-21 10:30:46 -07:00
Hyeon Kim ed6b73c84f Limit the maximum length of virtualenv_name 2017-02-21 14:27:28 +09:00
Hyeon Kim a81197d6bf Change the naming scheme of virtualenv
New property has been added as discussed as
https://github.com/kennethreitz/pipenv/pull/238#discussion_r102049269

    project.virtualenv_name

It'll be '<sanitized-name>-<hash>' where <sanitized-name> is a project
name without whitespaces, and hash is base64-encoded sha256 of pipfile
location.

For example, if the pipfile was located at '/home/user/MY_PROJECT/Pipfile',
the 'virtualenv_name' will be 'my-project-wyUfYPqE'.

Closes #228

References:
  https://github.com/kennethreitz/pipenv/issues/228
  https://github.com/kennethreitz/pipenv/pull/238
2017-02-21 14:03:44 +09:00
Hyeon Kim b425977ce0 Double quote the paths
This commit is part of the implementation of 'Plan B' mentioned at #228,
but I found that it cannot solve the issue due to the bug of pip. (see
pypa/pip#923)

References:
  https://github.com/kennethreitz/pipenv/issues/228#issuecomment-280230269
  https://github.com/pypa/pip/issues/923
2017-02-20 22:59:49 +09:00
Nate Prewitt 67e090f2d7 multiple source support 2017-02-19 13:34:06 -07:00
Nate Prewitt b4d16d0077 Merge pull request #233 from arruda/pip_download_respect_sources
Make pip_download respect project.sources
2017-02-19 13:17:36 -07:00
Felipe Arruda Pontes 493458cdfc breaking code for delegator.run and the cmd string into 2 different lines. 2017-02-19 14:31:13 -03:00
Nate Prewitt 7db9086e84 v3.4.2 v3.4.2 2017-02-17 09:35:26 -07:00
Nate Prewitt 67b081cfad adding test for multi-dashed package names 2017-02-17 08:38:22 -07:00
Felipe Arruda Pontes c0dcf130f2 some tests to check if pip_download is using all sources 2017-02-17 10:30:21 -02:00
Felipe Arruda Pontes bec324a194 making pip_download use all available sources by passing the -i arg to pip for each source 2017-02-17 01:16:40 -02:00
Nate Prewitt 943dccecb9 Update HISTORY.txt 2017-02-16 13:20:32 -07:00
Nate Prewitt 1937dd25df adding psutil as dependency for click-completion 2017-02-15 15:58:56 -07:00
Nate Prewitt be68accaea prepare formatted content outside of write block
This is specifically to avoid having an exception
raised while the file is open for writing. Otherwise,
we end up with an empty file if something goes wrong.
2017-02-14 21:19:15 -07:00
kennethreitz 6eb16cd053 Update README.rst 2017-02-14 17:02:20 -05:00
kennethreitz 1c760445f3 update readme too 2017-02-14 17:00:43 -05:00
kennethreitz 71002fd8a5 better 2017-02-14 16:58:57 -05:00
kennethreitz a0156d28d4 better headings 2017-02-14 16:58:02 -05:00
kennethreitz 01f904fed3 fixes 2017-02-14 16:57:05 -05:00
kennethreitz e3e7d361e4 Merge branch 'master' of github.com:kennethreitz/pipenv 2017-02-14 16:50:11 -05:00
kennethreitz 6545f1d191 testimonials 2017-02-14 16:49:16 -05:00
Nate Prewitt cd5e622992 Merge pull request #224 from jaap3/patch-1
Add missing backtick in advanced usage docs
2017-02-14 06:14:48 -07:00
Jaap Roes 826d72141d Add missing backtick 2017-02-14 09:36:05 +01:00
Nate Prewitt 92f073dca2 updating HISTORY 2017-02-13 20:16:50 -07:00
Nate Prewitt d1e9f86d95 Merge pull request #222 from arruda/extra-index
Add extra-index-url support
2017-02-13 20:14:20 -07:00
Felipe Arruda Pontes 97426bf145 rm mock for project.virtualenv_location in tests, fixing some url in tests and other typos as well 2017-02-13 21:19:36 -02:00
Nate Prewitt 3122f5f7b3 Merge pull request #223 from flou/master
Add missing comma in packages list
2017-02-13 07:29:53 -07:00
Lou Ferrand f0b7a82891 Add missing comma in list 2017-02-13 11:24:19 +01:00
kennethreitz 450dd77809 history v3.4.1 2017-02-12 19:23:32 -05:00
kennethreitz 3cd1877b6e v3.4.1 2017-02-12 19:22:08 -05:00
kennethreitz 62b65b1ed0 Automatically enable --no-interactive, when applicable. 2017-02-12 19:18:51 -05:00
Nate Prewitt 3ecdb05f6e 3.4.0 v3.4.0 2017-02-12 16:10:19 -07:00
Felipe Arruda Pontes a79843107e adding tests for pip_install 2017-02-11 23:06:28 -02:00
Felipe Arruda Pontes 4dd3cccafa adding mock to test the methods 2017-02-11 23:01:30 -02:00
Felipe Arruda Pontes dc02663c66 making cli.proper_case use a new method that runs through all sources in project.sources, and return the Request's return for the first one that
hit OK, or neither did ok, then raise an exception.

Also doing something similar to `cli.pip_install` so that it will try to pip install for all the sources and return the first cmd that worked or the last that didn't work.
2017-02-11 23:01:30 -02:00
Felipe Arruda Pontes b3af3f06e8 changing project.source to project.sources and making it return a list as default instead of just the first source present 2017-02-11 23:00:56 -02:00
Nate Prewitt 4f9d27aba6 removing unneeded pew test 2017-02-11 15:34:40 -07:00
Nate Prewitt 32d9d88c05 updating run-tests in Makefile 2017-02-11 14:58:38 -07:00
Nate Prewitt d9333e0548 updating HISTORY 2017-02-11 14:38:57 -07:00
Nate Prewitt bc7587127d Merge pull request #218 from kennethreitz/refactor
[WIP] Better package name handling, location caching and testing
2017-02-11 14:15:30 -07:00
Nate Prewitt 547a084d3b test adding and removing packages from Pipfile 2017-02-10 11:54:07 -07:00
Nate Prewitt 81572271f1 cleanup 2017-02-10 11:03:44 -07:00
Nate Prewitt 289a148037 Merge remote-tracking branch 'upstream/master' into refactor 2017-02-10 10:56:51 -07:00
Nate Prewitt 13cfbd4ca3 cleanup 2017-02-10 10:07:28 -07:00
Nate Prewitt faeb5f1329 caching pipfile_location and testing 2017-02-10 09:22:25 -07:00
Nate Prewitt 69a89ec8df tests for utils (hashes, revisions, and versions) 2017-02-10 07:52:15 -07:00