Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
This version has reached its end-of-life last year,
https://peps.python.org/pep-0537/#lifespan.
  • Loading branch information
dlax committed Feb 21, 2024
1 parent 05776f6 commit 59b93ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
include:
- python: "3.7"
- python: "3.8"
psycopg: "psycopg2"
- python: "3.12"
psycopg: "psycopg3"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* Fix retrieval of I/O statistics on BSD systems (#393).
* Fix spelling mistakes in the man page.

### Removed

* Python 3.7 is no longer supported.

### Misc

* Document how to *hack* on pg\_activity in the `README`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pg\_activity releases. Before submitting a bug report here:

## From PyPI

pg\_activity can be installed using pip on Python 3.7 or later along with
pg\_activity can be installed using pip on Python 3.8 or later along with
psycopg:

$ python3 -m pip install "pg_activity[psycopg]"
Expand Down
7 changes: 1 addition & 6 deletions pgactivity/compat.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import operator
import sys
from importlib.metadata import version
from typing import Any, Dict

import attr
import attr.validators
import blessed

if sys.version_info < (3, 8):
from importlib_metadata import version
else:
from importlib.metadata import version

ATTR_VERSION = tuple(int(x) for x in version("attrs").split(".", 2)[:2])
BLESSED_VERSION = tuple(int(x) for x in version("blessed").split(".", 2)[:2])

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dynamic = ["version"]
description = "Command line tool for PostgreSQL server activity monitoring."
readme = "README.md"
license = { text = "PostgreSQL" }
requires-python = ">=3.7"
requires-python = ">=3.8"
authors = [
{ name = "Julien Tachoires", email = "julmon@gmail.com" },
{ name = "Benoit Lobréau", email = "benoit.lobreau@dalibo.com" },
Expand Down

0 comments on commit 59b93ed

Please sign in to comment.