diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 8d001093..0c77a4bb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] services: postgres: image: postgres diff --git a/fastapi_crudrouter/_version.py b/fastapi_crudrouter/_version.py index af46754d..de77196f 100644 --- a/fastapi_crudrouter/_version.py +++ b/fastapi_crudrouter/_version.py @@ -1 +1 @@ -__version__ = "0.8.5" +__version__ = "0.8.6" diff --git a/setup.py b/setup.py index 1288f6de..1ab8da6e 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def get_version(): long_description=open("README.md").read(), long_description_content_type="text/markdown", install_requires=["fastapi"], - python_requires=">=3.6", + python_requires=">=3.7", keywords=["fastapi", "crud", "restful", "routing", "generator", "crudrouter"], classifiers=[ "Operating System :: OS Independent", @@ -44,11 +44,11 @@ def get_version(): "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", - "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", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Internet :: WWW/HTTP", ], diff --git a/tests/dev.requirements.txt b/tests/dev.requirements.txt index f4dc82e2..9182cdd5 100644 --- a/tests/dev.requirements.txt +++ b/tests/dev.requirements.txt @@ -1,13 +1,12 @@ fastapi -async-generator; python_version=='3.6' -async-exit-stack; python_version=='3.6' +httpx # Backends ormar -tortoise-orm==0.17.8; python_version>='3.7' +tortoise-orm==0.18.1 databases aiosqlite -sqlalchemy==1.3.22 +sqlalchemy<1.4.0 sqlalchemy_utils==0.36.8 gino-starlette==0.1.1 asyncpg diff --git a/tests/implementations/__init__.py b/tests/implementations/__init__.py index 0c311095..839f22a4 100644 --- a/tests/implementations/__init__.py +++ b/tests/implementations/__init__.py @@ -1,3 +1,5 @@ +import sys + from .databases_ import ( databases_implementation, databases_implementation_custom_ids, @@ -23,6 +25,7 @@ sqlalchemy_implementation_string_pk, DSN_LIST, ) +from .tortoise_ import tortoise_implementation implementations = [ (memory_implementation, ""), @@ -33,9 +36,6 @@ implementations.extend([(sqlalchemy_implementation, dsn) for dsn in DSN_LIST]) implementations.extend([(databases_implementation, dsn) for dsn in DSN_LIST]) -try: - from .tortoise_ import tortoise_implementation -except ImportError: - pass -else: + +if sys.version_info >= (3, 8): implementations.append((tortoise_implementation, ""))