alecthomas / voluptuous

CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
https://pypi.org/project/voluptuous
BSD 3-Clause "New" or "Revised" License
1.82k stars 218 forks source link

`from __future__ import annotations` requires python 3.7 #490

Closed remi-delmas-3000 closed 11 months ago

remi-delmas-3000 commented 11 months ago

Hi just posting this here so that other users like me are aware of the issue: release 0.14.0 introduced the use of type annotations from __future__ import annotations, which actually require python >= 3.7 to work as mentioned here https://peps.python.org/pep-0563/.

Voluptuous still advertises python 3.6 and lower as supported.

alecthomas commented 11 months ago

Where does it advertise this so we can change it?

spacegaier commented 11 months ago

We are indeed still listing 2.7 and 3.6 on pypi (from here https://github.com/alecthomas/voluptuous/blob/master/setup.py).

I added a corresponding note to the Github release.

alecthomas commented 11 months ago

Ah I see. It'd be nice if we could somehow keep that in sync with the CI test matrix and the tox.ini

spacegaier commented 11 months ago

Ah I see. It'd be nice if we could somehow keep that in sync with the CI test matrix and the tox.ini

Not sure if it is worth the hassle to try to set that up, but if someone already knows how to, let me know or provide a PR that handles it.

Closing this issue as resolved via https://github.com/alecthomas/voluptuous/pull/494.