Commit Graph

4547 Commits

Author SHA1 Message Date
Tzu-ping Chung 1afee9a118 Merge pull request #2401 from pypa/tests-16.0
Tests 16.0
2018-06-24 14:45:12 +08:00
Dan Ryan 9624dce80a Windows relpath fix with requirementslib update
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 01:01:30 -04: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 5402a9bc0f Bump requirementslib version
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 00:06:31 -04:00
Dan Ryan 4b63fe5086 Update requirementslib again
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 00:03:10 -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 cc8984b447 Update requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 22:18:26 -04:00
Dan Ryan 37ba557110 Get rid of em-dashes from cli and man help
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 20:33:12 -04:00
Dan Ryan f307507371 Merge pull request #2384 from pypa/exclude-failing-markers
Exclude failing markers
2018-06-22 16:45:20 -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 f91c9e0d06 Update news
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 15bcf36467 Catch AttributeErrors when resolving sdists
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 9f58768ead Exclude dependencies with failing markers from lock
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan fde4a89a95 Merge pull request #2385 from pypa/avoid-shell-in-run-if-possible
Use shell=False when "run" if possible on Windows
2018-06-22 14:44:50 -04:00
Dan Ryan 1091ccb73f Added news item for feature
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 14:38:19 -04:00
Dan Ryan ef38b6e685 Merge branch 'master' into avoid-shell-in-run-if-possible 2018-06-22 03:18:09 -04:00
Dan Ryan 82bf57a729 Merge pull request #2386 from pypa/python2-dotenv-subprocess-conflict
Ensure environs are strings on Python 2 + Windows
2018-06-22 03:17:54 -04:00
Dan Ryan 154f13a26a Added news entry for patch
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 03:07:54 -04:00
Tzu-ping Chung 1ce00f922a Ensure environs are strings on Python2 + Windows
Patch based on theskumar/python-dotenv#101 by @greyli.
2018-06-22 03:07:54 -04:00
Dan Ryan beb6aef7dd Merge branch 'maxk-fix-empty-requires' 2018-06-22 02:06:09 -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
Max Krivich 0ef4929098 Fix CI errors 2018-06-22 02:00:50 -04:00
Max Krivich 0353b81b98 Update too complex if statement
Quick refactor for improve readability of code
2018-06-22 02:00:50 -04:00
Max Krivich 64c5ad9907 Change exception message 2018-06-22 02:00:50 -04:00
Max Krivich ebb07002d2 Fix empty indexes in cli param
Add extra check for -i option for fix `AttributeError: 'NoneType'`

To reproduce this bug `pipenv install <module> -i`
2018-06-22 02:00:50 -04:00
Max Krivich 252be32578 Fix cli option usage error
Fix IndexError exception when `more_packages` is empty and add the more
informal message for argument usage.

To reproduce this issue `pipenv install -e`
2018-06-22 02:00:50 -04:00
Tzu-ping Chung f8775b32e7 Use shell=False when "run" if possible on Windows
Do a "where" on the command; if it is found, prevent the intermediate
COMSPEC and use CreateProcess directly. Only use shell=True if the command
is not an executable.

This prevents some unexpected behaviour caused by the intermediate shell
process.
2018-06-19 23:09:12 +08:00
Dan Ryan 2a9bb815ff Updated changelog
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 20:14:45 -04:00
Dan Ryan 9195d3aa83 Merge pull request #2377 from pypa/2343-requires-python
Add conversion methods for requires-python formats
2018-06-18 16:09:21 -04:00
Dan Ryan 423b02efba Merge branch 'master' into 2343-requires-python 2018-06-18 14:42:23 -04:00
Dan Ryan d213e7c3d8 Merge pull request #2379 from pypa/2179-pipenv-update
Switch all update workflows to `pipenv lock/sync`
2018-06-18 14:42:10 -04:00
Dan Ryan 71ff85770e Fix isdigit check and bump version to dev0
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 11:45:07 -04:00
Dan Ryan 25e93251d8 Merge pull request #2376 from pypa/update-changelog
Update changelog
2018-06-18 11:42:52 -04:00
Dan Ryan 97bb50d344 Add conversion methods for requires-python formats
- Handle single-digit un-specified requires-python format
- `Requires-Python: 3` should be functionally equivalent to `>=3,<4`
- Fixes #2343

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 11:41:45 -04:00