-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (145 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
157 lines (145 loc) · 3.54 KB
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
155
156
157
###############################################################################
# Caterva2 - On demand access to remote Blosc2 data repositories
#
# Copyright (c) 2023 ironArray SLU <contact@ironarray.io>
# 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 = [
{name = "ironArray SLU", email = "contact@ironarray.io"},
]
dynamic = ["version"]
keywords = ["blosc2"]
license = {text = "GNU Affero General Public License version 3"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"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.12.1",
"httpx[http2]",
]
[tool.hatch.version]
path = "caterva2/__init__.py"
[project.optional-dependencies]
agent = [
"watchfiles",
]
base-services = [
"fastapi>=0.109",
"pydantic>=2",
"safer",
"uvicorn",
]
server = [
"aiosqlite",
"caterva2[base-services]",
"fastapi-mail",
"fastapi-users[sqlalchemy]",
"uvicorn[standard]",
"furl",
"jinja2",
"markdown",
"nbconvert",
"pillow",
"pygments",
"python-dotenv",
"python-multipart",
"jupyterlite-core[contents]==0.7.1",
"jupyterlite-pyodide-kernel==0.7.0",
]
services = [
"caterva2[base-services]",
"caterva2[hdf5]",
"caterva2[server]",
]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"ruff",
]
# Currently used to enable HDF5 support at the client.
hdf5 = [
"h5py",
"b2h5py>=0.5.1",
"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]
# Main commands with unified naming scheme
cat2-server = "caterva2.services.server:main"
cat2-agent = "caterva2.clients.agent:main"
cat2-client = "caterva2.clients.cli:main"
cat2-admin = "caterva2.tools.admin: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"]