Coder Social home page Coder Social logo

hugovk / drop-python Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 6.0 351.11 MB

It's about time to drop support for old Pythons

Home Page: https://hugovk.github.io/drop-python

License: BSD 2-Clause "Simplified" License

Python 57.30% HTML 36.92% CSS 2.78% Shell 3.00%
python python-2-6 python-3-2 python-3-3 python26 python32 python33 eol end-of-life support

drop-python's Introduction

Drop Python

Test Code style: Black

It's about time to drop support for old Pythons.

How to use

usage: generate.py [-h] [-n NUMBER] [-v VERSION [VERSION ...]]

Generate

optional arguments:
  -h, --help            show this help message and exit
  -n NUMBER, --number NUMBER
                        Number of packages to chart (default: 360)
  -v VERSION [VERSION ...], --version VERSION [VERSION ...]
                        Python version or versions to check (default: ['2.6',
                        '3.2', '3.3'])

For example:

$ python3 generate.py

$ python3 generate.py -v 3.2 -n 100

$ python3 generate.py -v 2.6

See also build.sh.

Gets list of packages from Top PyPI Packages.

How to test locally

In another terminal:

$ python3 -m http.server 8000

Then visit http://localhost:8000/

How to deploy

Make sure we're on main and run crontask.sh hourly from cron.

Thanks

This is derivative work from Python Wheels, a site that tracks progress in the new Python package distribution standard called Wheels. Thanks also to Python 3 Wall of Superpowers for the concept and making their code open source, and see also Python 3 Readiness.

drop-python's People

Contributors

ad-m avatar bbodenmiller avatar cozydoomer avatar dvarrazzo avatar ghickman avatar gomgam avatar hugovk avatar lambacck avatar lilyfoote avatar merwok avatar meshy avatar perry avatar pre-commit-ci[bot] avatar rgommers avatar sztamas avatar techtonik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

drop-python's Issues

Update README

  • How to use,
  • how to test locally,
  • how to deploy etc.

Ignore backports

Like DEPRECATED_PACKAGES, ignore backports from the standard library, like enum34, argparse and unittest2.

website not up-to-date

I'm seeing Last updated Friday, 27 May 2022, 06:35:17 UTC. (Updated hourly.).
Are the updates down for some reason ?

Generate for multiple versions at a time

Instead of:

python3 generate.py --version 2.6
python3 generate.py --version 3.2
python3 generate.py --version 3.3

(Makes around 3 * (360+1) PyPI calls.)

Allow something like:

python3 generate.py --version 2.6,3.2,3.3

(Makes around 1 * (360+1) PyPI calls.)

Test on Python 3.10

Add "3.10" (remember the quotes) to test.yml to test on Python 3.10.

Activate GitHub Actions for your fork and check it passes, that all dependencies are available for Python 3.10.

Plans for Python 2.7

With the upcoming EOL for Python 2.7, it would be good to know whether and when this site will start recommending for projects to drop Python 2.7.

More backports

The list of backports can be partially obtained using pypi/stdlib-list#28

Using that, I found the following are missing from the EXCLUDED_PACKAGES list.

pprint, resource and ast should be excluded IMO, as I am sure their inclusion in the top packages is only due to having the same name as a stdlib package. I think they should also be delisted from PyPI and other existing stdlib names prevented from being used (or an extra permission needed to control who can use those names) to prevent malicious uploads.

DateTime would probably not be on the list if it wasnt for the stdlib name clash. Oddly, the 'used by' on https://github.com/zopefoundation/DateTime is quite high (7.2k) - I wonder if the GitHub stats are also skewed. But it could be that the GitHub stats are correct, as this is Zope, and IMO it isnt worth delisting it from this project due to the Zope aspect - perhaps intentionally move it to the end of the list since its true relevance based on download count is highly suspect, so its appropriate position in the list is not knowable.

fwiw, the other stdlib names in the top list all appear to be 'safe'.

False positives

Here's some examples.

No major.minor classifiers:

classifiers: [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities"
],

https://pypi.python.org/pypi/six/json

classifiers: [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules"
],

https://pypi.python.org/pypi/pytz/json

classifiers: [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Testing"
],

https://pypi.python.org/pypi/nose/json

classifiers: [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: HTML"
],

https://pypi.python.org/pypi/MarkupSafe/json

No classifiers at all:

classifiers: [ ],

https://pypi.python.org/pypi/httplib2/json

website not up-to-date

I'm seeing Last updated Thursday, 23 September 2021, 09:35:09 UTC. (Updated hourly.).
Are the updates down for some reason ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.