@@ -12,89 +12,91 @@ readme = "README.md"
1212
1313[tool .poetry .dependencies ]
1414python = " ^3.9"
15- fastapi = " ^0.68 .0"
16- uvicorn = " ^0.15 .0"
17- pydantic = {version = " ^1.8.2 " , extras = [" dotenv" ]}
18- yarl = " ^1.6.3 "
19- ujson = " ^4.2 .0"
15+ fastapi = " ^0.75 .0"
16+ uvicorn = " ^0.17 .0"
17+ pydantic = {version = " ^1.9.0 " , extras = [" dotenv" ]}
18+ yarl = " ^1.7.2 "
19+ ujson = " ^5.1 .0"
2020{%- if cookiecutter.orm == "sqlalchemy" %}
2121SQLAlchemy = {version = " ^1.4" , extras = [" mypy" , " asyncio" ]}
2222{%- if cookiecutter.enable_migrations == "True" %}
23- alembic = " ^1.6.5 "
23+ alembic = " ^1.7.7 "
2424{%- endif %}
2525{%- if cookiecutter.db_info.name == "postgresql" %}
26- asyncpg = {version = " ^0.24 .0" , extras = [" sa" ]}
26+ asyncpg = {version = " ^0.25 .0" , extras = [" sa" ]}
2727{%- elif cookiecutter.db_info.name == "sqlite" %}
2828aiosqlite = " ^0.17.0"
2929{%- elif cookiecutter.db_info.name == "mysql" %}
30- aiomysql = " ^0.0.21 "
31- mysqlclient = " ^2.0.3 "
30+ aiomysql = " ^0.0.22 "
31+ mysqlclient = " ^2.1.0 "
3232{%- endif %}
3333{%- endif %}
3434{%- if cookiecutter.orm == "tortoise" %}
35- tortoise-orm = " ^0.17.7 "
35+ tortoise-orm = " ^0.19.0 "
3636{%- if cookiecutter.enable_migrations == "True" %}
37- aerich = " ^0.5.8 "
37+ aerich = " ^0.6.2 "
3838{%- endif %}
3939{%- if cookiecutter.db_info.name == "postgresql" %}
40- asyncpg = " ^0.24 .0"
40+ asyncpg = " ^0.25 .0"
4141{%- elif cookiecutter.db_info.name == "sqlite" %}
4242aiosqlite = " ^0.17.0"
4343{%- elif cookiecutter.db_info.name == "mysql" %}
4444aiomysql = " ^0.0.21"
4545mysqlclient = " ^2.0.3"
46- cryptography = " ^3.4.8 "
46+ cryptography = " ^36.0.2 "
4747{%- endif %}
4848{%- endif %}
4949{%- if cookiecutter.orm == "ormar" %}
50- ormar = " ^0.10.20 "
50+ ormar = " ^0.11.0 "
5151{%- if cookiecutter.enable_migrations == "True" %}
52- alembic = " ^1.6.5 "
52+ alembic = " ^1.7.7 "
5353{%- endif %}
5454{%- if cookiecutter.db_info.name == "postgresql" %}
55- asyncpg = " ^0.24 .0"
56- psycopg2-binary = " ^2.9.1 "
55+ asyncpg = " ^0.25 .0"
56+ psycopg2-binary = " ^2.9.3 "
5757{%- elif cookiecutter.db_info.name == "sqlite" %}
5858aiosqlite = " ^0.17.0"
5959{%- elif cookiecutter.db_info.name == "mysql" %}
60- aiomysql = " ^0.0.21 "
61- mysqlclient = " ^2.0.3 "
60+ aiomysql = " ^0.0.22 "
61+ mysqlclient = " ^2.1.0 "
6262{%- endif %}
6363{%- endif %}
6464{%- if cookiecutter.enable_redis == "True" %}
65- aioredis = {version = " ^2.0.0 " , extras = [" hiredis" ]}
65+ aioredis = {version = " ^2.0.1 " , extras = [" hiredis" ]}
6666{%- endif %}
6767{%- if cookiecutter.self_hosted_swagger == 'True' %}
68- aiofiles = " ^0.7.0"
68+ aiofiles = " ^0.8.0"
69+ {%- endif %}
70+ {%- if cookiecutter.orm == "psycopg" %}
71+ psycopg = { version = " ^3.0.11" , extras = [" binary" , " pool" ] }
6972{%- endif %}
7073httptools = " ^0.3.0"
71- async-exit-stack = " ^1.0.1"
72- async-generator = " ^1.10"
7374
7475[tool .poetry .dev-dependencies ]
75- pytest = " ^6 .0"
76- flake8 = " ^3.9.2 "
76+ pytest = " ^7 .0"
77+ flake8 = " ^4.0.1 "
7778mypy = " ^0.910"
7879isort = " ^5.9.3"
7980yesqa = " ^1.2.3"
8081pre-commit = " ^2.11.0"
81- wemake-python-styleguide = " ^0.15.3 "
82- black = " ==21.7b0 "
82+ wemake-python-styleguide = " ^0.16.1 "
83+ black = " ^22.3.0 "
8384autoflake = " ^1.4"
8485{%- if cookiecutter.orm == "sqlalchemy" %}
8586SQLAlchemy = {version = " ^1.4" , extras = [" mypy" ]}
8687{%- endif %}
87- pytest-cov = " ^2.12.1"
88- pytest-asyncio = " ^0.15.1"
89- nest-asyncio = " ^1.5.1"
88+ pytest-cov = " ^3.0.0"
89+ anyio = " ^3.5.0"
9090pytest-env = " ^0.6.2"
9191{%- if cookiecutter.enable_redis == "True" %}
92- fakeredis = " ^1.6 .1"
92+ fakeredis = " ^1.7 .1"
9393{%- endif %}
9494requests = " ^2.26.0"
9595{%- if cookiecutter.orm == "tortoise" %}
9696asynctest = " ^0.13.0"
97+ nest-asyncio = " ^1.5.5"
9798{%- endif %}
99+ httpx = " ^0.22.0"
98100
99101
100102[tool .isort ]
@@ -120,6 +122,7 @@ plugins = ["sqlalchemy.ext.mypy.plugin"]
120122filterwarnings = [
121123 " error" ,
122124 " ignore::DeprecationWarning" ,
125+ " ignore:.*unclosed.*:ResourceWarning" ,
123126]
124127{%- if cookiecutter.db_info.name != "none" %}
125128env = [
@@ -131,6 +134,15 @@ env = [
131134]
132135{%- endif %}
133136
137+ {%- if cookiecutter.orm == "tortoise" %}
138+ {%- if cookiecutter.enable_migrations == "True" %}
139+ [tool .aerich ]
140+ tortoise_orm = " {{cookiecutter.project_name}}.db.config.TORTOISE_CONFIG"
141+ location = " ./{{cookiecutter.project_name}}/db/migrations"
142+ src_folder = " ./{{cookiecutter.project_name}}"
143+ {%- endif %}
144+ {%- endif %}
145+
134146[build-system ]
135147requires = [" poetry-core>=1.0.0" ]
136148build-backend = " poetry.core.masonry.api"
0 commit comments