From 17dd72eede6914650fe8337fb8123214ac9915c3 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Sat, 30 Apr 2022 11:15:19 -0500 Subject: [PATCH] Support Python 3.8, 3.9, and 3.10 and drop support for 3.6 (#60) * Support Python 3.8, 3.9, and 3.10 and drop support for 3.6 * Provide upper bound for pytest-postgresql<4.0.0 This is necessary because in the 4.0.0 release pytest-postgresql dropped support for psycopg2: https://github.com/ClearcodeHQ/pytest-postgresql/pull/487 --- .github/workflows/main.yml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b6f3a6..1aec67e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6.x, 3.7.x] + python: [3.7.x, 3.8.x, 3.9.x, 3.10.x] sqlalchemy: [1.2.*, 1.3.*, 1.4.*] services: postgres: diff --git a/setup.py b/setup.py index 538770e..250a820 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def readme(): 'SQLAlchemy>=1.2.2', 'Flask-SQLAlchemy>=2.3', 'packaging>=14.1'], - extras_require={'tests': ['pytest-postgresql>=2.4.0', 'psycopg2-binary', 'pytest>=6.0.1']}, + extras_require={'tests': ['pytest-postgresql>=2.4.0,<4.0.0', 'psycopg2-binary', 'pytest>=6.0.1']}, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Plugins',