Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
Python 3.7 has reached end of life.
See https://devguide.python.org/versions/.
  • Loading branch information
lpsinger committed Aug 20, 2023
1 parent 91a5e5c commit 6c62866
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions gcn_kafka/core.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# SPDX-License-Identifier: CC0-1.0

from typing import Any, Mapping, Optional, Union
try:
from typing import Literal
except ImportError:
# FIXME: Remove once we drop support for Python 3.7.
from typing_extensions import Literal
from typing import Any, Literal, Mapping, Optional, Union
from uuid import uuid4

import certifi
Expand Down
3 changes: 0 additions & 3 deletions gcn_kafka/env.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# SPDX-License-Identifier: CC0-1.0

# FIXME: Remove after dropping support for Python 3.7
from __future__ import annotations

import os
import re
from typing import Optional
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ dependencies = [
"certifi",
"confluent-kafka >= 1.6.1, != 2.1.0, != 2.1.1",
"requests",
"typing-extensions; python_version<='3.7'"
]
requires-python = ">=3.7"
requires-python = ">=3.8"
dynamic = [ "version" ]

[project.urls]
Expand Down

0 comments on commit 6c62866

Please sign in to comment.