Skip to content

Commit e297999

Browse files
author
Schwannden Kuo
committed
bump beanie version and fix README
1 parent 65cba71 commit e297999

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ source venv/bin/activate
4545
And then install the development dependencies:
4646

4747
```bash
48-
pip install -r requirements.dev.txt
48+
pip install flit
49+
pip flit install --deps develop
4950
```
5051

5152
### Run unit tests

fastapi_users_db_beanie/access_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BeanieBaseAccessToken(Generic[ID], Document):
1313
user_id: ID
1414
created_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
1515

16-
class Collection:
16+
class Settings:
1717
indexes = [IndexModel("token", unique=True)]
1818

1919

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ name = "fastapi_users_db_beanie"
1515
[project]
1616
name = "fastapi-users-db-beanie"
1717
authors = [
18-
{ name = "François Voron", email = "fvoron@gmail.com" }
18+
{ name = "François Voron", email = "fvoron@gmail.com" },
19+
{ name = "Schwannden Kuo", email = "schwannden@gmail.com" }
1920
]
2021
description = "FastAPI Users database adapter for Beanie"
2122
readme = "README.md"
@@ -36,7 +37,7 @@ classifiers = [
3637
requires-python = ">=3.7"
3738
dependencies = [
3839
"fastapi-users >= 10.0.1",
39-
"beanie >=1.10.8,<1.11",
40+
"beanie >=1.11.0,<1.12",
4041
]
4142

4243
[project.optional-dependencies]

0 commit comments

Comments
 (0)