From 48fa875828052054254c5f53a46e769723057827 Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Sun, 3 Sep 2023 18:14:01 -0400 Subject: [PATCH] test: inform poetry to use the specific version (#16) --- .github/workflows/main.yml | 1 + pyproject.toml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8761e32..ba9a849 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true + - run: poetry env use ${{ matrix.python-version }} - run: poetry install - run: poetry run mypy -p flake8_sqlalchemy - run: poetry run pytest diff --git a/pyproject.toml b/pyproject.toml index 5d7e3e9..f7c7f8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8.1" -flake8 = "^6.0.0" +flake8 = "^6.0" [tool.poetry.group.dev.dependencies] astpretty = "^3.0.0" @@ -47,6 +47,13 @@ pytest = "^7.3.0" pytest-cov = "^4.0.0" sqlalchemy = "^2.0" +# greenlet is a dependency of SQLAlchemy, unrelease Python 3.12-compatible +# remove this once greenlet 3.0.0 is released. +greenlet = [ + { version = "^3.0.0rc1", python = "^3.12.0rc1" }, + { version = "<3.0.0a0", python = "<3.12" }, +] + [tool.coverage.run] branch = true source = ["flake8_sqlalchemy"]