-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (111 loc) · 3.23 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
[project]
name = "lvmapi"
version = "0.2.4a0"
description = "REST API for LVM operations"
authors = [
{ name = "José Sánchez-Gallego", email = "[email protected]" }
]
license = { text = "BSD-3-Clause" }
readme = "README.md"
requires-python = ">=3.11,<4"
dependencies = [
"sdsstools>=1.9.1",
"fastapi[standard]>=0.112.0",
"lvmgort>=1.3.0",
"lvmopstools[influxdb,kubernetes,ephemeris,slack]>=0.5.5",
"gunicorn>=22.0.0",
"uvicorn[standard]>=0.24.0",
"sdss-clu>=2.3.2",
"python-jose[cryptography]>=3.3.0",
"passlib[bcrypt]>=1.7.4",
"astropy>=6.0.0",
"polars>=1.18.0",
"redis[hiredis]>=5.0.3",
"httpx>=0.27.2",
"taskiq[reload]>=0.11.7; sys_platform!='darwin'",
"taskiq>=0.11.7; sys_platform=='darwin'",
"taskiq-redis>=1.0.0",
"taskiq-aio-pika>=0.4.1",
"taskiq-fastapi>=0.3.2",
"python-multipart>=0.0.9",
"adbc-driver-postgresql>=1.1.0",
"pyarrow>=17.0.0",
"psycopg[binary]>=3.2.2",
"jinja2>=3.1.4",
"fastapi-cache2>=0.2.2",
"python3-nmap>=1.9.1",
"typing-extensions>=4.12.2",
]
[project.urls]
Homepage = "https://github.com/sdss/lvmapi"
Repository = "https://github.com/sdss/lvmapi"
Documentation = "https://lvmapi.readthedocs.org"
[dependency-groups]
dev = [
"ipython>=8.0.0",
"doc8>=0.8.0",
"ipdb>=0.12.3",
"ruff>=0.5.0",
"poethepoet>=0.24.2",
"pytest>=8.3.4",
"pytest-sugar>=1.0.0",
"pytest-cov>=6.0.0",
"pytest-asyncio>=0.25.0",
]
[tool.uv]
package = true
default-groups = ["dev"]
# [tool.uv.sources]
# lvmgort = { git = "https://github.com/sdss/lvmgort", branch = "overwatcher" }
# lvmopstools = { git = "https://github.com/sdss/lvmopstools", branch = "main" }
[tool.poe.tasks.dev]
shell = "fastapi dev --host 0.0.0.0 --port $port --reload src/lvmapi/app.py"
env.LVMAPI_PASSWORD = "$2b$12$doiNxsJiL/lGdBMu/zLv5em4GVsUVH7e.YK3EAqxu1NU8qzXxKrti" # "12345"
env.SECRET_KEY = "33744caf930b8c695ec39221dd158e9c5fda13d0d19d1417ec71cf189aad6508"
args = [
{ name = "port", default = "8888" }
]
deps = ['taskiq']
[tool.poe.tasks.taskiq]
shell = "taskiq worker -r lvmapi.app:broker lvmapi.tasks --log-level $log_level &"
env.TASKIQ_QUEUE_NAME = 'lvmapi-dev'
args = [
{ name = "log-level", default = "ERROR" }
]
[tool.ruff]
line-length = 88
target-version = 'py312'
[tool.ruff.lint]
select = ["E", "F", "I"]
unfixable = ["F841"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403", "E402"]
[tool.ruff.lint.isort]
known-first-party = ["lvmapi"]
lines-after-imports = 2
section-order = ["future", "standard-library", "typing", "third-party", "sdss", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
typing = ["typing"]
sdss = ["sdsstools", "clu", "drift", "lvmopstools"]
[tool.pytest.ini_options]
addopts = "--cov lvmapi --cov-report xml --cov-report html --cov-report term -W ignore"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
include = ["src/lvmapi/*"]
omit = [
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"# pragma: no cover"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["src/lvmapi"]
[tool.hatch.build.targets.wheel]
packages = ["src/lvmapi"]