Skip to main content

Simple tool to check if python version is past EOL

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_eol-0.0.3.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

python_eol-0.0.3-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page