Skip to content

Commit

Permalink
Drop Python 3.7 (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Nov 24, 2023
1 parent 2c06744 commit cb11194
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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', '3.12']

steps:
- name: Checkout
Expand Down
9 changes: 2 additions & 7 deletions aiomcache/client.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import functools
import re
import sys
from typing import (Any, Awaitable, Callable, Dict, Generic, Mapping, Optional, Tuple,
TypeVar, Union, overload)
from typing import (Any, Awaitable, Callable, Dict, Generic, Literal, Mapping, Optional,
Tuple, TypeVar, Union, overload)

from . import constants as const
from .exceptions import ClientException, ValidationException
from .pool import Connection, MemcachePool

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal

if sys.version_info >= (3, 10):
from typing import Concatenate, ParamSpec
else:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def read(f):
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'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 :: 3.12',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
Expand All @@ -45,7 +45,7 @@ def read(f):
url='https://github.com/aio-libs/aiomcache/',
license='BSD',
packages=("aiomcache",),
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=('typing_extensions>=4; python_version<"3.11"',),
tests_require=("nose",),
test_suite='nose.collector',
Expand Down
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import time
import uuid
from typing import Any, AsyncIterator, Callable, Iterator
from typing import Any, AsyncIterator, Callable, Iterator, TypedDict

import docker as docker_mod
import memcache
Expand All @@ -12,11 +12,6 @@
import aiomcache
from .flag_helper import FlagHelperDemo

if sys.version_info < (3, 8):
from typing_extensions import TypedDict
else:
from typing import TypedDict

if sys.version_info < (3, 11):
from typing_extensions import NotRequired
else:
Expand Down
2 changes: 0 additions & 2 deletions tests/conn_args_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ssl
import sys
from asyncio import StreamReader, StreamWriter
from unittest import mock

Expand All @@ -9,7 +8,6 @@
from .conftest import McacheParams


@pytest.mark.skipif(sys.version_info < (3, 8), reason="AsyncMock requires python3.8")
async def test_params_forwarded_from_client() -> None:
client = Client("host", port=11211, conn_args={
"ssl": True, "ssl_handshake_timeout": 20
Expand Down

0 comments on commit cb11194

Please sign in to comment.