Commit Graph

10 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
luojiebin d0c0cc9e80 Fixed issue #949 (#4414)
* Showed installers when list command runs with -vv option

* Added news entry

* Updated code to show both location and installer of a package when '-v' is used

* Removed installer from freeze format

* Moved get_installer function to pip.utils.packaging
2017-04-06 15:16:18 +02:00
Xavier Fernandez e13c48b637 Bump invalid specifier log to warning level 2016-10-27 18:43:59 +02:00
Xavier Fernandez 11cc37932c Abort install if Requires-Python do not match the running version 2016-10-27 18:43:59 +02:00
Matthias Bussonnier d4e22ea097 Add tests 2016-07-28 15:18:44 -07:00
Matthias Bussonnier 1d10fca6fc Fix pep-8, assume work on this Python or invalid specifiers.
move the unescape outside of Link class.

reraise using raise that is available on Python 2.6
2016-07-27 12:17:38 -07:00
Matthias Bussonnier 17d830f962 Remove get_metadata 2016-07-26 16:43:52 -07:00
Matthias Bussonnier f7373a4c2a Update check_requires_python and describe behavior in docstring 2016-07-26 16:36:48 -07:00
Matthias Bussonnier c2101982cb Draft implementation of pep-503 data-requires-python
This allows pip to understand the `data-requires-python` metadata
information that can be set on a simple repository. This allows pip to
ignore any release or file that would not be compatible with the current
Python version even before trying to download and install this version.

Relevant extract of pep 503 at the time of this writing.

    A repository MAY include a data-requires-python attribute on a file
    link. This exposes the Requires-Python metadata field, specified in PEP
    345 , for the corresponding release. Where this is present, installer
    tools SHOULD ignore the download when installing to a Python version
    that doesn't satisfy the requirement. For example:

    <a href="..." data-requires-python="&gt;=3">...</a>
    In the attribute value, < and > have to be HTML encoded as &lt; and &gt;
    , respectively.

This can mostly be used to, for example, mark a new sdist of a new
package version as requires-python >3.4, and not  fail to install or
upgrade on users systems.

This will require extra patches to PyPI-legacy and warehouse to be
usable. Though releasing a version of pip that understand this feature
is necessary to have wide adoption at the time when these metadata get
actually published.
2016-07-26 16:02:36 -07:00