Skip to content

Commit

Permalink
Merge pull request #176 from awtkns/py-3-11
Browse files Browse the repository at this point in the history
Python 3.11 Support
  • Loading branch information
awtkns authored Jan 28, 2023
2 parents de8379e + 01affc8 commit 9b82986
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fastapi_crudrouter/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.5"
__version__ = "0.8.6"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
],
Expand Down
7 changes: 3 additions & 4 deletions tests/dev.requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/implementations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

from .databases_ import (
databases_implementation,
databases_implementation_custom_ids,
Expand All @@ -23,6 +25,7 @@
sqlalchemy_implementation_string_pk,
DSN_LIST,
)
from .tortoise_ import tortoise_implementation

implementations = [
(memory_implementation, ""),
Expand All @@ -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, ""))

1 comment on commit 9b82986

@vercel
Copy link

@vercel vercel bot commented on 9b82986 Jan 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fastapi-crudrouter – ./

fastapi-crudrouter-git-master-awtkns.vercel.app
fastapi-crudrouter.awtkns.com
fastapi-crudrouter-awtkns.vercel.app

Please sign in to comment.