cista-storage/pyproject.toml

106 lines
1.8 KiB
TOML
Raw Permalink Normal View History

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 = [
{ name = "Vasanko" },
2023-10-15 09:00:29 +01:00
]
classifiers = [
]
requires-python = ">=3.11"
2023-10-15 09:00:29 +01:00
dependencies = [
"argon2-cffi",
"blake3",
"brotli",
"docopt",
"inotify",
2023-10-15 09:00:29 +01:00
"msgspec",
"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",
"pyjwt",
2023-11-18 23:21:11 +00:00
"pymupdf",
2023-10-15 09:00:29 +01:00
"sanic",
"setproctitle",
"stream-zip",
"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
[project.scripts]
cista = "cista.__main__:main"
[project.optional-dependencies]
dev = [
"pytest",
"ruff",
]
[tool.hatch.version]
source = "vcs"
2023-10-15 09:00:29 +01:00
[tool.hatch.build]
artifacts = ["cista/wwwroot"]
2023-11-21 20:11:37 +00:00
targets.sdist.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
"""
only-packages = true
2023-10-15 09:00:29 +01:00
targets.sdist.include = [
"/cista",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--verbosity=-1",
"-p no:warnings",
]
testpaths = [
"tests",
]
[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"]