Skip to content

Commit

Permalink
Merge pull request #5451 from pradyunsg/misc/repurpose-pip-models
Browse files Browse the repository at this point in the history
Repurpose the pip._internal.models namespace
  • Loading branch information
pradyunsg authored May 29, 2018
2 parents 187062a + 88e17b4 commit b8eb704
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pip/_internal/cmdoptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
FormatControl, fmt_ctl_handle_mutual_exclude, fmt_ctl_no_binary,
)
from pip._internal.locations import USER_CACHE_DIR, src_prefix
from pip._internal.models import PyPI
from pip._internal.models.index import PyPI
from pip._internal.utils.hashes import STRONG_HASHES
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
from pip._internal.utils.ui import BAR_TYPES
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/commands/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pip._internal.compat import get_terminal_size
from pip._internal.download import PipXmlrpcTransport
from pip._internal.exceptions import CommandError
from pip._internal.models import PyPI
from pip._internal.models.index import PyPI
from pip._internal.status_codes import NO_MATCHES_FOUND
from pip._internal.utils.logging import indent_log

Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from pip._internal.compat import WINDOWS
from pip._internal.exceptions import HashMismatch, InstallationError
from pip._internal.locations import write_delete_marker_file
from pip._internal.models import PyPI
from pip._internal.models.index import PyPI
from pip._internal.utils.encoding import auto_decode
from pip._internal.utils.filesystem import check_path_owner
from pip._internal.utils.glibc import libc_ver
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
BestVersionAlreadyInstalled, DistributionNotFound, InvalidWheelFilename,
UnsupportedWheel,
)
from pip._internal.models import PyPI
from pip._internal.models.index import PyPI
from pip._internal.pep425tags import get_supported
from pip._internal.utils.deprecation import RemovedInPip11Warning
from pip._internal.utils.logging import indent_log
Expand Down
6 changes: 2 additions & 4 deletions src/pip/_internal/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
from pip._internal.models.index import Index, PyPI


__all__ = ["Index", "PyPI"]
"""A package that contains models that represent entities.
"""

0 comments on commit b8eb704

Please sign in to comment.