Carreau · GitHub

and others added 6 commits

July 26, 2016 16:02
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.
move the unescape outside of Link class.
reraise using raise that is available on Python 2.6

@Carreau

@Carreau

@Carreau

Merged

Merged

@xavfernandez

@Carreau

Carreau deleted the implement-pep-503-data-requires branch

August 11, 2016 21:27

Closed

Closed

Open

Closed

This was referenced

Apr 11, 2017

Closed

Closed

@lock lock Bot added the auto-locked

Outdated issues that have been locked by automation

label

Jun 3, 2019

@lock lock Bot locked as resolved and limited conversation to collaborators

Jun 3, 2019

Read the original on github.com ↗