google / python-fire

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Other
26.86k stars 1.44k forks source link

Drop support for Python 2? #420

Open dukecat0 opened 1 year ago

dukecat0 commented 1 year ago

Are there any plans for dropping Python 2 support?

Python 2 is EOL and dropping support for it would ease maintenance and reduce complexity.

hugovk commented 1 year ago

👍

Python 2 has been EOL for over three years and has very few downloads by now:

category percent downloads
3.7 34.48% 2,362,551
3.8 32.81% 2,248,268
3.9 22.52% 1,543,519
3.10 5.54% 379,515
null 2.97% 203,628
3.6 0.75% 51,450
3.11 0.58% 39,506
2.7 0.32% 22,085
3.5 0.03% 1,991
3.4 0.00% 81
3.12 0.00% 71
Total 6,852,665

Date range: 2023-03-01 - 2023-03-31

Source: pip install -U pypistats && pypistats python_minor fire --last-month

image

Source: https://pypistats.org/packages/fire

dbieber commented 8 months ago

This upcoming release v0.6.0 will be the last one where we claim support for Python 2.

kirk86 commented 6 months ago

Sorry maybe this is not the correct place to post, but just wanted to ask if fire supports python 3.10 and 3.11, from the readme seems like it supports only up to 3.9 (if I'm not mistaken) is that correct?

dbieber commented 6 months ago

Yes, Python Fire supports these newer versions of Python. We test through 3.12. v0.6.0 is out now. We're going to drop support for Python 2 moving forward.