generated from k2bd/poetry-library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (81 loc) · 2.41 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
89
90
91
92
93
94
[tool.poetry]
name = "firebasil"
version = "0.3.1-alpha.0"
description = "A modern async Firebase library"
authors = ["Kevin Duff <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/k2bd/firebasil"
repository = "https://github.com/k2bd/firebasil"
documentation = "https://firebasil.readthedocs.io/"
keywords = []
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 1 - Planning",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Topic :: Database",
]
include = [
"LICENSE",
]
[tool.poetry.dependencies]
python = "^3.7"
aiohttp = "^3.8.1"
typing-extensions = "^4.1.1"
stringcase = "^1.2.0"
dateparser = "^1.1.0"
[tool.poetry.dev-dependencies]
pytest = "^6.1"
black = "^22.3.0"
isort = "^5.10.1"
flake8 = "^3.9.2"
mypy = "^0.931"
pytest-cov = "^3.0.0"
poethepoet = "^0.11.0"
pytest-asyncio = "^0.18.1"
firebase-admin = "^5.2.0"
pytest-random-order = "^1.0.4"
types-dateparser = "^1.1.0"
Sphinx = "^4.4.0"
sphinx-rtd-theme = "^1.0.0"
sphinxcontrib-napoleon = "^0.7"
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.poe.tasks]
docs = "make clean html -C docs"
autoformat.sequence = [
{cmd = "black src tests"},
{cmd = "isort src tests"},
]
lint.sequence = [
{cmd = "black --check -v src tests"},
{cmd = "isort --check -v src tests"},
{cmd = "flake8 src tests"},
{cmd = "mypy --pretty src tests"},
]
test.sequence = ["unit", "integration"]
[tool.poe.tasks.unit]
sequence = [
{cmd = "pytest -vv --random-order --cov-report xml --cov-report term --cov=firebasil tests/unit"},
]
[tool.poe.tasks.integration]
sequence = [
{shell = 'firebase emulators:exec --project demo-firebasil-test "pytest -vv --random-order --cov-append --cov-report xml --cov-report term --cov=firebasil -s tests/integration"'},
]
[tool.poe.tasks.integration.env]
FIREBASE_AUTH_EMULATOR_HOST = "http://127.0.0.1:9099"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme"]