Commit Graph

598 Commits

Author SHA1 Message Date
Dan Ryan c8c78931f5 Merge branch 'master' into bugfix/3249 2018-11-19 12:20:09 -05:00
Frost Ming e575f87074 Merge branch 'master' into editable-packages-fix 2018-11-19 14:27:58 +08:00
Dan Ryan 5b460706c4 Merge branch 'bugfix/3239' into bugfix/3249 2018-11-19 00:04:36 -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
Frost Ming e909d9b84f do not check on windows
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-18 09:42:04 +08:00
Frost Ming 5e94bcb595 fix case for windows
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-18 08:56:43 +08:00
Frost Ming 6cfa466672 Merge branch 'master' into master 2018-11-18 08:52:13 +08:00
Chris Miller cba5a1efc6 Remove debug print from test. 2018-11-17 12:52:12 -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
Frost Ming 32f5d85b0b Pop VIRTUAL_ENV env
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 19:42:43 +08:00
Frost Ming 915b3c1334 ignore PIPENV_ACTIVE in testing
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 18:23:28 +08:00
Frost Ming a8f52eb0a6 determin virtualenv location on the run
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 17:51:26 +08:00
Frost Ming df924d3ea3 Merge branch 'master' into editable-packages-fix 2018-11-17 17:50:10 +08:00
frostming 905c8c062a Derive missing values of source from existing fields
Signed-off-by: frostming <mianghong@gmail.com>
2018-11-17 15:50:19 +08:00
Frost Ming 748d22b2f2 virtualenv fixture and a test case
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 13:08:12 +08:00
Frost Ming ff8d17f383 switch to pathlib tmpdir
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 08:59:06 +08:00
Chris Miller 70f6bec85e Use cross platform Path compatibility module in test. 2018-11-16 13:33:22 -05:00
Frost Ming 483621f478 recognize editable packages as in project
Signed-off-by: Frost Ming <mianghong@gmail.com>
2018-11-17 00:10:46 +08:00
Chris Miller 65e49f1bff Print generated Pipfile during test to help debug failures. 2018-11-16 10:23:51 -05:00
Chris Miller db1eb1bacb Use correct Path module to get tests to work. 2018-11-16 10:23:51 -05:00
Chris Miller a95ce8bb32 Remove unnecessary test marks and imports. 2018-11-16 10:23:51 -05:00
Chris Miller 262293699e Fix race condition when installing 2+ editable non-VCS pkgs at once
This regression was recently introduced, and only affects non-vcs
packages. The effect of the race is that installations of multiple
editable non-VCS sourced packages at once may cause some of them to be
un-importable.

The fix is to make editable package installs Blocking just like VCS
installs are.
2018-11-16 10:23:51 -05:00
Dan Ryan f9b97dacc7 Get rid of split file test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-13 19:07:06 -05:00
Dan Ryan c3cdbfb10b Merge remote-tracking branch 'frostming/improve-toml-parse' into maintenance/merge-3191-3196-3209
- Merge #3191, #3196, and #3209
- Closes #3191
- Closes #3196
- Closes #3214
- Closes #3209

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-13 10:35:04 -05:00
Dan Ryan 2b90c89d1f Revendor requirementslib
- Implement improvements and bugfixes in codebase
- Remote archives will now resolve properly

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-11 16:30:42 -05:00
frostming 53b073c7ff python 2.7 unicode 2018-11-08 15:20:47 +08:00
frostming 1555200463 Add back some tests 2018-11-08 14:59:59 +08:00
frostming e147dc3ade Drops prettytoml/contoml form vendors 2018-11-08 10:57:20 +08:00
frostming 3eba19d359 Improve toml parsing 2018-11-08 10:22:26 +08:00
Dan Ryan 1cb610981f Merge branch 'master' into non-ascii-toml 2018-11-07 10:16:11 -05:00
Tzu-ping Chung 86a2786954 Quote command if it contains parentheses
The command can be safely quoted in this case since non-quotable commands
(cmd built-in) do not have parentheses.

Note that this change only applies to the command, not arguments.
Parentheses in arguments can be correctly interpreted without quotes, and
the quotes, like spaces, will cause incorrect outputs for echo etc.
2018-11-07 20:42:35 +09:00
frostming 3dcd206068 Fix non-ASCII support for prettytoml 2018-11-06 16:05:13 +08:00
Tzu-ping Chung 41023c33ae Upgrade some requirements to address security warning 2018-11-06 15:46:14 +09:00
Dan Ryan 978497183f Merge branch 'master' into proper-case-windows 2018-11-01 19:29:44 -04:00
Dan Ryan 83af37a2d1 Fix uninstallation if comments are present
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-01 16:20:45 -04:00
jxltom 9ff61c777b Add tests for locking editable packages with ref 2018-10-30 10:54:04 -04:00
Dan Ryan d069dff844 Update project and spinner outputs
Signed-off-by: Dan Ryan <dan@danryan.co>

Try again

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix test config to skip failed removals

Signed-off-by: Dan Ryan <dan@danryan.co>

Update piptools to handle some errors

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix test config to skip failed removals

Signed-off-by: Dan Ryan <dan@danryan.co>

Update tempfile.py

Use vistirs temporary directory implementation

