mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -12,10 +12,10 @@ from safety.errors import DatabaseFetchError, DatabaseFileNotFoundError, Invalid
|
||||
|
||||
try:
|
||||
# pip 9
|
||||
from notpip import get_installed_distributions
|
||||
from pipenv.patched.notpip import get_installed_distributions
|
||||
except ImportError:
|
||||
# pip 10
|
||||
from notpip._internal.utils.misc import get_installed_distributions
|
||||
from pipenv.patched.notpip._internal.utils.misc import get_installed_distributions
|
||||
|
||||
|
||||
@click.group()
|
||||
|
||||
Vendored
+3
-3
@@ -14,10 +14,10 @@ except ImportError:
|
||||
from ordereddict import OrderedDict
|
||||
|
||||
try:
|
||||
from notpip._internal import get_installed_distributions
|
||||
from notpip._internal.operations.freeze import FrozenRequirement
|
||||
from pipenv.patched.notpip._internal import get_installed_distributions
|
||||
from pipenv.patched.notpip._internal.operations.freeze import FrozenRequirement
|
||||
except ImportError:
|
||||
from notpip import get_installed_distributions, FrozenRequirement
|
||||
from pipenv.patched.notpip import get_installed_distributions, FrozenRequirement
|
||||
|
||||
import pkg_resources
|
||||
# inline:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
|
||||
# Copied from notpip
|
||||
# Copied from pipenv.patched.notpip
|
||||
# https://github.com/pypa/pip/blob/281eb61b09d87765d7c2b92f6982b3fe76ccb0af/pip/index.py#L947
|
||||
HASH_ALGORITHMS = set(['sha1', 'sha224', 'sha384', 'sha256', 'sha512', 'md5'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user