Commit Graph

30 Commits

Author SHA1 Message Date
frostming 3f053a355f Fix command dispatching 2019-02-27 12:21:23 +08:00
Dan Ryan bfdb9aed87 Fix installed package discovery
- Exclude python when searching virtualenvs created using nested
  virtualenv interpreters (via `lib-dynload` library directory)

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-19 20:29:26 -05:00
Dan Ryan 574fe7308d Update all vendored dependencies
- Clean up test config and environment variable handling
- Unset env var changes performend by `pipenv run`
- Make `environments.is_in_virtualenv()` more dynamic -- read
  environment on the fly
- Split up tests on `pipenv run` to reduce complexity -- one test for
  global run (no virtualenv creation), one test for virtualenv creation
- Add `warn_in_virtualenv` call to `run` command, why doesn't click
  invoke this automatically?

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-21 19:05:25 -05:00
nonylene 64ae1ed8a4 Fix --site-packages flag is not recognized
`site_packages` argument in `cli` function always set to false because `--site-packages` flag was defined in global state (https://github.com/pypa/pipenv/blob/97657b2797b8a8f045776470d74add6048a95b67/pipenv/cli/options.py#L62). 

Fixes #3351
2018-12-05 06:19:32 +09:00
jxltom 97657b2797 Remove duplicate skip-lock option 2018-12-02 15:03:02 +08:00
jxltom accc6ebf4f Resort imports except for patched and vendor 2018-12-01 17:19:41 +08:00
Dan Ryan 438e5cc096 Fix implementation of auto_envvar_prefix
- Fix implementation of `auto_envvar_prefix`
- Pass context setting directly to each command to prevent
  `PIPENV_<CMD>_<OPTION>` syntax, implementation will use
  `PIPENV_<OPTION>` directly (e.g. `PIPENV_DEV=1` or `PIPENV_SYSTEM=1`
- Fixes #3278

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 01:20:49 -05:00
Dan Ryan 45e9f6e417 Fix parsing of markers in VCS requirements
- Parsing of markers in non-editable vcs requirements was broken
- This PR adds some VCS repos, some utility pipfile generation functions
  and some fixture helpers
- Fixes #3249

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-18 23:49:57 -05:00
Dan Ryan 0af5224848 dont distribute tests, it doesn't work
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-15 01:44:35 -05:00
Dan Ryan 04bb9ada05 Fix circular import
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-15 01:01:51 -05:00
Dan Ryan 5e5e1ed4bc Stray print
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-14 12:23:58 -05:00
Dan Ryan e86434328c Merge remote-tracking branch 'devxpy/master' into maintenance/merge-3191-3196-3209
- Closes #2200
- Closes #3112 (via merge)

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-14 00:44:09 -05:00
Dan Ryan ec166f9295 Reformat cli and command code
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-14 00:43:11 -05:00
Dev Aggarwal 18be92b1f4 Merge branch 'master' into master 2018-11-08 05:06:42 +05:30
Tzu-ping Chung ecec1ac0f9 Just format 2018-11-06 15:22:54 +09:00
Dev Aggarwal 9ed610fb10 Merge branch 'master' into master 2018-11-03 12:56:09 +05:30
Dan Ryan 714ff657ca Respect --skip-lock option for uninstall
- Fixes #2848

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-03 00:29:19 -04:00
Dan Ryan 1034022e96 Add improved exception handling and formatter
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-01 00:51:34 -04:00
Dev Aggarwal e2769fe056 Merge branch 'master' into master 2018-10-30 21:55:10 +05:30
jacrotts 1ad684a5ab Implement some behavior for --bare in sync and clean, and add bare as an option to do_clean in cli.py 2018-10-30 10:54:01 -04:00
Dražen Lučanin 3381f178a9 pipenv open custom command help 2018-10-30 10:52:48 -04:00
devxpy 023e7861c3 fix PIPENV_SKIP_LOCK for pipenv unisntall command. 2018-10-28 00:36:45 +05:30
Dan Ryan 485da19d7c Make pre a kwarg
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-11 11:55:11 -04:00
Dan Ryan 91d8d7e494 Fix install state passing
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-11 06:28:10 -04:00
Gabi Nagy 62c2bd78ca Clarify pipenv install documentation
`if no packages are given` sounds a bit better than
`if none is given` when referring to `provided packages`.

Also mention that `pipenv install` with no provided packages
installs all packages from Pipfile. It is not obvious for
people new to pipenv whether pipenv is using Pipfile or
Pipfile.lock by default.
2018-09-14 11:23:03 +08:00
Dan Ryan 88df20084c Add missing skip_lock option
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00
Dan Ryan c611b1e7ad Fix lock -r output to include all markers
- Fixes #2748

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00
Dan Ryan d3cf11d302 Fix some typos
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00
Dan Ryan f7db50e8fb Cleanup unicode literals warnings
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00
Dan Ryan cd5cad30be Refactor CLI for organization and simplicity
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-09-05 12:47:10 +08:00