Skip to content

Commit

Permalink
Merge ef85b1d into 96e28a1
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Apr 21, 2018
2 parents 96e28a1 + ef85b1d commit 31146e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
14 changes: 10 additions & 4 deletions build.py
Expand Up @@ -78,7 +78,7 @@
]
url = "http://pybuilder.github.io"
license = "Apache License"
version = "0.11.16"
version = "0.11.17"

requires_python = ">=2.6,!=3.0,!=3.1,!=3.2,<3.7"

Expand All @@ -98,9 +98,15 @@ def initialize(project):

project.depends_on("tblib")

project.depends_on("pip", ">=7.1,!=10.*,<10dev")
project.depends_on("setuptools", "~=36.0")
project.depends_on("wheel", "~=0.29.0")
if sys.version_info[0:2] in ((2, 6), (3, 3)):
project.depends_on("pip", ">=7.1,!=10.*,<10dev")
project.depends_on("setuptools", "~=36.0")
project.depends_on("wheel", "~=0.29.0")
else:
project.depends_on("pip", ">=7.1,<11dev")
project.depends_on("setuptools", "~=39.0.0")
project.depends_on("wheel", "~=0.31")

project.depends_on("tailer")

project.set_property("verbose", True)
Expand Down
10 changes: 7 additions & 3 deletions src/main/python/pybuilder/pip_common.py
Expand Up @@ -18,7 +18,11 @@

from pip._vendor.packaging.specifiers import SpecifierSet, InvalidSpecifier
from pip._vendor.packaging.version import Version, InvalidVersion
from pip.commands.show import search_packages_info

try:
from pip.commands.show import search_packages_info
except ImportError:
from pip._internal.commands.show import search_packages_info

try:
# This is the path for pip 7.x and beyond
Expand All @@ -45,12 +49,12 @@ def _pip_disallows_insecure_packages_by_default():
# (2014-01-01) BACKWARD INCOMPATIBLE pip no longer will scrape insecure external urls by default
# nor will it install externally hosted files by default
# Also pip v1.1 for example has no __version__
return hasattr(pip, "__version__") and pip.__version__ >= '1.5'
return hasattr(pip, "__version__") and (pip.__version__ >= '1.5' or pip.__version__ >= '10.0')


def _pip_supports_constraints():
import pip
return hasattr(pip, "__version__") and pip.__version__ >= '7.1'
return hasattr(pip, "__version__") and (pip.__version__ >= '7.1' or pip.__version__ >= '10.0')


def _pip_version():
Expand Down

0 comments on commit 31146e4

Please sign in to comment.