Skip to content

Commit d8faf78

Browse files
authored
Merge pull request #190 from python-ellar/py_3_12_support
Added py3.12 support
2 parents 120a84c + 3f62679 commit d8faf78

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.github/workflows/test_full.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
14-
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1514
steps:
1615
- uses: actions/checkout@v4
1716
- name: Set up Python

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ classifiers = [
3333
"Programming Language :: Python :: 3.9",
3434
"Programming Language :: Python :: 3.10",
3535
"Programming Language :: Python :: 3.11",
36+
"Programming Language :: Python :: 3.12",
3637
"Programming Language :: Python :: 3 :: Only",
3738
"Framework :: AsyncIO",
3839
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",

requirements-tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ aiohttp == 3.10.0
22
anyio[trio] >= 3.2.1
33
argon2-cffi == 23.1.0
44
autoflake
5+
bcrypt; python_version >= '3.12'
56
email_validator >=1.1.1
67
itsdangerous >=1.1.0,<3.0.0
78
mypy == 1.11.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
aiomcache
66

77
pre-commit >=2.17.0,<4.0.0
8-
pylibmc
8+
pylibmc; python_version < '3.12'
99
pymemcache
1010
redis

tests/test_cache/test_pylibmc_cache.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
import sys
2+
3+
import pytest
4+
5+
if sys.version_info >= (3, 12):
6+
pytest.skip(
7+
reason="This test requires Python 3.11 or lower", allow_module_level=True
8+
)
9+
110
from time import sleep
211
from unittest.mock import patch
312

4-
import pytest
513
from ellar.cache.backends.pylib_cache import PyLibMCCacheBackend
614
from ellar.cache.backends.pymem_cache import PyMemcacheCacheBackend
715
from ellar.cache.model import CacheKeyWarning

0 commit comments

Comments
 (0)