Skip to content

Commit c221a99

Browse files
committed
Fixed deps bumping.
1 parent 00ff6d5 commit c221a99

File tree

2 files changed

+74
-75
lines changed

2 files changed

+74
-75
lines changed

fastapi_template/template/{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -7,167 +7,167 @@ authors = []
77
maintainers = []
88
readme = "README.md"
99
dependencies = [
10-
"fastapi >=0.122.0,<1"
11-
"uvicorn[standard] >=0.38.0,<1"
10+
"fastapi >=0.122.0,<1",
11+
"uvicorn[standard] >=0.38.0,<1",
1212
{%- if cookiecutter.gunicorn == "True" %}
13-
"gunicorn >=23.0.0,<24"
13+
"gunicorn >=23.0.0,<24",
1414
{%- endif %}
1515
{%- if cookiecutter.add_users == "True" %}
1616
{%- if cookiecutter.orm == "sqlalchemy" %}
17-
"fastapi-users >=15.0.1,<16"
18-
"httpx-oauth >=0.16.1,<1"
19-
"fastapi-users-db-sqlalchemy >=7.0.0,<8"
17+
"fastapi-users >=15.0.1,<16",
18+
"httpx-oauth >=0.16.1,<1",
19+
"fastapi-users-db-sqlalchemy >=7.0.0,<8",
2020
{%- endif %}
2121
{%- endif %}
2222
{%- if cookiecutter.orm == "ormar" %}
23-
"pydantic >=2.12.5,<3"
23+
"pydantic >=2.12.5,<3",
2424
{%- else %}
25-
"pydantic >=2.12.5,<3"
25+
"pydantic >=2.12.5,<3",
2626
{%- endif %}
27-
"pydantic-settings >=2.12.0,<3"
28-
"yarl >=1.22.0,<2"
29-
"ujson >=5.11.0,<6"
27+
"pydantic-settings >=2.12.0,<3",
28+
"yarl >=1.22.0,<2",
29+
"ujson >=5.11.0,<6",
3030
{%- if cookiecutter.orm == "piccolo" %}
3131
{%- if cookiecutter.db_info.name == "postgresql" %}
32-
"piccolo[postgres] >=1.30.0,<2"
32+
"piccolo[postgres] >=1.30.0,<2",
3333
{%- elif cookiecutter.db_info.name == "sqlite" %}
34-
"piccolo[sqlite] >=1.30.0,<2"
34+
"piccolo[sqlite] >=1.30.0,<2",
3535
{%- endif %}
3636
{%- endif %}
3737
{%- if cookiecutter.orm == "sqlalchemy" %}
38-
"SQLAlchemy[asyncio] >=2.0.44,<3"
38+
"SQLAlchemy[asyncio] >=2.0.44,<3",
3939
{%- if cookiecutter.enable_migrations == "True" %}
40-
"alembic >=1.17.2,<2"
40+
"alembic >=1.17.2,<2",
4141
{%- endif %}
4242
{%- if cookiecutter.db_info.name == "postgresql" %}
43-
"asyncpg >=0.31.0,<1"
43+
"asyncpg >=0.31.0,<1",
4444
{%- elif cookiecutter.db_info.name == "sqlite" %}
45-
"aiosqlite >=0.21.0,<1"
45+
"aiosqlite >=0.21.0,<1",
4646
{%- elif cookiecutter.db_info.name == "mysql" %}
47-
"aiomysql >=0.3.2,<1"
48-
"mysqlclient >=2.2.7,<3"
49-
"cryptography >=46.0.3,<47"
47+
"aiomysql >=0.3.2,<1",
48+
"mysqlclient >=2.2.7,<3",
49+
"cryptography >=46.0.3,<47",
5050
{%- endif %}
5151
{%- endif %}
5252
{%- if cookiecutter.orm == "tortoise" %}
53-
"tortoise-orm >=0.25.1,<1"
53+
"tortoise-orm >=0.25.1,<1",
5454
{%- if cookiecutter.enable_migrations == "True" %}
55-
"aerich >=0.9.2,<1"
55+
"aerich >=0.9.2,<1",
5656
{%- endif %}
5757
{%- if cookiecutter.db_info.name == "postgresql" %}
58-
"asyncpg >=0.31.0,<1"
58+
"asyncpg >=0.31.0,<1",
5959
{%- elif cookiecutter.db_info.name == "sqlite" %}
60-
"aiosqlite >=0.21.0,<1"
60+
"aiosqlite >=0.21.0,<1",
6161
{%- elif cookiecutter.db_info.name == "mysql" %}
62-
"aiomysql >=0.3.2,<1"
63-
"mysqlclient >=2.2.7,<3"
64-
"cryptography >=46.0.3,<47"
62+
"aiomysql >=0.3.2,<1",
63+
"mysqlclient >=2.2.7,<3",
64+
"cryptography >=46.0.3,<47",
6565
{%- endif %}
6666
{%- endif %}
6767
{%- if cookiecutter.orm == "ormar" %}
68-
"ormar >=0.20.2,<1"
68+
"ormar >=0.20.2,<1",
6969
{%- if cookiecutter.enable_migrations == "True" %}
70-
"alembic >=1.17.2,<2"
70+
"alembic >=1.17.2,<2",
7171
{%- endif %}
7272
{%- if cookiecutter.db_info.name == "postgresql" %}
73-
"asyncpg >=0.31.0,<1"
74-
"psycopg2-binary >=2.9.11,<3"
73+
"asyncpg >=0.31.0,<1",
74+
"psycopg2-binary >=2.9.11,<3",
7575
{%- elif cookiecutter.db_info.name == "sqlite" %}
76-
"aiosqlite >=0.21.0,<1"
76+
"aiosqlite >=0.21.0,<1",
7777
{%- elif cookiecutter.db_info.name == "mysql" %}
78-
"aiomysql >=0.3.2,<1"
79-
"mysqlclient >=2.2.7,<3"
78+
"aiomysql >=0.3.2,<1",
79+
"mysqlclient >=2.2.7,<3",
8080
{%- endif %}
8181
{%- endif %}
8282
{%- if cookiecutter.enable_redis == "True" %}
83-
"redis[hiredis] >=7.1.0,<8"
83+
"redis[hiredis] >=7.1.0,<8",
8484
{%- endif %}
8585
{%- if cookiecutter.self_hosted_swagger == 'True' %}
86-
"aiofiles >=25.1.0,<26"
86+
"aiofiles >=25.1.0,<26",
8787
{%- endif %}
8888
{%- if cookiecutter.orm == "psycopg" %}
89-
"psycopg[binary,pool] >=3.2.13,<4"
89+
"psycopg[binary,pool] >=3.2.13,<4",
9090
{%- endif %}
91-
"httptools >=0.7.1,<1"
91+
"httptools >=0.7.1,<1",
9292
{%- if cookiecutter.orm == "beanie" %}
93-
"beanie >=2.0.1,<3"
93+
"beanie >=2.0.1,<3",
9494
{%- else %}
95-
"pymongo >=4.15.4,<5"
95+
"pymongo >=4.15.4,<5",
9696
{%- endif %}
9797
{%- if cookiecutter.api_type == "graphql" %}
98-
"strawberry-graphql[fastapi] >=0.287.0,<1"
98+
"strawberry-graphql[fastapi] >=0.287.0,<1",
9999
{%- endif %}
100100
{%- if cookiecutter.enable_rmq == "True" %}
101-
"aio-pika >=9.5.8,<10"
101+
"aio-pika >=9.5.8,<10",
102102
{%- endif %}
103103
{%- if cookiecutter.prometheus_enabled == "True" %}
104-
"prometheus-client >=0.23.1,<1"
105-
"prometheus-fastapi-instrumentator >=7.1.0,<8"
104+
"prometheus-client >=0.23.1,<1",
105+
"prometheus-fastapi-instrumentator >=7.1.0,<8",
106106
{%- endif %}
107107
{%- if cookiecutter.sentry_enabled == "True" %}
108-
"sentry-sdk >=2.46.0,<3"
108+
"sentry-sdk >=2.46.0,<3",
109109
{%- endif %}
110110
{%- if cookiecutter.otlp_enabled == "True" %}
111-
"opentelemetry-api >=1.38.0,<2"
112-
"opentelemetry-sdk >=1.38.0,<2"
113-
"opentelemetry-exporter-otlp >=1.38.0,<2"
114-
"opentelemetry-instrumentation >=0.59b0,<1"
115-
"opentelemetry-instrumentation-fastapi >=0.59b0,<1"
111+
"opentelemetry-api >=1.38.0,<2",
112+
"opentelemetry-sdk >=1.38.0,<2",
113+
"opentelemetry-exporter-otlp >=1.38.0,<2",
114+
"opentelemetry-instrumentation >=0.59b0,<1",
115+
"opentelemetry-instrumentation-fastapi >=0.59b0,<1",
116116
{%- if cookiecutter.enable_redis == "True" %}
117-
"opentelemetry-instrumentation-redis >=0.59b0,<1"
117+
"opentelemetry-instrumentation-redis >=0.59b0,<1",
118118
{%- endif %}
119119
{%- if cookiecutter.db_info.name == "postgresql" and cookiecutter.orm in ["ormar", "tortoise"] %}
120-
"opentelemetry-instrumentation-asyncpg >=0.59b0,<1"
120+
"opentelemetry-instrumentation-asyncpg >=0.59b0,<1",
121121
{%- endif %}
122122
{%- if cookiecutter.orm == "sqlalchemy" %}
123-
"opentelemetry-instrumentation-sqlalchemy >=0.59b0,<1"
123+
"opentelemetry-instrumentation-sqlalchemy >=0.59b0,<1",
124124
{%- endif %}
125125
{%- if cookiecutter.enable_rmq == "True" %}
126-
"opentelemetry-instrumentation-aio-pika >=0.59b0,<1"
126+
"opentelemetry-instrumentation-aio-pika >=0.59b0,<1",
127127
{%- endif %}
128128
{%- endif %}
129129
{%- if cookiecutter.enable_loguru == "True" %}
130-
"loguru >=0.7.3,<1"
130+
"loguru >=0.7.3,<1",
131131
{%- endif %}
132132
{%- if cookiecutter.enable_kafka == "True" %}
133-
"aiokafka >=0.12.0,<1"
133+
"aiokafka >=0.12.0,<1",
134134
{%- endif %}
135135
{%- if cookiecutter.enable_taskiq == "True" %}
136-
"taskiq >=0.12.0,<1"
137-
"taskiq-fastapi >=0.3.6,<1"
136+
"taskiq >=0.12.0,<1",
137+
"taskiq-fastapi >=0.3.6,<1",
138138
{%- if cookiecutter.enable_redis == "True" %}
139-
"taskiq-redis >=1.1.2,<2"
139+
"taskiq-redis >=1.1.2,<2",
140140
{%- endif %}
141141

142142
{%- if cookiecutter.enable_rmq == "True" %}
143-
"taskiq-aio-pika >=0.5.0,<1"
143+
"taskiq-aio-pika >=0.5.0,<1",
144144
{%- endif %}
145145

146146
{%- if (cookiecutter.enable_rmq or cookiecutter.enable_rmq) != "True" %}
147-
"pyzmq >=27.1.0,<28"
147+
"pyzmq >=27.1.0,<28",
148148
{%- endif %}
149149
{%- endif %}
150150
]
151151

152152
[dependency-groups]
153153
dev = [
154-
"pytest >=9.0.1,<10"
155-
"ruff >=0.14.6,<1"
156-
"mypy >=1.19.0,<2"
157-
"pre-commit >=4.5.0,<5"
158-
"pytest-cov >=7.0.0,<8"
159-
"anyio >=4.11.0,<5"
160-
"pytest-env >=1.2.0,<2"
154+
"pytest >=9.0.1,<10",
155+
"ruff >=0.14.6,<1",
156+
"mypy >=1.19.0,<2",
157+
"pre-commit >=4.5.0,<5",
158+
"pytest-cov >=7.0.0,<8",
159+
"anyio >=4.11.0,<5",
160+
"pytest-env >=1.2.0,<2",
161161
{%- if cookiecutter.enable_redis == "True" %}
162-
"fakeredis >=2.32.1,<3"
162+
"fakeredis >=2.32.1,<3",
163163
{%- endif %}
164164
{%- if cookiecutter.orm == "tortoise" %}
165-
"asynctest >=0.13.0,<1"
166-
"nest-asyncio >=1.6.0,<2"
165+
"asynctest >=0.13.0,<1",
166+
"nest-asyncio >=1.6.0,<2",
167167
{%- endif %}
168-
"httpx >=0.28.1,<1"
168+
"httpx >=0.28.1,<1",
169169
{%- if cookiecutter.enable_taskiq == "True" %}
170-
"taskiq[reload] >=0.12.0,<1"
170+
"taskiq[reload] >=0.12.0,<1",
171171
{%- endif %}
172172
]
173173

scripts/version_bumper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from pathlib import Path
33
import re
44
import requests
5-
import random
65
from packaging.version import Version
76

87
DEP_RE = re.compile(r"\s*\"(?P<package>.+)\s*(?P<constraints>\>\=.+,\<.+)\s*\"")
@@ -53,7 +52,7 @@ def main():
5352
new_constraints = f">={version},<{upper_version}"
5453
if markers:
5554
new_constraints += f"; {markers}"
56-
lines.append(' "' + full_package + " " + new_constraints + '"\n')
55+
lines.append(' "' + full_package + " " + new_constraints + '",\n')
5756
with file.open("w") as f:
5857
f.writelines(lines)
5958

0 commit comments

Comments
 (0)