Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 2.7 #478

Open
alimanfoo opened this issue Aug 6, 2019 · 3 comments
Open

Drop support for Python 2.7 #478

alimanfoo opened this issue Aug 6, 2019 · 3 comments
Labels
Help Wanted We are volunteers. We'll be happy if you join us. Maintainability Issues for code modernization, improve development, testing
Milestone

Comments

@alimanfoo
Copy link
Collaborator

Python 2.7 is coming up to end of life. Many packages have dropped support. Proposing to drop Python 2.7 support for the next major version of petl.

@juarezr
Copy link
Member

juarezr commented Jul 7, 2020

Also PIP is hammering another nail in the python2's coffin.

It's planned for in pip 21.0 (Jan 2021).

But I don't know how this impacts existing python2 packages.

@juarezr juarezr added Maintainability Issues for code modernization, improve development, testing Help Wanted We are volunteers. We'll be happy if you join us. labels Sep 12, 2020
@juarezr
Copy link
Member

juarezr commented Sep 17, 2020

Statistics for Set/2020

Source

Install package ofek/pypinfo for querying pip download data.

Last 30 days

$ pypinfo petl
Served from cache: False
Data processed: 77.39 GiB
Data billed: 77.39 GiB
Estimated cost: $0.38
download_count
46,930

Last year

$ pypinfo --start-date 2019-09-16 --end-date 2020-09-16 --percent --all --markdown petl pyversion
Served from cache: False
Data processed: 925.38 GiB
Data billed: 925.38 GiB
Estimated cost: $4.52
python_version percent download_count
2.7 24.56% 95,957
3.6 22.41% 87,579
3.7 21.72% 84,889
3.8 14.95% 58,431
None 12.41% 48,487
3.4 2.16% 8,434
3.5 1.79% 6,984
2.6 0.00% 12
3.9 0.00% 8
3.3 0.00% 2
Total 390,783

Last 90 days

$ pypinfo --days 90 --markdown petl month percent2 percent3
Served from cache: False
Data processed: 449.58 GiB
Data billed: 449.58 GiB
Estimated cost: $2.20
download_month percent_2 percent_3 download_count
2020-08 14.7 85.3 46,699
2020-07 19.5 80.5 33,202
2020-09 13.9 86.1 23,626
2020-06 22.6 77.4 9,525
Total 113,052

Last 100 days per version

$ pypinfo --days 100 --markdown petl version pyversion
Served from cache: False
Data processed: 493.03 GiB
Data billed: 493.03 GiB
Estimated cost: $2.41
version python_version download_count
1.3.0 3.8 48,385
0.25.3 2.7 10,250
1.2.0 3.6 9,091
1.1.1 2.7 8,470
1.3.0 3.7 6,317
1.2.0 3.7 5,282
1.3.0 3.6 4,209
1.6.2 3.6 2,838
1.6.2 3.8 2,435
1.6.2 3.7 2,344
Total 99,621

Last 30 days per version

$ pypinfo --days 30 --all --markdown petl system pyversion version
Served from cache: False
Data processed: 149.37 GiB
Data billed: 149.37 GiB
Estimated cost: $0.73
system_name python_version version download_count
Linux 3.8 1.3.0 25,219
Linux 2.7 0.25.3 3,356
Linux 2.7 1.1.1 2,659
Linux 3.6 1.2.0 2,368
Linux 3.7 1.2.0 1,806
Linux 3.7 1.6.3 1,561
Linux 3.8 1.6.2 998
Linux 3.6 1.6.2 921
Linux 3.8 1.6.3 868
Linux 3.7 1.3.0 764
Total 40,520

Conclusions

  • People using python2.7 are using old releases like 0.25.3 and 1.1.1.
  • New releases 7,65% are using python versions 3.6, 3.7 and 3.8.
  • Some suspicious info:
    • 1.3.0 + 3.8
    • Last 90 days total: 113,052
    • Last 100 days total: 99,621

@juarezr juarezr added this to the v2.0 milestone Sep 24, 2020
@hugovk
Copy link
Contributor

hugovk commented Aug 28, 2021

Please see PR #563.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted We are volunteers. We'll be happy if you join us. Maintainability Issues for code modernization, improve development, testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants