Commit Graph

615 Commits

Author SHA1 Message Date
Frost Ming 6873145116 Abort pipenv when pip install fails 2018-11-28 16:42:14 +08:00
Dan Ryan 1ed7ae9e68 Fix vcs locking, prefer pipfile entries once locked
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 19:28:50 -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 2b1ea9ee8a Add test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 18:06:12 -05:00
Dan Ryan ef42f84427 Add artifacts and fix hash gathering
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 17:59:05 -05:00
Dan Ryan 14a0766791 Update test to patch new mkdtemp target
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 02:15:50 -05:00
Dan Ryan 00203980f2 More robust static serving
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-23 00:22:09 -05:00
Dan Ryan a3b5e8f374 Fix local serving of static resource fixtures
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 17:05:57 -05:00
Dan Ryan 2a7cc26767 Fix broken tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 13:55:50 -05:00
Dan Ryan 9dbe52177f clone a fresh copy of six before running tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 13:50:37 -05:00
Dan Ryan 66e9822d8a Potentialy speed up tests, decrease network calls"
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 13:32:34 -05:00
Dan Ryan aa01c59632 Add pyinstaller
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-22 12:27:02 -05:00
Dan Ryan 1c7bb3afd9 Fix test for warnings
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-21 22:58:54 -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 feab1aed39 Fix failures from missing pipfile before install
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:27:31 -05:00
Dan Ryan 0bf7a48451 Make sure we actually create the pipfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-20 11:21:02 -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 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