-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
88 lines (78 loc) · 2.26 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--ignore=test_build.py"
[tool.ruff]
extend-select = ["I"]
[tool.hatch]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
source = "regex_commit"
commit_extra_args = ["-e"]
path = "fastapi_users_db_beanie/__init__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-asyncio",
"black",
"mypy",
"pytest-cov",
"pytest-mock",
"asynctest",
"httpx",
"asgi_lifespan",
"ruff",
]
[tool.hatch.envs.default.scripts]
test = [
"docker stop fastapi-users-db-beanie-test-mongo || true",
"docker run -d --rm --name fastapi-users-db-beanie-test-mongo -p 27017:27017 mongo:4.4",
"pytest --cov=fastapi_users_db_beanie/ --cov-report=term-missing --cov-fail-under=100",
"docker stop fastapi-users-db-beanie-test-mongo",
]
test-cov-xml = "pytest --cov=fastapi_users_db_beanie/ --cov-report=xml --cov-fail-under=100"
lint = [
"black . ",
"ruff --fix .",
"mypy fastapi_users_db_beanie/",
]
lint-check = [
"black --check .",
"ruff .",
"mypy fastapi_users_db_beanie/",
]
[tool.hatch.build.targets.sdist]
support-legacy = true # Create setup.py
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "fastapi-users-db-beanie"
authors = [
{ name = "François Voron", email = "[email protected]" },
{ name = "Schwannden Kuo", email = "[email protected]" }
]
description = "FastAPI Users database adapter for Beanie"
readme = "README.md"
dynamic = ["version"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Framework :: FastAPI",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: Session",
]
requires-python = ">=3.8"
dependencies = [
"fastapi-users >= 10.0.1",
"beanie >=1.11.0,<2.0.0",
]
[project.urls]
Documentation = "https://fastapi-users.github.io/fastapi-users"
Source = "https://github.com/fastapi-users/fastapi-users-db-beanie"