[openstack-dev] [Openstack] [all][infra][requirements] Odd cases in requirements?

John Villalovos openstack.org at sodarock.com
Wed Nov 9 16:59:36 UTC 2016


Ah, thanks a lot for that info :) I think that is what I need.

On Wed, Nov 9, 2016 at 7:36 AM, Jeremy Stanley <fungi at yuggoth.org> wrote:

> On 2016-11-09 07:19:04 -0800 (-0800), John Villalovos wrote:
> > Sort of related, what is the plan for supporting requirements which are
> > Python 3 only packages?
> >
> > In particular the package: mypy-lang
> > https://pypi.python.org/pypi/mypy-lang
> [...]
>
> If you only want mypy-lang installed when the interpreter is Python
> 3.3 or later (what their trove classifiers seem to imply for
> supported versions), use the following environment marker syntax:
>
>     mypy-lang;python_version>='3.3'
>
> (see dnspython3 in global-requirements.txt for a similar example)
>
> https://pip.pypa.io/en/stable/reference/pip_install/#
> requirement-specifiers
> https://www.python.org/dev/peps/pep-0426/#environment-markers
> --
> Jeremy Stanley
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161109/00d13cba/attachment.html>


More information about the OpenStack-dev mailing list