h2non / jsonpath-ng

Finally, a JSONPath implementation for Python that aims to be standard compliant. That's all. Enjoy!
Apache License 2.0
572 stars 85 forks source link

Drop Python 2 support #92

Closed and-semakin closed 1 year ago

and-semakin commented 2 years ago

It's already the end of 2021. Python 2 has been officially unsupported for 2 years already. It seems like it may be a good moment to drop Python 2 support.

According to the PyPI stats, there are only 1-4% of users still on Python 2, and the number continues to decrease.

Screenshot from 2021-10-26 10-53-00

I suggest the following plan:

  1. make a new release with python_requires directive set to Python 3 only (see post in Pallets blog about it).
  2. upgrade the code to use new syntax (actually break Python 2 compatibility), for exaple, using pyupgrade.

What do you think?

michaelmior commented 1 year ago

There is no new release on PyPI yet, but Python 2 support has been dropped.