Update temp_dir.py

Force pip to use weakrefs in tempdirs

Fix pip implementation to set name of tempdir

typo fix

Signed-off-by: Dan Ryan <dan@danryan.co>

fix pip tempdir implementation

Signed-off-by: Dan Ryan <dan@danryan.co>

Update tempfiles to use weakrefs

Signed-off-by: Dan Ryan <dan@danryan.co>

fix patch paths

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix pip tempdir implementation

Signed-off-by: Dan Ryan <dan@danryan.co>

Syntax error fix

Signed-off-by: Dan Ryan <dan@danryan.co>

Unconstrain windows tests

Signed-off-by: Dan Ryan <dan@danryan.co>

Update dependencies, add news

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix pythonfinder path search nesting bug

- Fixes #3121

Signed-off-by: Dan Ryan <dan@danryan.co>

Update requirementslib

- Fix subdirectory issue

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix logic error

Signed-off-by: Dan Ryan <dan@danryan.co>

conditional builds

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:26 -04:00
Dan Ryan 6294c57070 Update pythonfinder
Signed-off-by: Dan Ryan <dan@danryan.co>

More debugging info

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix stdout write bugs

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner invocations

Signed-off-by: Dan Ryan <dan@danryan.co>

Create missing directory

Signed-off-by: Dan Ryan <dan@danryan.co>

Filesystem encode envvars

Signed-off-by: Dan Ryan <dan@danryan.co>

convert envvars to strings

Signed-off-by: Dan Ryan <dan@danryan.co>

Update encodings

Signed-off-by: Dan Ryan <dan@danryan.co>

Update vistir to init colorama

Signed-off-by: Dan Ryan <dan@danryan.co>

Update vistir version number

Signed-off-by: Dan Ryan <dan@danryan.co>

add some debugging and vsts changes

Signed-off-by: Dan Ryan <dan@danryan.co>

fix delegator mod

Signed-off-by: Dan Ryan <dan@danryan.co>

Log to stderr so we can see it

Signed-off-by: Dan Ryan <dan@danryan.co>

Log to stderr so we can see it

Signed-off-by: Dan Ryan <dan@danryan.co>

Try importing colorama...

Signed-off-by: Dan Ryan <dan@danryan.co>

change variable setting syntax

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:12 -04:00
Dan Ryan 4dac167657 Vendor boltons
Signed-off-by: Dan Ryan <dan@danryan.co>

Update vendored dependencies

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix file handle leaks

- Fix #3020
- Fix #3088
- Patch delegator
- Add weakref finalizer for tempfiles

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner handlers on windows

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner output and encoding issue

Signed-off-by: Dan Ryan <dan@danryan.co>

fix encoding

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix unicode output on windows, fix tomlkit imports

Signed-off-by: Dan Ryan <dan@danryan.co>

Unvendor boltons, fix compatibility, update merge functionalities

Signed-off-by: Dan Ryan <dan@danryan.co>

Update pythonfinder, vistir version, requirementslib version

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix vendoring script

Signed-off-by: Dan Ryan <dan@danryan.co>

Silence pip version checks

Signed-off-by: Dan Ryan <dan@danryan.co>

Add debugging to locking

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:07 -04:00
frostming 14be3db996 Add test case for #3105 2018-10-26 17:22:41 +08:00
jxltom 91a63e07e2 Add test on locking package with extras 2018-10-21 12:53:33 +08:00
Dan Ryan 9bdbe3464d syntax error...
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-13 04:42:32 -04:00
Dan Ryan 329183019a fix installation of non-editable requirements
- Fix tests to ensure commands return prior to follow ups

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-13 04:27:21 -04:00
Dan Ryan e79f470f83 Merge branch 'master' into fixed-editable-package-with-marker-cannot-lock 2018-10-12 15:34:02 -04:00
Dan Ryan b408fd3dd3 Fix pipenv clean tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-10 10:18:57 -04:00
Grey Baker e04b84d36b Fix parsing of outline tables 2018-10-09 23:10:47 +01:00
jxltom 6525e31e51 Add test on locking editable package with markers 2018-10-08 13:20:54 +08:00
Jon Dufresne 4851fe513c Correct capitalization of PyPI
As spelled on https://pypi.org/.
2018-09-16 11:37:23 -07:00
Dan Ryan 3d33e5a257 Update requirementslib and fix VCS installation
Signed-off-by: Dan Ryan <dan@danryan.co>

Don't re-clone repos now that this works

Signed-off-by: Dan Ryan <dan@danryan.co>

Prune peeps directory from manifest

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix nonetype uris

Signed-off-by: Dan Ryan <dan@danryan.co>

Manually lock requirements?

Signed-off-by: Dan Ryan <dan@danryan.co>

Update requirementslib - leave context before updating sha

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix requirementslib vcs checkouts

Signed-off-by: Dan Ryan <dan@danryan.co>

fix tmpdir implementation

Signed-off-by: Dan Ryan <dan@danryan.co>

final fix for vcs uris

Signed-off-by: Dan Ryan <dan@danryan.co>

Allow for adding requirements objects directly to pipfile

Signed-off-by: Dan Ryan <dan@danryan.co>

Update piptools patch

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