Commit Graph

4628 Commits

Author SHA1 Message Date
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
Tzu-ping Chung 3b550d4c4f Ensure skip_requirements is set before use 2018-06-12 23:52:52 +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 caf09662d6 Use constraint lines to update requirements
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 03:05:01 -04:00
Dan Ryan 50be8c31fa Cleanup resolver imports
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 02:43:21 -04:00
Dan Ryan d519718e55 Improved named requirement handling
- Use requirement.requirement.line objects when generating constraints
  for pip

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 23:49:57 -04:00
Tzu-ping Chung fcc4dc5f4d Hint "pipenv run" after creating the virtualenv
Also some refactoring to remove dead code and misleading function name.
2018-06-12 08:57:16 +08:00
Erin O'Connell 0f59c74ac0 try except for first time run of lock 2018-06-11 18:30:04 -06:00
Erin O'Connell 4281eb76e2 Merge branch 'master' into unc-paths 2018-06-11 17:07:36 -06:00
Dan Ryan 863ebbd89e Merge pull request #2287 from skurfer/shell-history
Cleaner shell history
2018-06-11 17:35:47 -04:00
Dan Ryan 487d58adcf Merge branch 'master' into shell-history 2018-06-11 13:03:28 -04:00
Dan Ryan 7c8f574f89 Merge branch 'master' into unc-paths 2018-06-11 13:02:39 -04:00
Dan Ryan eb7d4cde14 Merge pull request #2302 from pypa/bugfix/2260
Update requirementslib
2018-06-11 12:59:50 -04:00
Erin O'Connell 95d2d0ecf5 Merge branch 'master' into unc-paths 2018-06-11 10:43:39 -06: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
Dan Ryan 133344dbe1 Relative import fix
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:12:54 -04:00
Dan Ryan 8feb349cf5 Remove legacy file from requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:08:44 -04:00
Dan Ryan ebb14a290b Fix more relative imports
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan c76db9274d Update requirementslib - fix relative import
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan 9d4c9b1f62 Add init file to requirementslib vendor dir
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan e4290ed5d8 Include vendored pipfile in requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan 3bb81d06c3 Update requirementslib ahead of #2158
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan d86fe41497 Return all sources for Requirement generation
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan 5b12b2cd9e Update Requirementslib calls with new API
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan df0b68d464 Update parsing of editable paths
- handle requirement parse errors more gracefully
- strip quotes
- pass through non-installable paths

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:06:49 -04:00
Dan Ryan a77363cd33 Update requirementslib
- Fixes #2260
2018-06-11 00:06:49 -04:00
Tzu-ping Chung 426dddc12e Merge pull request #2315 from pypa/resolver-refactor
Refactor and cleanup some locking code
2018-06-11 12:06:26 +08:00
Erin O'Connell 6caed81e62 added support for mounted drives via unc paths. 2018-06-09 01:03:01 -06:00
Dan Ryan be75afb2a9 Add a space for markers that we transform
- Cleanup stale comments
- Deterministic ordering for locking

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-08 17:08:57 -04:00
Dan Ryan 0eb9c4c165 Typo... we want the key, not the whole entry
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-08 17:08:57 -04:00
Dan Ryan 168c93cfc1 Check marker key before generating string
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-08 17:08:57 -04:00
Dan Ryan 469db93005 Put a space between marker name and value
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-08 17:08:57 -04:00
Dan Ryan 025f66899b Refactor and cleanup some locking code
- This has been driving me mad.

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-08 17:08:55 -04:00
Dan Ryan 1468b07c80 Merge pull request #2314 from pypa/2310-prepare-vcs-deps-before-resolving
Prepare vcs deps before resolution
2018-06-08 17:01:42 -04:00
Dan Ryan 7fc92d906b Merge branch 'master' into 2310-prepare-vcs-deps-before-resolving 2018-06-08 09:40:16 -04:00
Dan Ryan 0fa7bd8bd9 Merge pull request #2281 from JacobHenner/add_pypi_mirrors
Allow users to override default PyPI index URLs with PyPI mirror URLs
2018-06-08 00:47:35 -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 b6cac22c2f Merge branch 'master' into 2310-prepare-vcs-deps-before-resolving 2018-06-07 18:09:23 -04:00
Dan Ryan a9461cc2e5 Merge pull request #2304 from pypa/tweak-resolver
Resolver Tweaks
2018-06-07 18:09:13 -04:00
Dan Ryan 8af6317aea Merge branch 'master' into 2310-prepare-vcs-deps-before-resolving 2018-06-07 17:31:03 -04:00
Dan Ryan 92286b57a7 Merge branch 'master' into tweak-resolver 2018-06-07 17:20:24 -04:00
Tzu-ping Chung 2b37861f45 Merge pull request #2311 from muxator/patch-2
punctuation: removed unnecessary comma
2018-06-08 01:16:15 +08:00
Tzu-ping Chung b80dc95fdf Merge branch 'master' into patch-2 2018-06-08 01:04:21 +08:00
Tzu-ping Chung e00fce7335 Merge pull request #2309 from pypa/requirementtxt-fix
Don't search for requirements.txt if using pipfile
2018-06-08 01:04:11 +08:00
Tzu-ping Chung 0d5ab61760 Merge branch 'master' into requirementtxt-fix 2018-06-08 00:57:27 +08:00
Rob McBroom a775a85f8c prefix activation command with a space
For ZSH users with HIST_IGNORE_SPACE, this will keep activation noise out of the shell’s history.
2018-06-08 00:20:02 +08:00
Tzu-ping Chung 066dc938bb Merge pull request #2307 from greysteil/fix-typo
Fix typo (actually_resolve_reps -> actually_resolve_deps)
2018-06-08 00:18:39 +08:00
Dan Ryan cdde5b12bb Prepare vcs deps before resolution
- Ensure that VCS dependencies run through the RequirementPreparer
  before we call `get_dist()` on them.
- Fixes #2310

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-07 00:50:44 -04:00
muxator 0ab11ccb68 punctuation: removed unnecessary comma 2018-06-06 10:18:50 +02:00