-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (91 loc) · 2.66 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
[project]
name = "lvmapi"
version = "0.2.1a0"
description = "REST API for LVM operations"
authors = [
{ name = "José Sánchez-Gallego", email = "gallegoj@uw.edu" }
]
license = { text = "BSD-3-Clause" }
readme = "README.md"
requires-python = ">=3.11,<4"
dependencies = [
"sdsstools>=1.8.1",
"fastapi[standard]>=0.112.0",
"lvmgort>=1.1.2",
"lvmopstools[influxdb,kubernetes,schedule]>=0.4.4",
"gunicorn>=22.0.0",
"uvicorn[standard]>=0.24.0",
"sdss-clu>=2.2.1",
"influxdb-client[async]>=1.38.0",
"slack-sdk>=3.23.0",
"python-jose[cryptography]>=3.3.0",
"passlib[bcrypt]>=1.7.4",
"astropy>=6.0.0",
"astroplan>=0.9.1",
"polars>=1.7.1",
"redis[hiredis]>=5.0.3",
"httpx>=0.27.2",
"aiocache>=0.12.2",
"cachetools>=5.4.0",
"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",
"kubernetes>=31.0.0",
"fastapi-cache2>=0.2.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"
]
[tool.uv]
package = true
default-groups = ["dev"]
# [tool.uv.sources]
# lvmgort = { git = "https://github.com/sdss/lvmgort", branch = "overwatcher" }
[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"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"