From d14e60258f44f588c4e41b538c9def13f32a6690 Mon Sep 17 00:00:00 2001 From: Gorshkov Nikolay Date: Fri, 29 Dec 2023 13:36:53 +0500 Subject: [PATCH] drop python 3.7 support, add python 3.12 support --- .github/workflows/ci.yml | 2 +- README.md | 2 +- docs/index.rst | 2 +- peewee_async.py | 4 ++-- pyproject.toml | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d79cc7..3ee9910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 4 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'] services: postgres: diff --git a/README.md b/README.md index 295e3ef..0959a03 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ORM powered by **[asyncio](https://docs.python.org/3/library/asyncio.html)**. Overview -------- -* Requires Python 3.7+ +* Requires Python 3.8+ * Has support for PostgreSQL via [aiopg](https://github.com/aio-libs/aiopg) * Has support for MySQL via [aiomysql](https://github.com/aio-libs/aiomysql) * Single point for high-level async API diff --git a/docs/index.rst b/docs/index.rst index ddffed2..144c395 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,7 +15,7 @@ Current state: **alpha**, yet API seems fine and mostly stable. In current version new-high level API is introduced while older low-level API partially marked as deprecated. -* Works on Python 3.7+ +* Works on Python 3.8+ * Has support for PostgreSQL via `aiopg` * Has support for MySQL via `aiomysql` * Single point for high-level async API diff --git a/peewee_async.py b/peewee_async.py index 868d9c4..61cc0d4 100644 --- a/peewee_async.py +++ b/peewee_async.py @@ -20,8 +20,8 @@ import uuid import warnings -import importlib_metadata import peewee +from importlib.metadata import version from playhouse.db_url import register_database IntegrityErrors = (peewee.IntegrityError,) @@ -46,7 +46,7 @@ except AttributeError: asyncio_current_task = asyncio.Task.current_task -__version__ = importlib_metadata.version("peewee-async") +__version__ = version("peewee-async") __all__ = [ diff --git a/pyproject.toml b/pyproject.toml index 76668df..6e5281a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,9 +10,8 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" peewee = "^3.15.4" -importlib-metadata = "^6.7.0" aiopg = { version = "^1.4.0", optional = true } aiomysql = { version = "^0.2.0", optional = true }