2023-10-15 09:00:29 +01:00
|
|
|
[build-system]
|
|
|
|
requires = ["hatchling", "hatch-vcs"]
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "cista"
|
|
|
|
dynamic = ["version"]
|
|
|
|
description = "Dropbox-like file server with modern web interface"
|
|
|
|
readme = "README.md"
|
|
|
|
authors = [
|
2023-10-19 00:06:14 +01:00
|
|
|
{ name = "Vasanko" },
|
2023-10-15 09:00:29 +01:00
|
|
|
]
|
|
|
|
classifiers = [
|
|
|
|
]
|
2023-11-08 20:38:40 +00:00
|
|
|
requires-python = ">=3.11"
|
2023-10-15 09:00:29 +01:00
|
|
|
dependencies = [
|
2023-10-17 19:33:31 +01:00
|
|
|
"argon2-cffi",
|
2023-11-08 20:38:40 +00:00
|
|
|
"blake3",
|
|
|
|
"brotli",
|
2023-10-19 00:06:14 +01:00
|
|
|
"docopt",
|
2023-10-19 21:52:37 +01:00
|
|
|
"inotify",
|
2023-10-15 09:00:29 +01:00
|
|
|
"msgspec",
|
2023-11-08 20:38:40 +00:00
|
|
|
"natsort",
|
2023-10-15 09:00:29 +01:00
|
|
|
"pathvalidate",
|
2023-11-18 19:40:34 +00:00
|
|
|
"pillow",
|
2023-11-19 00:44:46 +00:00
|
|
|
"pyav",
|
2023-10-17 23:06:27 +01:00
|
|
|
"pyjwt",
|
2023-11-18 23:21:11 +00:00
|
|
|
"pymupdf",
|
2023-10-15 09:00:29 +01:00
|
|
|
"sanic",
|
2023-11-21 15:32:49 +00:00
|
|
|
"setproctitle",
|
2023-11-08 20:38:40 +00:00
|
|
|
"stream-zip",
|
2023-10-17 19:33:31 +01:00
|
|
|
"tomli_w",
|
2023-10-15 09:00:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[project.urls]
|
2023-11-13 22:59:22 +00:00
|
|
|
Homepage = "https://git.zi.fi/Vasanko/cista-storage"
|
2023-10-15 09:00:29 +01:00
|
|
|
|
2023-10-19 00:06:14 +01:00
|
|
|
[project.scripts]
|
|
|
|
cista = "cista.__main__:main"
|
|
|
|
|
2023-10-21 02:44:43 +01:00
|
|
|
[project.optional-dependencies]
|
|
|
|
dev = [
|
|
|
|
"pytest",
|
2023-11-08 20:38:40 +00:00
|
|
|
"ruff",
|
2023-10-21 02:44:43 +01:00
|
|
|
]
|
|
|
|
|
2023-10-19 00:06:14 +01:00
|
|
|
[tool.hatch.version]
|
|
|
|
source = "vcs"
|
2023-10-15 09:00:29 +01:00
|
|
|
|
|
|
|
[tool.hatch.build]
|
2023-11-14 00:19:33 +00:00
|
|
|
artifacts = ["cista/wwwroot"]
|
|
|
|
hooks.custom.path = "scripts/build-frontend.py"
|
2023-10-15 09:00:29 +01:00
|
|
|
hooks.vcs.version-file = "cista/_version.py"
|
|
|
|
hooks.vcs.template = """
|
|
|
|
# This file is automatically generated by hatch build.
|
2023-10-21 20:30:47 +01:00
|
|
|
__version__ = {version!r}
|
2023-10-15 09:00:29 +01:00
|
|
|
"""
|
2023-11-14 00:19:33 +00:00
|
|
|
only-packages = true
|
2023-10-15 09:00:29 +01:00
|
|
|
targets.sdist.include = [
|
|
|
|
"/cista",
|
|
|
|
]
|
2023-10-21 02:44:43 +01:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = [
|
|
|
|
"--import-mode=importlib",
|
|
|
|
"--verbosity=-1",
|
|
|
|
"-p no:warnings",
|
|
|
|
]
|
|
|
|
testpaths = [
|
|
|
|
"tests",
|
|
|
|
]
|
2023-10-23 02:51:39 +01:00
|
|
|
|
2023-11-08 20:38:40 +00:00
|
|
|
[tool.ruff]
|
|
|
|
select = ["ALL"]
|
|
|
|
ignore = [
|
|
|
|
"A0",
|
|
|
|
"ARG001",
|
|
|
|
"ANN",
|
|
|
|
"B018",
|
|
|
|
"BLE001",
|
|
|
|
"C901",
|
|
|
|
"COM812", # conflicts with ruff format
|
|
|
|
"D",
|
|
|
|
"E501",
|
|
|
|
"EM1",
|
|
|
|
"FIX002",
|
|
|
|
"ISC001", # conflicts with ruff format
|
|
|
|
"PGH003",
|
|
|
|
"PLR0912",
|
|
|
|
"PLR2004",
|
|
|
|
"PLW0603",
|
|
|
|
"S101",
|
|
|
|
"SLF001",
|
|
|
|
"T201",
|
|
|
|
"TD0",
|
|
|
|
"TRY",
|
|
|
|
]
|
|
|
|
show-source = true
|
|
|
|
show-fixes = true
|
|
|
|
|
|
|
|
[tool.ruff.isort]
|
|
|
|
known-first-party = ["cista"]
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"tests/*" = ["S", "ANN", "D", "INP"]
|