[Distutils] PEP 345, 566, 508 version specifiers and OR clauses

Dustin Ingram di at di.codes
Wed Dec 13 19:39:39 EST 2017


It seems like a small amount of convenience in exchange for a
significant increase in complexity to me.

FYI, some previous discussion on the topic can be found here:

  https://mail.python.org/pipermail/distutils-sig/2016-September/029651.html

And also here:

  https://github.com/pypa/setuptools/issues/1158

D.

On Wed, Dec 13, 2017 at 6:17 PM, Barry Warsaw <barry at python.org> wrote:
> I'm about to release a new version of importlib_resources, so I want to
> get my flit.ini's require-python clause right.  We support Python 2.7,
> and 3.4 and beyond.  This makes me sad:
>
> requires-python = '>=2.7,!=3.0,!=3.1,!=3.2,!=3.3'
>
> Of course, I'd like to write this like:
>
> requires-python = '(>=2.7 and <3) or >= 3.4'
>
> I understand that OR clauses aren't supported under any syntax
> currently, but as PEPs 566 and 508 are still open/active, wouldn't it be
> reasonable to support something like this explicitly?
>
> It seems like wanting to support 2.7 and some versions of Python 3 (but
> not all) is a fairly common need.
>
> Cheers,
> -Barry
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig


More information about the Distutils-SIG mailing list