chore(v2): establish protocol and test foundation

This commit is contained in:
2026-07-27 18:44:47 +02:00
parent 33b0c21292
commit 791f4526f9
86 changed files with 4060 additions and 2582 deletions
+43 -48
View File
@@ -1,68 +1,63 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools==80.9.0", "wheel==0.46.3"]
build-backend = "setuptools.build_meta"
[project]
name = "backup-tool"
version = "0.1.0"
description = "Web-based backup management tool for small teams and SMBs"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
authors = [
{name = "Backup Tool Team"}
]
keywords = ["backup", "restore", "scheduler", "web"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Archiving :: Backup",
]
version = "2.0.0.dev0"
description = "Self-hosted, integrity-first backup appliance"
license = "MIT"
requires-python = ">=3.12,<3.15"
authors = [{ name = "Backup Tool Team" }]
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"sqlalchemy[asyncio]>=2.0.0",
"aiosqlite>=0.21.0",
"alembic>=1.15.0",
"pydantic>=2.13.0",
"pydantic-settings>=2.9.0",
"apscheduler>=3.11.0",
"paramiko>=3.5.0",
"aiofiles>=23.2.0",
"httpx>=0.28.0",
"aiofiles==25.1.0",
"aiosqlite==0.22.1",
"alembic==1.18.5",
"apscheduler==3.11.3",
"fastapi==0.136.1",
"httpx==0.28.1",
"paramiko==5.0.0",
"pydantic==2.13.4",
"pydantic-settings==2.14.2",
"sqlalchemy[asyncio]==2.0.49",
"uvicorn[standard]==0.51.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.26.0",
]
prod = [
"gunicorn>=23.0.0",
"jsonschema==4.26.0",
"mypy==2.3.0",
"pytest==9.0.3",
"pytest-asyncio==1.3.0",
"ruff==0.16.0",
]
prod = ["gunicorn==23.0.0"]
[project.scripts]
backup-tool = "app.main:main"
backup-tool = "backup_tool.cli:main"
[project.urls]
Homepage = "https://github.com/backup-tool/backup-tool"
Documentation = "https://github.com/backup-tool/backup-tool#readme"
Repository = "https://github.com/backup-tool/backup-tool.git"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["."]
include = ["app*", "backup*", "alembic*"]
where = ["src"]
include = ["backup_tool*"]
[tool.setuptools.package-data]
backup_tool = ["py.typed"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = [".", "app", "backup"]
[tool.setuptools.package-data]
alembic = ["*.ini", "*.py", "*.mako"]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.mypy]
python_version = "3.12"
strict = true
packages = ["backup_tool"]
mypy_path = "src"