python-eol
A simple tool to check if the current running python version is beyond or close to end of life (eol).
Warns 60 days before eol, and errors when using a python version that is beyond eol.
Motivation
We tend to often forget which python version we are using for a project and that those version eventually will not get security updates once they are beyond eol. This tool can be used to check this, for example, in a CI/CD system or as a pre-commit hook.
Installation
pip install python-eol
Usage
Simply invoke eol from your command line
eol
Options:
usage: eol [-h] [--fail-close-to-eol] [--check-docker-files] [--nep29]
eol check if your python version is beyond end of life
options:
-h, --help show this help message and exit
--fail-close-to-eol Fail if the python version is close to eol instead of just warn
--check-docker-files Search for Dockerfile (**/*Dockerfile*) and check the python versions specified inside them
--nep29 Use NEP0029 end of life policy
Pre-commit-hook
Add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/mimre25/python-eol/
rev: v0.0.3
hooks:
- id: python-eol-check
Metadata
Release files for python-eol 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_eol-0.0.3.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_eol-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / python_eol-0.0.3.tar.gz
| Download URL | python_eol-0.0.3.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4663560dbc9dc9db73ee1a72e65b474d5b0de48710e6c1f39bd0d080cc5c532
|
|
BLAKE2b-256 checksum How to use checksums |
11f73cce723e3a70b6ff47bf324f757a24f7296cab971def84b723d202883530
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / python_eol-0.0.3-py3-none-any.whl
| Download URL | python_eol-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb8d47fe039a83ba935b05f4c074a7473363c67e45c3e046c7c9f40debca99d2
|
|
BLAKE2b-256 checksum How to use checksums |
3ff16c9b7babf71001540a4620397298ab53d1a406bf9f6f9b524377fe2822c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|