From 0b05a50cadff4600dce1e764b7c1759bb17902cb Mon Sep 17 00:00:00 2001 From: Nikolay Date: Sun, 29 Dec 2024 21:09:09 +0500 Subject: [PATCH] chore: remove setup.cfg (#307) --- .github/workflows/deploy.yml | 2 +- .github/workflows/tests.yml | 2 +- .python-version | 1 + README.md | 2 +- docs/index.rst | 2 +- pyproject.toml | 21 ++++++++++++++++++++- setup.cfg | 18 ------------------ 7 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 .python-version delete mode 100644 setup.cfg diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a1f67f0..df7b1e3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: POETRY_VIRTUALENVS_CREATE: "false" steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12816c0..e171262 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] services: postgres: diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..b326afb --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.15 diff --git a/README.md b/README.md index ebfdfb5..fcd870a 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.8+ +* Requires Python 3.9+ * Has support for PostgreSQL via [aiopg](https://github.com/aio-libs/aiopg) * Has support for MySQL via [aiomysql](https://github.com/aio-libs/aiomysql) * Asynchronous analogues of peewee sync methods with prefix aio_ diff --git a/docs/index.rst b/docs/index.rst index c585598..0d5d4e7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -12,7 +12,7 @@ peewee-async .. _asyncio: https://docs.python.org/3/library/asyncio.html -* Works on Python 3.8+ +* Works on Python 3.9+ * Has support for PostgreSQL via `aiopg` * Has support for MySQL via `aiomysql` * Asynchronous analogues of peewee sync methods with prefix **aio_** diff --git a/pyproject.toml b/pyproject.toml index 2c7c07a..1ba2a07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ readme = "README.md" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" peewee = "^3.15.4" typing-extensions = "^4.12.2" @@ -31,3 +31,22 @@ docs = ["aiopg", "aiomysql", "cryptography", "sphinx", "sphinx-rtd-theme"] [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +[tool.mypy] +python_version = "3.9" +ignore_missing_imports = true +no_implicit_optional = true +strict_equality = true +check_untyped_defs = true +warn_redundant_casts = true +warn_unused_configs = true +warn_unused_ignores = true +warn_return_any = true +disallow_any_generics = true +disallow_untyped_calls = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +exclude = "(venv|load-testing|examples|docs)" + +[tool.pytest.ini_options] +asyncio_mode = "auto" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3654135..0000000 --- a/setup.cfg +++ /dev/null @@ -1,18 +0,0 @@ -[tool:pytest] -asyncio_mode = auto - -[mypy] -python_version = 3.10 -ignore_missing_imports = True -no_implicit_optional = True -strict_equality = True -check_untyped_defs = True -warn_redundant_casts = True -warn_unused_configs = True -warn_unused_ignores = True -warn_return_any = True -disallow_any_generics = True -disallow_untyped_calls = True -disallow_untyped_defs = True -disallow_incomplete_defs = True -exclude = (venv|load-testing|examples|docs)