Skip to content

Commit 26dd42c

Browse files
committed
build: drop support for Python 3.8 and 3.9
Update pyproject.toml to require Python 3.10+ and remove outdated Python version classifiers and black target versions
1 parent b571c99 commit 26dd42c

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ classifiers = [
4343
"License :: OSI Approved :: MIT License",
4444
"Operating System :: OS Independent",
4545
"Programming Language :: Python :: 3",
46-
"Programming Language :: Python :: 3.8",
47-
"Programming Language :: Python :: 3.9",
4846
"Programming Language :: Python :: 3.10",
4947
"Programming Language :: Python :: 3.11",
5048
"Programming Language :: Python :: 3.12",
@@ -56,7 +54,7 @@ classifiers = [
5654
"Environment :: Console",
5755
"Typing :: Typed"
5856
]
59-
requires-python = ">=3.8"
57+
requires-python = ">=3.10"
6058
dependencies = [
6159
"psycopg2-binary>=2.9.0",
6260
"mcp>=0.1.0",
@@ -97,7 +95,7 @@ include-package-data = true
9795

9896
[tool.black]
9997
line-length = 88
100-
target-version = ["py38", "py39", "py310", "py311", "py312"]
98+
target-version = ["py310", "py311", "py312"]
10199
include = '\.pyi?$'
102100
extend-exclude = '''
103101
/(
@@ -114,7 +112,7 @@ extend-exclude = '''
114112
'''
115113

116114
[tool.mypy]
117-
python_version = "3.8"
115+
python_version = "3.10"
118116
warn_return_any = true
119117
warn_unused_configs = true
120118
disallow_untyped_defs = true

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def run_command(command, description):
2424
def check_python_version():
2525
"""Check if Python version is compatible."""
2626
version = sys.version_info
27-
if version.major == 3 and version.minor >= 8:
27+
if version.major == 3 and version.minor >= 10:
2828
print(f"✅ Python {version.major}.{version.minor}.{version.micro} is compatible")
2929
return True
3030
else:
31-
print(f"❌ Python {version.major}.{version.minor}.{version.micro} is not compatible. Requires Python 3.8+")
31+
print(f"❌ Python {version.major}.{version.minor}.{version.micro} is not compatible. Requires Python 3.10+")
3232
return False
3333

3434
def setup_virtual_environment():

0 commit comments

Comments
 (0)