-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
152 lines (142 loc) · 3.54 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
###############################################################################
# Caterva2 - On demand access to remote Blosc2 data repositories
#
# Copyright (c) 2023 ironArray SLU <[email protected]>
# https://www.blosc.org
# License: GNU Affero General Public License v3.0
# See LICENSE.txt for details about copyright and rights to use.
###############################################################################
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "caterva2"
description = "A high-performance storage and computation system for Blosc2 datasets"
long-description = "README.md"
requires-python = ">=3.11"
readme = "README.md"
authors = [
]
dynamic = ["version"]
keywords = ["pubsub", "blosc2"]
license = {text = "GNU Affero General Public License version 3"}
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
]
dependencies = [
"blosc2>=3.2.0",
"httpx",
"requests", # For the client (works with pyodide too)
"tomli>=2;python_version<\"3.11\"",
]
[tool.hatch.version]
path = "caterva2/__init__.py"
[project.optional-dependencies]
base-services = [
"fastapi>=0.109",
"fastapi_websocket_pubsub",
"pydantic>=2",
"safer",
"uvicorn",
"watchfiles",
]
subscriber = [
"aiosqlite",
"caterva2[base-services]",
"fastapi-mail",
"fastapi-users[sqlalchemy]",
"uvicorn[standard]",
"furl",
"jinja2",
"markdown",
"nbconvert",
"pillow",
"python-dotenv",
"python-multipart",
"jupyterlite-core[contents]==0.6.0a2",
"jupyterlite-pyodide-kernel==0.6.0a2",
]
services = [
"caterva2[base-services]",
"caterva2[subscriber]",
]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"ruff",
]
# Currently used to enable HDF5 support at the publisher.
hdf5 = [
"h5py",
"hdf5plugin",
"msgpack",
]
clients = [
"rich",
"textual",
]
tools = [
"caterva2[hdf5]",
]
tests = [
"caterva2[clients]",
"caterva2[services]",
"pytest<8",
]
blosc2-plugins = [
"blosc2-grok",
]
[tool.hatch.build.targets.wheel]
only-include = ["caterva2", "root-example"]
[project.urls]
Home = "https://github.com/ironArray/Caterva2"
[project.scripts]
cat2bro = "caterva2.services.bro:main"
cat2pub = "caterva2.services.pub:main"
cat2sub = "caterva2.services.sub:main"
cat2cli = "caterva2.clients.cli:main"
cat2tbrowser = "caterva2.clients.tbrowser:main"
cat2import = "caterva2.tools.hdf5_to_cat2:main"
cat2export = "caterva2.tools.cat2_to_hdf5:main"
cat2adduser = "caterva2.tools.adduser:main"
[tool.ruff]
line-length = 109
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"C90",
"I",
"NPY",
"PT",
"RET",
"RUF",
"SIM",
"TCH",
"UP",
]
ignore = [
"B008", # function call in default argument is normal in FastAPI
"B028",
"C901", # Checks for functions with a high McCabe complexity
"PT011",
"SIM103",
"RET505",
"RET508",
"RUF005",
"RUF015",
"SIM108",
"UP038", # https://github.com/astral-sh/ruff/issues/7871
]
[tool.ruff.lint.extend-per-file-ignores]
"caterva2/tests/**" = ["F841", "SIM115"]