-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
154 lines (134 loc) · 3.05 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ai-services"
description = '"A simple web framework based on Sanic"'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "nuxion", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
# "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click~=8.1.3",
"Jinja2>=3.1",
"rich>=12",
"cryptography>=41.0.1",
"PyJWT>=2.6.0",
"pydantic~=1.10.7",
"itsdangerous~=2.1.2",
"aiofiles<23,>=22.1.0", # needed for jupyterlab
]
dynamic = ["version"]
[project.optional-dependencies]
google = [
"smart-open==6",
"google-cloud-storage==2"
]
sql = [
"SQLAlchemy>=2.0.7",
"alembic>=1.10.3",
]
web = [
"sanic~=23.3.0",
"sanic-ext~=23.3.0",
"redis~=4.5.1",
]
redis = [
"redis~=4.5.1",
]
docs = [
"Sphinx~=5.3.0",
"furo",
"myst_parser",
]
[project.urls]
Documentation = "https://github.com/nuxion/services#readme"
Issues = "https://github.com/nuxion/services/issues"
Source = "https://github.com/nuxion/services"
[project.scripts]
srv = "services.cli:cli"
create-srv-project = "services.cli_project:create_service_project"
[tool.hatch.version]
path = "services/__about__.py"
[tool.hatch.build]
artifacts = [
"*.ini",
"*.html",
"*.mako",
]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pylint~=2.16.2",
"isort~=5.12.0",
"black~=23.1.0",
"mypy~=1.0.1",
"sqlalchemy-stubs",
"ipython",
"Sphinx~=5.3.0",
"sphinx-autobuild",
"sphinx-rtd-theme",
"furo",
"myst_parser",
"aiosqlite~=0.18.0",
"types-redis",
"types-aiofiles",
"httpx",
"psycopg[binary,pool]~=3.1.8",
"pip-tools",
]
features = [
"google",
"sql",
"web",
]
[tool.hatch.envs.docs]
dependencies = [
"Sphinx~=5.3.0",
"sphinx-autobuild",
"furo",
"myst_parser"
]
[tool.hatch.envs.docs.scripts]
build = ""
watch = "sphinx-autobuild docs docs/_build/html --port 9292 --watch ./"
pip = "piptools compile --upgrade --resolver backtracking -o docs/requirements.txt pyproject.toml"
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=services --cov=tests {args}"
no-cov = "cov --no-cov {args}"
docs = "sphinx-autobuild docs docs/_build/html --port 9292 --watch ./"
pip-docs = "pip-compile -o docs/requirements.txt pyproject.toml"
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"services/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
# Custom added
[tool.isort]
profile = "black"
[tool.black]
line-length = 88