Commit Graph

229 Commits

Author SHA1 Message Date
Dan Ryan 846b67f521 Update PEP 508 dependency parsing implementation
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-24 01:21:46 -05:00
Dan Ryan 86ca6ff6ee Fix direct url dependency resolution
- Fix dependecy resolution for _all_ dependencies which are just
  direct URLs or files
- Bypass pip-tools for non-editable requirements which can be resolved
- Fixes #3148

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-23 12:41:43 -05:00
jxltom a873e7c2e3 Merge branch 'master' into activate-custom-virtualenv 2019-01-18 12:40:23 +08:00
Frost Ming 11b8d19c2f Merge branch 'master' into bugfix/3449 2019-01-18 11:32:39 +08:00
jxltom d17d46256c Merge branch 'master' into activate-custom-virtualenv 2019-01-18 09:05:43 +08:00
Frost Ming 3800ef1261 Merge branch 'master' into bugfix/3446 2019-01-17 21:40:09 +08:00
Adam Goldschmidt c3e3cfb015 add .news file to describe the fix 2019-01-17 14:10:41 +02:00
Adam Goldschmidt b60439db37 handle non-URL sources - raise PipenvUsageError 2019-01-17 14:07:54 +02:00
Frost Ming 9dab05d64e Update the index names in lock file 2019-01-17 12:04:05 +08:00
Frost Ming bd1bebb957 Fix order of hashes 2019-01-17 09:41:35 +08:00
Frost Ming ba9f5057b8 Populate source when getting lockfile 2019-01-09 10:07:26 +08:00
jxltom ce143942eb Merge remote-tracking branch 'upstream/master' into activate-custom-virtualenv 2018-12-16 18:29:06 +08:00
Frost Ming c433262847 Update news/3384.bugfix.rst
Co-Authored-By: alexallah <alex.allah@gmail.com>
2018-12-14 20:22:06 -08:00
Alexander Allakhverdiyev f4f5acbd38 added news file 2018-12-14 19:37:52 -08:00
Dan Ryan 670b010d6f Merge branch 'master' into verbose-run 2018-12-08 18:39:41 -05:00
nonylene 0498b46f02 Merge branch 'master' into patch-1 2018-12-09 02:53:10 +09:00
Frost Ming 7f5676e2b8 add news 2018-12-06 15:05:54 +08:00
nonylene e229f7e038 Rename 3352.bugfix.rst to 3351.bugfix.rst 2018-12-05 06:41:06 +09:00
nonylene eff802a62d Create 3352.bugfix.rst 2018-12-05 06:28:36 +09:00
Refael Ackermann 5c8ecfc86f fixup! add news 2018-12-04 12:10:37 -05:00
jxltom 0df02b4c28 Merge branch 'master' into activate-custom-virtualenv 2018-12-03 09:35:45 +08:00
jxltom 5e29e7635e Add bugfix news for 3339 2018-12-01 21:01:25 +08:00
Frost Ming 7718350f2f Don't normalize name when writing Pipfile
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-12-01 19:44:10 +08:00
Dan Ryan 6fc740abbf Merge branch 'master' into quote-carets 2018-11-28 23:53:20 -05:00
Olivier Bellone 79da8e3825 Handle alternate names for UTF-8 encoding 2018-11-28 12:53:00 +01:00
Tzu-ping Chung 6a93e6cf44 Quote arguments with carets for cmd.exe
Carets introduce a difficult situation since they are essentially
"lossy" when parses. Consider this in cmd.exe:

    > echo "foo^bar"
    "foo^bar"
    > echo foo^^bar
    foo^bar

The two commands produce different results, but are both parsed by the
shell as `foo^bar`, and there's essentially no sensible way to tell what
was actually passed in. This implementation assumes the quoted variation
(the first) since it is easier to implement, and arguably the more common
case.
2018-11-28 19:30:45 +08:00
Frost Ming 6873145116 Abort pipenv when pip install fails 2018-11-28 16:42:14 +08:00
Dan Ryan 742ae1b99b Release v2018.11.26 2018-11-26 01:56:25 -05:00
Dan Ryan 93f82c477e Fix accidentally-shortened installation timeouts
- Fixes #3244

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-26 00:40:01 -05:00
Dan Ryan 9e0d6bc1e3 Update release scripts, fix packaging scripts
- Fix `PIPENV_PYTHON` envvar which auto-recreated environments due to
  `auto_envvar_prefix`, now it is not pulled from the environment
  automatically
- Fix formatting of some news entries
- Automate release via `inv release.release` (will be aliased)

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 20:53:37 -05:00
Dan Ryan 4e44229700 Merge branch 'master' into bugfix/3296 2018-11-24 19:29:21 -05:00
Dan Ryan a08a2da524 Don't give child deps of vcs deps auto-precedence
- Stop preferring resolution of VCS dependencies in all cases
- Resolve vcs dependencies together with non-vcs dependencies
- Clarify blocking and no-deps logic
- Add artifacts and tests
- Add vendoring task for artifacts
- Clean up release tasks
- Fixes #3296

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 17:10:45 -05: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 9b1b901efc Fix hash caching race condition
- Clean up more unused code
- Fixes #3289

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 16:41:55 -05:00
Dan Ryan 5b9643e585 Unset PYTHONHOME during non-global installs
- Fixes #3261

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 01:04:30 -05:00
Grey Baker 16f6ab1707 Clear pythonfinder cache after Python install 2018-11-22 23:04:43 +00:00
Dan Ryan 91aed84ffc Add news 2018-11-22 11:12:39 -05:00
Dan Ryan 18f8c0a403 Write warnings to stderr during resolution
- Fixes #3273

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-21 13:09:46 -05:00
Dan Ryan d6bce73046 Ignore hashes when using --skip-lock
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 15:12:35 -05:00
Dan Ryan f99de85ef7 Fix pipfile creation with unnamed project
- Fixes #3260

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:00:53 -05:00
Dan Ryan 69e9459ef2 Merge branch 'master' into swgillespie/toctou-mkdir 2018-11-19 19:44:44 -05:00
Sean Gillespie 537e7b4779 Add 3257.bugfix.rst in news 2018-11-19 16:04:52 -08:00
Dan Ryan dc8913065f Fix parsing of named setup.py extras
- Fixes #3230

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-19 17:58:44 -05:00
Dan Ryan 8049b4ff6e Merge branch 'master' into vendoring-update 2018-11-19 13:56:17 -05:00
Dan Ryan c8c78931f5 Merge branch 'master' into bugfix/3249 2018-11-19 12:20:09 -05:00
Dan Ryan ddd6744a15 Merge branch 'master' into bugfix/3239 2018-11-19 09:00:29 -05:00
Dan Ryan 9560aa60aa Update requirementslib and pythonfinder
- Fixes #3242
- Fixes #3232
- Fixes #3229
- Fixes #3234

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-19 01:09:32 -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 589b1a4f20 Redirect all spinner output to stderr
- Fixes #3239

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-17 21:47:54 -05:00
Frost Ming 6901eae31d expand env before run script
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 22:53:07 +08:00