Commit Graph

405 Commits

Author SHA1 Message Date
Dan Ryan f6cff554f4 update tests to remove False key during comparison
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-05 00:43:08 -04:00
Dan Ryan 08f61e7684 Switch to checks for Mapping type and proper bool
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-04 15:55:52 -04:00
Dan Ryan fcfebaf1cc Only use -e for install when editable=True
- Fixes #2121
- Add tests for regressions

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-04 15:55:52 -04:00
Tzu-ping Chung 0984bab787 Do not expand environ in cache on package install
Fix #2100.
2018-05-05 01:04:36 +08:00
Dan Ryan f0c33367fa Parse and include extras from vcs and non-vcs urls
- Include extras when rebuilding urls from pipfiles
- Fixes #1997, #2128

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 22:43:30 -04:00
Tzu-ping Chung d21efa08c7 Check lockfile exists on sync, and don't update it
Matching the behaviour mentioned in:
https://github.com/pypa/pipenv/issues/1463#issuecomment-386297896
2018-05-03 19:18:45 -04:00
Kyle Altendorf e4270dc292 Merge remote-tracking branch 'upstream/1847-newlines' into 1847-newlines 2018-05-03 12:20:59 -07:00
Tzu-ping Chung 116ce7191d Better test errors and remove useless newline='' 2018-05-04 02:39:53 +08:00
Dan Ryan d26e16a539 Read in universal newline mode
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 12:08:59 -04:00
Dan Ryan a075445367 Updated versions
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 11:59:55 -04:00
Kyle Altendorf ab63176851 Add message to newline assertions
Compensating for https://github.com/pytest-dev/pytest/issues/3443
2018-05-03 08:45:44 -07:00
Kyle Altendorf 536d6febc3 Revert "Update newline tests"
This reverts commit 18704a5e21.
2018-05-03 08:38:33 -07:00
Kyle Altendorf 8a25696528 Revert "Update newline check"
This reverts commit 415566f5d6.
2018-05-03 08:38:25 -07:00
Dan Ryan 5718ae8f42 Fix newline tests for windows
- Adjust for proper parameterization

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-03 03:27:45 -04:00
Dan Ryan 415566f5d6 Update newline check
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-02 22:40:38 -04:00
Dan Ryan 18704a5e21 Update newline tests 2018-05-02 20:49:52 -04:00
Kyle Altendorf 0aeee15c29 Merge branch 'master' into 1847-newlines 2018-05-02 09:23:02 -04:00
Tzu-ping Chung 2dc999292e Use the mock PyPI 2018-05-02 17:07:49 +08:00
Tzu-ping Chung 7aff2c1cc7 Merge branch 'master' into always-use-pipfile-for-sources 2018-05-02 16:58:59 +08:00
Tzu-ping Chung 95643e9007 Merge branch 'master' into feature/backport-namedtemporaryfile 2018-05-02 16:46:30 +08:00
Grey Baker 8c0936faf6 Always use sources from Pipfile when doing resolution 2018-05-01 15:14:12 +01:00
Grey Baker 85d4734e12 Add test for lock --keep-outdated behaviour 2018-05-01 11:34:46 +01:00
Dan Ryan 34caffc797 Backport NamedTemporaryFile for io.open support
- Allows atomic locking to use `newline` argument

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-30 23:35:58 -04:00
Kyle Altendorf 6d2e208aae Default to \n, retain consistent \r\n
When writing the Pipfile and Pipfile.lock make an effort to retain
their existing newlines if consistent.  Default to \n (LF) for new
files and files with inconsistent line endings.
2018-04-26 15:50:43 -04:00
Dan Ryan 9ab2af879e Fix tests to grab key from pipfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-24 21:52:18 -04:00
Dan Ryan a38d551131 Add test for vcs installs of local paths
- Ensure they do not wind up in the lockfile

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-24 20:19:34 -04:00
Dan Ryan fd031b4331 Add wheel wheel
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-19 21:10:31 -04:00
Dan Ryan e177327c52 Add setuptools wheel
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-19 20:11:39 -04:00
Dan Ryan cda3283004 Merge branch 'master' into add-pipfile-env-test 2018-04-18 21:34:52 -04:00
Stephan Eckardt c35cb56d85 Parse pypy3 version string 2018-04-18 12:28:09 +02:00
Dan Ryan 3722d8a8cf Add pipfile env var expansion and test
- Fixes #1906

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 17:24:39 -04:00
Dan Ryan 31a4a75c98 Sort items before comparison
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 01:52:16 -04:00
Dan Ryan 7a8d01edc3 Fix tests and index url fetching code per requests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-17 01:16:49 -04:00
Dan Ryan b89a73c895 Update tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:55:46 -04:00
Dan Ryan 81a2367e75 Run private indexes in uncached tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:05 -04:00
Dan Ryan 8d20caf294 Update test pypi index
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:04 -04:00
Dan Ryan c78628ba54 Add test coverage for all fixes
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:04 -04:00
Dan Ryan f93b9f2428 Add tests for project source changes
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 23:15:04 -04:00
Dan Ryan 8705147674 Fix installation test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-16 20:59:23 -04:00
Dan Ryan a9a0cf550b Merge branch 'master' into purge-rfc3339-timestamp 2018-04-16 19:18:24 -04:00
Tzu-ping Chung 6bfa525fd3 Add tests for prettytoml datetime 2018-04-16 15:30:00 +08:00
Dan Ryan 748be89435 Set python encoding to utf-8 for jenkins
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-13 21:11:54 -04:00
Dan Ryan a8729f0222 Fix jenkins tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-13 21:10:55 -04:00
Dan Ryan a36239ff68 Make all imports relative
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-13 21:02:43 -04:00
Dan Ryan cf3c561100 Pass environment to subprocess
- `check_output` needs to pass `PYTHONIOENCODING` to `Popen` on python2

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-12 19:41:01 -04:00
Tzu-ping Chung 5b2db86fa9 Add a trivial test for help 2018-04-13 00:10:45 +08:00
Tzu-ping Chung d8b1d637e0 Missed path fix 2018-04-12 18:11:59 +08:00
Tzu-ping Chung 9d83f6d8e0 Fix Windows test marker 2018-04-12 18:06:46 +08:00
Tzu-ping Chung 60a48c0436 Inject environs in another way 2018-04-12 18:03:36 +08:00
Tzu-ping Chung fabaa4955f Mock finalize 2018-04-12 18:01:43 +08:00