| 1 |
[project] |
| 2 |
name = "borgstore" |
| 3 |
dynamic = ["version"] |
| 4 |
authors = [{name="Thomas Waldmann", email="[email protected]"}, ] |
| 5 |
description = "key/value store" |
| 6 |
readme = "README.rst" |
| 7 |
keywords = ["kv", "key/value", "store"] |
| 8 |
classifiers = [ |
| 9 |
"Development Status :: 3 - Alpha", |
| 10 |
"Intended Audience :: Developers", |
| 11 |
"Operating System :: POSIX", |
| 12 |
"Programming Language :: Python", |
| 13 |
"Programming Language :: Python :: 3", |
| 14 |
"Programming Language :: Python :: 3.11", |
| 15 |
"Programming Language :: Python :: 3.12", |
| 16 |
"Programming Language :: Python :: 3.13", |
| 17 |
"Programming Language :: Python :: 3.14", |
| 18 |
"Programming Language :: Python :: 3.15", |
| 19 |
"Topic :: Software Development :: Libraries", |
| 20 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 21 |
] |
| 22 |
license = "BSD-3-Clause" |
| 23 |
license-files = ["LICENSE.rst"] |
| 24 |
requires-python = ">=3.11" |
| 25 |
dependencies = [ |
| 26 |
] |
| 27 |
|
| 28 |
[project.optional-dependencies] |
| 29 |
rest = [ |
| 30 |
"requests >= 2.25.1", |
| 31 |
] |
| 32 |
rclone = [ |
| 33 |
"requests >= 2.25.1", |
| 34 |
] |
| 35 |
sftp = [ |
| 36 |
"paramiko >= 1.9.1", # 1.9.1+ supports multiple IdentityKey entries in .ssh/config |
| 37 |
] |
| 38 |
s3 = [ |
| 39 |
"boto3", |
| 40 |
] |
| 41 |
blake3 = [ |
| 42 |
# optional "blake3" hash algorithm support for hash computations |
| 43 |
"blake3 >= 1.0; sys_platform != 'win32'", |
| 44 |
"blake3 >= 1.0,!=1.0.9; sys_platform == 'win32'", # 1.0.9 does not build on windows/msys2/mingw |
| 45 |
] |
| 46 |
none = [] |
| 47 |
|
| 48 |
[project.scripts] |
| 49 |
borgstore-server-rest = "borgstore.server.rest:main" |
| 50 |
|
| 51 |
[project.urls] |
| 52 |
Homepage = "https://github.com/borgbackup/borgstore" |
| 53 |
|
| 54 |
[build-system] |
| 55 |
requires = ["setuptools>=78.1.1", "setuptools_scm[toml]>=6.2"] |
| 56 |
build-backend = "setuptools.build_meta" |
| 57 |
|
| 58 |
[tool.setuptools_scm] |
| 59 |
# make sure we have the same versioning scheme with all setuptools_scm versions, to avoid different autogenerated files |
| 60 |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015052 |
| 61 |
# https://github.com/borgbackup/borg/issues/6875 |
| 62 |
write_to = "src/borgstore/_version.py" |
| 63 |
write_to_template = "__version__ = version = {version!r}\n" |
| 64 |
|
| 65 |
[tool.black] |
| 66 |
line-length = 120 |
| 67 |
skip-magic-trailing-comma = true |
| 68 |
target-version = ['py311'] |
| 69 |
|
| 70 |
[tool.pytest.ini_options] |
| 71 |
minversion = "6.0" |
| 72 |
testpaths = ["tests"] |
| 73 |
|
| 74 |
[tool.flake8] |
| 75 |
# Ignoring E203 due to https://github.com/PyCQA/pycodestyle/issues/373 |
| 76 |
ignore = ['E226', 'W503', 'E203', 'E402'] |
| 77 |
max_line_length = 120 |
| 78 |
exclude = ['build', 'dist', '.git', '.idea', '.mypy_cache', '.tox'] |
| 79 |
|
| 80 |
[tool.ruff] |
| 81 |
line-length = 120 |
| 82 |
|
| 83 |
[tool.ruff.lint] |
| 84 |
# E402: Module level import not at top of file |
| 85 |
ignore = ["E402"] |
| 86 |
|
| 87 |
[tool.mypy] |
| 88 |
python_version = '3.11' |
| 89 |
strict_optional = false |
| 90 |
local_partial_types = true |
| 91 |
show_error_codes = true |
| 92 |
files = 'src/borgstore/**/*.py' |