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"
|
|
|
|
license = ""
|
|
|
|
authors = [
|
2023-10-19 00:06:14 +01:00
|
|
|
{ name = "Vasanko" },
|
2023-10-15 09:00:29 +01:00
|
|
|
]
|
|
|
|
classifiers = [
|
|
|
|
]
|
|
|
|
dependencies = [
|
2023-10-17 19:33:31 +01:00
|
|
|
"argon2-cffi",
|
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",
|
|
|
|
"pathvalidate",
|
2023-10-17 23:06:27 +01:00
|
|
|
"pyjwt",
|
2023-10-15 09:00:29 +01:00
|
|
|
"sanic",
|
2023-10-17 19:33:31 +01:00
|
|
|
"tomli_w",
|
2023-10-15 09:00:29 +01:00
|
|
|
]
|
2023-10-27 10:49:11 +01:00
|
|
|
requires-python = ">=3.10"
|
2023-10-15 09:00:29 +01:00
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
Homepage = ""
|
|
|
|
|
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-10-21 20:30:47 +01:00
|
|
|
[tool.hatchling]
|
|
|
|
# Build frontend
|
|
|
|
pre_build = "npm run build --prefix cista-front"
|
|
|
|
|
2023-10-19 00:06:14 +01:00
|
|
|
[tool.hatch.version]
|
|
|
|
source = "vcs"
|
2023-10-15 09:00:29 +01:00
|
|
|
|
|
|
|
[tool.hatch.build]
|
|
|
|
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-10-21 20:30:47 +01:00
|
|
|
|
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-10-27 10:49:11 +01:00
|
|
|
[tool.ruff]
|
|
|
|
extend-select = ["I", "UP"]
|
|
|
|
src = ["cista", "tests"]
|
|
|
|
show-fixes = true
|
|
|
|
show-source = true
|
|
|
|
format.preview = true
|
|
|
|
format.line-ending = "lf"
|