Skip to content

Commit

Permalink
Remove support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Jul 27, 2023
1 parent 346d8a9 commit 402f278
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
postgresql-version: [15, 14, 13, 12, 11]

container:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pg8000
pg8000 is a pure-`Python <https://www.python.org/>`_
`PostgreSQL <http://www.postgresql.org/>`_ driver that complies with
`DB-API 2.0 <http://www.python.org/dev/peps/pep-0249/>`_. It is tested on Python
versions 3.7+, on CPython and PyPy, and PostgreSQL versions 11+. pg8000's name comes
versions 3.8+, on CPython and PyPy, and PostgreSQL versions 11+. pg8000's name comes
from the belief that it is probably about the 8000th PostgreSQL interface for Python.
pg8000 is distributed under the BSD 3-clause license.

Expand Down
5 changes: 1 addition & 4 deletions pg8000/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import socket
from collections import defaultdict, deque
from hashlib import md5
from importlib.metadata import version
from io import IOBase, TextIOBase
from itertools import count
from struct import Struct
Expand All @@ -17,10 +18,6 @@
)
from pg8000.exceptions import DatabaseError, Error, InterfaceError

try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version

ver = version("pg8000")

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
name = "pg8000"
description = "PostgreSQL interface library"
readme = "README.rst"
requires-python = ">=3.7"
requires-python = ">=3.8"
keywords= ["postgresql", "dbapi"]
license = {text = "BSD 3-Clause License"}
classifiers = [
Expand All @@ -18,10 +18,10 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand All @@ -31,7 +31,6 @@ classifiers = [
]
dependencies = [
"scramp >= 1.4.3",
'importlib-metadata >= 1.0 ; python_version < "3.8"',
'python-dateutil >= 2.8.2',
]
dynamic = ["version"]
Expand Down

0 comments on commit 402f278

Please sign in to comment.