Commit Graph

33 Commits

Author SHA1 Message Date
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 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
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
jxltom 9ff61c777b Add tests for locking editable packages with ref 2018-10-30 10:54:04 -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
jxltom 91a63e07e2 Add test on locking package with extras 2018-10-21 12:53:33 +08:00
jxltom 6525e31e51 Add test on locking editable package with markers 2018-10-08 13:20:54 +08:00
Louie Lu 79349dd8f1 Addressed uranusjr comments 2018-07-30 12:22:52 +08:00
Louie Lu 553ed8258c Add JSONDecodeError handling for get_lockfile_hash
Now will return None when facing JSONDecodeError when loading the lockfile.

do_init will remove the old lockfile and replace it.
2018-07-30 12:22:52 +08:00
Jacob Hayes 1ceccb9bdf Fix extras check in test 2018-07-11 23:32:43 -05:00
Jacob Hayes 6de915ab79 [#2504] Replace security extra with socks in test 2018-07-11 08:19:42 -05:00
Jacob Hayes f0a1413c70 [#2504] Add test for VCS dep with extras 2018-07-10 20:58:35 -05:00
Dan Ryan f60d702259 Skip test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 17:04:28 -04:00
Dan Ryan ec45919346 Use environment python via pipenv call
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 16:29:10 -04:00
Dan Ryan bb4d1f235d Check for python 3
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 15:44:25 -04:00
Dan Ryan cbbd94217d Update resolver to use venv python.
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-27 15:05:12 -04:00
Dan Ryan 42b2026b66 use internet pypi 2018-06-27 10:27:59 -04:00
frostming 698c9be64e add tests 2018-06-27 13:12:41 +08: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 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
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
Dan Ryan 8abb764ce8 Update pypi urls
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-17 14:43:09 -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
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 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
Tzu-ping Chung 4533e68bca Move things around 2018-04-12 17:35:17 +08:00