Commit Graph

20 Commits

Author SHA1 Message Date
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam 1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Cooper Lees 933431f63b Ensure pypi_version in outdated is a str 2017-03-23 13:16:04 -07:00
Cooper Lees 24afdbaefc Fix merge conflict 2017-03-23 10:57:22 -07:00
Cooper Lees 0772ab3e24 - Change the pip outdated check to use PackageFinder to find current
PyPI versions
-- Replaces the always phone back to pypi.python.org JSON call
-- This allows us specify a local mirror to be use to query for updated
version and respects other set options
-- Update tests
-- Fix setup.py to include freezegun for tests
2017-03-23 10:50:02 -07:00
Cooper Lees c7cccaca95 - Change the pip outdated check to use PackageFinder to find current
PyPI versions
-- Replaces the always phone back to pypi.python.org JSON call
-- This allows us specify a local mirror to be use to query for updated
version and respects other set options
-- Update tests
-- Fix setup.py to include freezegun for tests
2017-03-23 10:24:09 -07:00
Donald Stufft c77894833a Use the built in support for total_seconds 2017-03-18 14:52:13 -04:00
Donald Stufft 033fac5ee6 Allow all wheels from PyPI
It's unlikely that we're going to need any changes in pip itself
to support linux enabled wheels except for maybe a more specific
platform tag. If a more specific platform tag is needed then older
pip's won't install that anyways. This should allow experimentation
with some possible solutions to linux enabled wheels.
2016-01-14 13:54:31 -05:00
Ville Skyttä 8e436d994d Let logging format messages on demand 2016-01-03 00:21:59 +02:00
Donald Stufft bee3be48ad Handle the case where pip isn't installed during the version check 2015-08-22 17:50:22 -04:00
Xavier Fernandez 0e8d5801b0 Compute pip version from its metadata
Move InstallRequirement.installed_version to a get_installed_version helper
Adapt test
2015-07-06 10:28:18 +02:00
Paul Moore 27d01147d0 Advise use of python -m pip on Windows when suggesting an upgrade 2015-05-26 14:13:41 +01:00
Donald Stufft 08160408fb Only warn on final releases with different base versions
We only want to prompt people to upgrade their pip version if the
newer version is not a post release of the version they have and
it's not a pre-release version.
2015-05-09 13:37:12 -04:00
Robert Collins 12e719db78 Create ensure_dir helper.
We had a very widely used pattern which can be factored out for a mild
saving in LOC, and a gain in clarity.
2015-04-07 08:55:52 -04:00
Richard Jones 919554ce63 don't try to load the state file if it does not exist 2015-01-06 16:11:00 +11:00
Donald Stufft adb7a3c83f Remove some other places we called os.geteuid() 2015-01-03 03:35:38 -05:00
Donald Stufft 77270b868b Ensure that the directory exists when we create the user cache dir 2015-01-02 23:38:53 -05:00
Marc Abramowitz 954b818f24 Reduce duplication of 'pypi.python.org'
by creating a PyPI object

Before:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/cmdoptions.py
    195:    default='https://pypi.python.org/simple/',

    pip/commands/search.py
    33:            default='https://pypi.python.org/pypi',

    pip/index.py
    305:            if page is None and 'pypi.python.org' not in str(main_index_url):
    706:                        ).netloc.endswith("pypi.python.org")):

    pip/utils/outdated.py
    107:                "https://pypi.python.org/pypi/pip/json",

After:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/index.py
    77:PyPI = Index(url='https://pypi.python.org/', trusted=True)
2014-12-16 08:21:24 -08:00
Donald Stufft 12e194bbc6 Fix compatability with Python 2.6 2014-09-18 08:30:03 -04:00
Donald Stufft c3df28c774 Fix for Python 3.x, Refactor, and small changes 2014-09-18 07:44:02 -04:00