Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
container: aiudirog/aiohappybase-test-env:latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
python: ['3.9', '3.10', '3.11', '3.12']
client: ['socket', 'http']
fail-fast: false
steps:
Expand Down
11 changes: 2 additions & 9 deletions aiohappybase/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@

from .connection import Connection

try:
from asyncio import current_task
except ImportError: # < 3.7
current_task = aio.Task.current_task

try:
from contextlib import asynccontextmanager
except ImportError: # < 3.7
from async_generator import asynccontextmanager
from asyncio import current_task
from contextlib import asynccontextmanager

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
thriftpy2>=0.4.11
async_generator; python_version < '3.7'
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.6
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
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
keywords =
Expand Down Expand Up @@ -63,7 +63,7 @@ filename = *happybase*/**.py
exclude = build,dist,venv,.tox,*.egg*,coverage,doc

[tox:tox]
envlist = py36, py37, py38, py39
envlist = py39, py310, py311, py312

[testenv]
deps = -rtest-requirements.txt
Expand Down