Skip to content

Commit

Permalink
chore: remove typing-extensions from dependencies
Browse files Browse the repository at this point in the history
Since we only aim to support Python 3.9 and newer, typing-extensions isn't a requirement.
  • Loading branch information
aris-aiven committed Apr 2, 2024
1 parent a71f5aa commit 5350907
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion journalpump.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Summary: Pump messages from systemd journal to Elasticsearch, Kafka, Logp
License: ASL 2.0
Source0: journalpump-rpm-src.tar.gz
Requires: python3-kafka, systemd-python3, python3-requests, python3-botocore, python3-google-api-client
Requires: python3-google-auth, python3-geoip2, python3-typing-extensions
Requires: python3-google-auth, python3-geoip2
Requires: python3-websockets, python3-aiohttp-socks, python3-snappy
BuildRequires: python3-kafka, systemd-python3, python3-requests, python3-botocore, python3-google-api-client
BuildRequires: python3-devel, python3-pytest, python3-pylint python3-responses
Expand Down
7 changes: 1 addition & 6 deletions journalpump/types.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
"""JournalPump internal types"""
import enum
import sys

if sys.version_info >= (3, 8):
from typing import Protocol # pylint: disable=no-name-in-module
else:
from typing_extensions import Protocol

from typing import Protocol

class GeoIPProtocol(Protocol):
"""
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ google-api-python-client
google-auth
geoip2
https://github.com/systemd/python-systemd/zipball/master
typing-extensions
google-re2
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"google-api-python-client",
"google-auth",
"geoip2",
"typing-extensions",
],
dependency_links=[],
package_data={},
Expand Down

0 comments on commit 5350907

Please sign in to comment.