Commit Graph

472 Commits

Author SHA1 Message Date
Dan Ryan 3084801e89 Fix CLI tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-28 20:40:50 -04:00
Dan Ryan d1ada29b00 Update with latest updates from master
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-28 18:52:46 -04:00
Tzu-ping Chung 0ac156c567 WIP core move-out 2018-06-28 18:57:55 +08:00
Dan Ryan 39a363b780 Update references to Path
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 22:28:31 -04:00
Dan Ryan 88ff271a8d Fix tests for python 37
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 00:58:06 -04:00
Dan Ryan 1fd2247bb6 Fix test to account for name resolution of editable deps
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-26 20:10:45 -04:00
dnoetzel 0a5d83b2bd Merge branch 'master' into bugfix-439 2018-06-25 15:16:56 -05:00
David Noetzel 4b4b384fe0 Add failing test 2018-06-25 14:39:50 -05:00
Dan Ryan 9bcd668dac Slight tweak to api, add test, add news
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-25 02:43:03 -04:00
Tzu-ping Chung eafc97590d Fix docstrings that occurs in wrong places. 2018-06-25 00:55:42 +08:00
Tzu-ping Chung d382842dd8 Remove unused utility function
All get_converted_relative_path usages are now pushed into
requirementslib.
2018-06-24 15:55:06 +08:00
Dan Ryan 3bfab233f5 Unicode file data
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 00:10:36 -04:00
Dan Ryan 30b6425d57 Updated requirementslib and tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 23:35:35 -04:00
Dan Ryan aa82db02f7 Update test with comments + minor tweak
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:32:20 -04:00
Dan Ryan cf8fcfd8c6 Merge branch 'tests-16.0' of github.com:pypa/pipenv into tests-16.0 2018-06-23 20:28:36 -04:00
Dan Ryan ef913b2148 Tests for #2273 and #2301
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:27:08 -04:00
Erin O'Connell d6adc1efa5 test skipping requirements if there is a lockfile or package name is specified 2018-06-23 18:15:03 -06:00
Dan Ryan b2f6932a13 Add tests for #2309
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:57:06 -04:00
Dan Ryan 6b8649f575 Add test for #1861
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:46:51 -04:00
Dan Ryan dca353ffdb add test for #2192
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:18:18 -04:00
Dan Ryan 6a4831bccd Fix broken test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 12:19:32 -04:00
Dan Ryan 5d76b404f4 Add some tests
- the rest of the to-do items are at https://github.com/pypa/pipenv/projects/2
- We just need to review the items in the 'needs tests' column to ensure
  that they either have tests, or don't need to have tests
- If they need tests, and they don't yet have tests, we need to write
  them and make sure they pass
- Then we can release. No more features/bugfixes, this is now how it's
  going out.

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 03:01:20 -04:00
Dan Ryan 74430df2f3 Add tests to cover #2260
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 01:43:12 -04:00
Dan Ryan b74c6586fa Minor control flow and test logic updates
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 6343acb4cc Use the real marker parser -- confirmed working
Signed-off-by: Dan Ryan <dan@danryan.co>

Typo fix

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

Move away from structlog for testing

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

Remove em-dash and ellipsis characters

- Replace with dashes and dots

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan efe39654bb Update integration test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 6c62d94c3b Fix pip cahce dir argument
Signed-off-by: Dan Ryan <dan@danryan.co>

Add snaptime sdist

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

Update core.py encoding and add gitattributes

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

Fix deploy test

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

Add pytest things

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

Add py sdist

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 32a89d9342 explicitly turn possible InlineTableElement to dict
Signed-off-by: Dan Ryan <dan@danryan.co>

Add updated regex dependency

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan c31a311dc7 Minor code cleanup
Signed-off-by: Dan Ryan <dan@danryan.co>

Add pytz and certifi updates

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

Fix nondeterministic resolution bug

- Update dependencies
- Fix some issues with test logic
- Update piptools patch

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

Update more packages

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

Update tests and utils

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

Still need to tackle last few failures

- this will seriously help with resolution issues

Add alembic new version

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 93aceb1cc5 Add pytz-2018 wheel
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan c76b95db34 Add test for install -e
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 02:05:44 -04:00
Dan Ryan 1c04960653 Add test to verify pipenv update
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 11:28:17 -04:00
Dan Ryan 1c054c3701 Fix VCRPy test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan 7bfa60e90b Add test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan a5c876b931 Add ref to vcs install
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan 6a0a34b415 Fix uri conversion
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:41:15 -04:00
Dan Ryan bca3e1fa61 fix tests
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:34:41 -04:00
Dan Ryan 18f6e94602 Fix iterator that i broke for reasons
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:26:16 -04:00
Dan Ryan 470abeffde Update resolve() calls and requirementslib
- Accommodate ramdisks

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-13 18:59:43 -04:00
Dan Ryan ca05f2f3d6 Test fix and merge
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-13 11:49:17 -04:00
Dan Ryan 15f091783b Fix VCS test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 20:33:25 -04:00
Tzu-ping Chung e5ec2ed4fa More tests 2018-06-13 01:06:07 +08:00
Tzu-ping Chung 45004214bf Add failing test cases 2018-06-13 00:34:41 +08:00
Dan Ryan 9e04a85b8c I have fixed the test.
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 03:38:26 -04:00
Dan Ryan bc8639b181 Add ruamel.ordereddict wheel for cp27mu
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:31:49 -04:00
Jacob Henner af91eb68bb Add support for PyPI mirrors
Adds support for the --pypi-mirror command line parameter and the
PIPENV_PYPI_MIRROR environment variable for most pipenv operations.
This permits pipenv to function without pypi.org, which is necessary for
users:

    1. behind restrictive networks
    2. facing strict artifact sourcing policies
    3. experiencing poor performance connecting to pypi.org
    4. who've configured a local cache for performance reasons

When specified, the value of this parameter replaces all instances of
pypi.org and pypi.python.org within pipenv operations without modifying
or requring the modification of Pipfiles.

- Resolves #2075
2018-06-07 18:24:18 -04:00
Tzu-ping Chung d48e97e1a8 Respect PATHEXT when looking for Win executable
... as idiomatic in Windows programming.
2018-06-03 15:51:37 +08:00
Andrew Haigh eb839e52b6 Add test of behaviour in issue #2229
requirements.txt files (and by extension pipfreeze) can contain comment
lines, but the stdout of pip freeze is used in a number of places with
the assumption that every line contains a dependency declaration. This
change adds an integration test that could trigger one of these cases
that was the cause of the behaviour seen in issue #2229.
2018-06-01 07:24:34 +08:00
Dan Ryan 60e108cb17 Move requirements tests to requirement library
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:31 -04:00
Dan Ryan b2085cb058 Mark pipenv check as flaky
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00