pynvim icon indicating copy to clipboard operation
pynvim copied to clipboard

Drop support for Python 2 and 3.4 (type annotations)?

Open blueyed opened this issue 5 years ago • 7 comments

I'm looking into adding type annotations, and would like to do this for Python 3.5+ then.

Both Python 2 and 3.4 are EOL by now, and it might take time anyway to merge type annotations then anyway.

What do you think?

blueyed avatar Jan 14 '20 09:01 blueyed

Dropping support for python 2 on master is fine. We could create a separate maintenance branch for bug-fixes only on top of 0.4.0 (or whatever the last python 2 version)

bfredl avatar Jan 15 '20 06:01 bfredl

Ok, what about Python 3.4?

blueyed avatar Jan 15 '20 07:01 blueyed

Same thing there, python 3.4 can stay on 0.4.0/maintenance branch (if anyone still uses it). Lets move master forward.

bfredl avatar Jan 15 '20 07:01 bfredl

Cool. No need to do this already, but good to know how to proceed in this regard.

blueyed avatar Jan 15 '20 08:01 blueyed

Would you be able to accept help doing this if it were to be delivered module-by-module? If so is there any particular order to follow?

noelevans avatar Jan 18 '20 21:01 noelevans

@noelevans I think "removing support" is not a goal, but should be done when it gets into the way somewhere. Then it is as easy as removing the classifiers and CI config, so it's not really a task by itself.

blueyed avatar Jan 18 '20 21:01 blueyed

Alternatively, if python2 support is desirable so as to not phase out support for entirely for type annotations, typing is a pip installable library on python<3.5.

https://mypy.readthedocs.io/en/latest/python2.html

So we could add it as an install_requirement in the setup.py if sys.version < (3,5):

farisachugthai avatar Sep 15 '20 09:09 farisachugthai