Commit Graph

4352 Commits

Author SHA1 Message Date
Tzu-ping Chung a5e69e4a61 Comments 2018-05-28 13:37:34 +09:00
Dan Ryan 824f822bc7 Don't shell escape posix-style paths
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 14:34:21 -04:00
Dan Ryan 311c90d191 Fix lockfile filename parsing
- convert to string properly
2018-05-27 14:26:30 -04:00
Dan Ryan e993ee874d Use filesystem compatible encodings for strings
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 13:52:39 -04:00
Dan Ryan cc68b365e0 formatting cleanup and posix style paths
- fix for windows vcs urls

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 13:35:25 -04:00
Dan Ryan 6737ab8b03 SpecifierSet logic fix
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 13:00:08 -04:00
Dan Ryan a4d838902c Logic fix
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 12:56:46 -04:00
Dan Ryan 8548fbbb3e It is important to check for python_requires
- The specifierset will fail otherwise
 - We don't want to include only things that have this
   -- we want to _exclude_ things that do not match it

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 02:35:46 -04:00
Dan Ryan 9e661519e0 Probably write unicode strings...
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 02:27:58 -04:00
Dan Ryan eae8ac919c Update piptools patch
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 02:23:07 -04:00
Dan Ryan 892be4650e Merge branch 'feature/better-resolver' of github.com:pypa/pipenv into feature/better-resolver 2018-05-27 02:19:57 -04:00
Dan Ryan 1d54a32dc5 Add sources and caches to pip calls
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-27 02:19:32 -04:00
Tzu-ping Chung f91371aa55 Code clean up
This shouldn't affect any functionalities, only clean up some generator
usages to reduce repeated looping through requirements.
2018-05-27 14:02:00 +09:00
Dan Ryan f532b2eb86 Use pipenv cache dir for caching wheels
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 23:39:34 -04:00
Dan Ryan 84c0b09193 Fix marker parsing bug
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 21:03:34 -04:00
Dan Ryan bba2f38d91 Patch piptools to use current environment python
- Fixes #2088, #2234, #1901
- Fully leverage piptools' compile functionality by using constraints
  in the same `RequirementSet` during resolution
- Use `PIP_PYTHON_PATH` for compatibility check to filter out
  `requires_python` markers
- Fix vcs resolution
- Update JSON API endpoints
- Enhance resolution for editable dependencies
- Minor fix for adding packages to pipfiles

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 21:03:34 -04:00
Dan Ryan 7abc2fd3a1 Use piptools constraints files more properly
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 21:02:51 -04:00
Dan Ryan 297d3a05f3 Merge pull request #2269 from pypa/bugfix/windows-relpaths
Update requirementslib to fix windows paths
2018-05-26 21:05:38 -04:00
Dan Ryan d55e400379 Better handling of wheels / update requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 19:57:41 -04:00
Dan Ryan 513bdfb0d2 Update requirementslib to fix windows paths
- Fixes #2256

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-26 17:47:28 -04:00
Dan Ryan 9550056344 Merge pull request #2261 from pypa/venv-in-project-without-project
Fix venv discovery
2018-05-25 03:17:56 -04:00
Tzu-ping Chung 1e0882c74d Fix venv discovery
If we don't have a project, we don't have an associated environment.
2018-05-25 14:12:55 +09:00
Dan Ryan e41c0659fd Merge pull request #1962 from techalchemy/feature/requirements-refactor
Requirements Refactor (ready to merge, after conflict resolution)
2018-05-24 00:41:28 -04:00
Dan Ryan aa4ca1bfd4 Fix special case resolution with ignore python
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 23:55:09 -04:00
Dan Ryan e2dae9b50e Handle prep failures for dist preparation
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:54:35 -04:00
Dan Ryan fddde1cce3 Fix requirements cleanup
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:16:19 -04:00
Dan Ryan c154350934 Update requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:31 -04:00
Dan Ryan 4c53e6e72f Update vendored requirementslib
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:31 -04: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 c58bf55385 Vendor pyparsing for packaging
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:30 -04:00
Dan Ryan 56f3d6191e Use vendored requirementslib for requirements
- Also update patch for pip

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:28 -04:00
Dan Ryan c406063755 Vendor requirementslib and cut old requirements
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:01:43 -04:00
Dan Ryan c50259f494 Update vendoring task
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:00:16 -04:00
Dan Ryan 4ce55b4c1f Add attrs to vendored deps and rebuild
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:00:13 -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
Dan Ryan eb4423b208 Fix test references to old requirements parser
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00
Dan Ryan 3167285286 Update tests for new requirements format
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00
Dan Ryan 5bd3e2dcfa Implement new requirement parser
- Leverage functionality where possible to avoid rework

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:47 -04:00
Dan Ryan cf1220ddeb vendor attrs
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:44:52 -04:00
Dan Ryan ef1b4bccd7 Implement requirements refactor
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:44:52 -04:00
Dan Ryan 594757fe37 Merge pull request #2255 from pypa/drop-pip9
Drop pip9/Vendor and patch pip 10
2018-05-23 21:43:41 -04:00
Dan Ryan 4f8ef2643e Remove travis file
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:42:21 -04:00
Dan Ryan 609bc8a91d Fix pip vendoring patch
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 20:58:30 -04:00
Dan Ryan 708a0576f6 Fix test import
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:46:35 -04:00
Dan Ryan c8a5c24263 Fix extras parsing for pip10
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:41:25 -04:00
Dan Ryan 0437fffb44 Update piptools patch
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:25:46 -04:00
Dan Ryan effeb174c8 Add travis file and update patches for requests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:21:48 -04:00
Dan Ryan 9cde62ebeb Fix patched libraries to use proper pip references
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:21:47 -04:00
Dan Ryan 054f961913 Patch packaging
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:21:47 -04:00
Dan Ryan 3807168913 Update vendoring tasks and patches
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:21:47 -04:00