forked from jazzband/pip-tools
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:jazzband/pip-tools into pip-tools…
…-integration * 'master' of github.com:jazzband/pip-tools: Add comment, fix tests Update for compatibility with pip 8-10 Drop pip 9 vendor dir Added 2.0.2 changelog (after actual release). Added clearer error reporting when skipping pre-releases (jazzband#655) Added a missing (important) changelog entry in 2.0.0 Updated changelog for 2.0.1 (after release) Add missing package_data from vendored pip 9.0.3 Changelog for v2.0.0 Change a misleading example about version pinning Filter pip environment markers Remove setuptools dependency Remove the pip version "dimension" from the test matrix Remove obsolete Makefile - Using Jazzband release process Update and add mention in README.rst about pip vendoring Omited piptools/_vendored and piptools/_compat from tests Remove now obsolete pip version check due to vendoring Add piptools/vendored to sys.path on start Add pipools/_vendored/README.rst Add vendored pip 9.0.3 Take CLI parameter as --user, pass through to pip install Option to restrict attention to user directory cache hashes for --generate-hashes Fix capitalization: PyPi -> PyPI Pass python_requires argument to setuptools Add dev-requirements.txt file to install packages for testing
- Loading branch information
Showing
30 changed files
with
463 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
branch = True | ||
source = piptools | ||
omit = | ||
piptools/_compat/* | ||
piptools/_vendored/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = build/*, dist/*, pip_tools.egg-info/*, piptools/_compat/* | ||
exclude = build/*, dist/*, pip_tools.egg-info/*, piptools/_compat/*, piptools/_vendored/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-e . | ||
mock | ||
pytest | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding=utf-8 -*- | ||
import importlib | ||
|
||
def do_import(module_path, subimport=None, old_path=None): | ||
internal = 'pip._internal.{0}'.format(module_path) | ||
old_path = old_path or module_path | ||
pip9 = 'pip.{0}'.format(old_path) | ||
try: | ||
_tmp = importlib.import_module(internal) | ||
except ImportError: | ||
_tmp = importlib.import_module(pip9) | ||
if subimport: | ||
return getattr(_tmp, subimport, _tmp) | ||
return _tmp | ||
|
||
|
||
InstallRequirement = do_import('req.req_install', 'InstallRequirement') | ||
parse_requirements = do_import('req.req_file', 'parse_requirements') | ||
RequirementSet = do_import('req.req_set', 'RequirementSet') | ||
user_cache_dir = do_import('utils.appdirs', 'user_cache_dir') | ||
FAVORITE_HASH = do_import('utils.hashes', 'FAVORITE_HASH') | ||
is_file_url = do_import('download', 'is_file_url') | ||
url_to_path = do_import('download', 'url_to_path') | ||
PackageFinder = do_import('index', 'PackageFinder') | ||
FormatControl = do_import('index', 'FormatControl') | ||
Wheel = do_import('wheel', 'Wheel') | ||
Command = do_import('basecommand', 'Command') | ||
cmdoptions = do_import('cmdoptions') | ||
get_installed_distributions = do_import('utils.misc', 'get_installed_distributions', old_path='utils') | ||
PyPI = do_import('models.index', 'PyPI') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.