2022-03-23 11:19:18 +00:00
|
|
|
[metadata]
|
|
|
|
name = borgbackup
|
|
|
|
author = The Borg Collective (see AUTHORS file)
|
|
|
|
description = Deduplicated, encrypted, authenticated and compressed backups
|
2022-04-13 01:48:33 +00:00
|
|
|
url = https://borgbackup.org
|
2022-03-23 11:19:18 +00:00
|
|
|
keywords =
|
|
|
|
backup
|
|
|
|
borgbackup
|
|
|
|
classifiers =
|
2022-09-16 19:26:41 +00:00
|
|
|
Development Status :: 4 - Beta
|
2022-03-23 11:19:18 +00:00
|
|
|
Environment :: Console
|
|
|
|
Intended Audience :: System Administrators
|
|
|
|
License :: OSI Approved :: BSD License
|
|
|
|
Operating System :: POSIX :: BSD :: FreeBSD
|
|
|
|
Operating System :: POSIX :: BSD :: OpenBSD
|
|
|
|
Operating System :: POSIX :: BSD :: NetBSD
|
|
|
|
Operating System :: MacOS :: MacOS X
|
|
|
|
Operating System :: POSIX :: Linux
|
|
|
|
Programming Language :: Python
|
|
|
|
Programming Language :: Python :: 3
|
|
|
|
Programming Language :: Python :: 3.9
|
|
|
|
Programming Language :: Python :: 3.10
|
2022-06-03 07:59:40 +00:00
|
|
|
Programming Language :: Python :: 3.11
|
2022-03-23 11:19:18 +00:00
|
|
|
Topic :: Security :: Cryptography
|
|
|
|
Topic :: System :: Archiving :: Backup
|
|
|
|
platforms = Linux, MacOS X, FreeBSD, OpenBSD, NetBSD
|
|
|
|
license = BSD
|
2022-06-13 14:09:38 +00:00
|
|
|
license_files = LICENSE
|
2022-03-23 11:19:18 +00:00
|
|
|
project_urls =
|
|
|
|
Bug Tracker = https://github.com/borgbackup/borg/issues
|
|
|
|
Documentation = https://borgbackup.readthedocs.io
|
|
|
|
Source Code = https://github.com/borgbackup/borg
|
|
|
|
|
|
|
|
[options]
|
2022-08-04 15:18:23 +00:00
|
|
|
packages = find_namespace:
|
2022-03-23 11:19:18 +00:00
|
|
|
package_dir =
|
|
|
|
=src
|
|
|
|
python_requires = >=3.9
|
2022-04-14 22:38:30 +00:00
|
|
|
setup_requires =
|
|
|
|
setuptools_scm[toml] >= 6.2
|
2022-03-23 11:19:18 +00:00
|
|
|
install_requires =
|
2022-05-25 10:49:09 +00:00
|
|
|
msgpack >=1.0.3, <=1.0.4
|
2022-03-23 11:19:18 +00:00
|
|
|
packaging
|
|
|
|
argon2-cffi
|
|
|
|
tests_require =
|
|
|
|
pytest
|
|
|
|
zip_safe = False
|
2022-03-23 13:19:43 +00:00
|
|
|
# See also the MANIFEST.in file.
|
|
|
|
# We want to install all the files in the package directories...
|
|
|
|
include_package_data = true
|
|
|
|
|
|
|
|
# ...except the source files which have been compiled (C extensions):
|
|
|
|
[options.exclude_package_data]
|
|
|
|
* =
|
|
|
|
*.c
|
|
|
|
*.h
|
|
|
|
*.pyx
|
2022-03-23 11:19:18 +00:00
|
|
|
|
2022-03-23 12:19:25 +00:00
|
|
|
[options.packages.find]
|
|
|
|
where = src
|
|
|
|
|
2022-03-23 11:19:18 +00:00
|
|
|
[options.entry_points]
|
|
|
|
console_scripts =
|
|
|
|
borg = borg.archiver:main
|
|
|
|
borgfs = borg.archiver:main
|
|
|
|
|
|
|
|
[options.extras_require]
|
|
|
|
llfuse = llfuse >= 1.3.8
|
|
|
|
pyfuse3 = pyfuse3 >= 3.1.1
|
2022-04-07 17:11:15 +00:00
|
|
|
nofuse =
|
2022-03-23 11:19:18 +00:00
|
|
|
|
2017-01-14 22:06:16 +00:00
|
|
|
[tool:pytest]
|
2015-05-22 18:23:37 +00:00
|
|
|
python_files = testsuite/*.py
|
2020-05-23 21:48:47 +00:00
|
|
|
markers =
|
|
|
|
allow_cache_wipe
|
2015-05-22 18:40:43 +00:00
|
|
|
|
|
|
|
[flake8]
|
2021-03-18 09:59:59 +00:00
|
|
|
# for reference ...
|
|
|
|
# E121 continuation line under-indented for hanging indent
|
|
|
|
# E122 continuation line missing indentation or outdented
|
|
|
|
# E123 closing bracket does not match indentation of opening bracket's line
|
|
|
|
# E125 continuation line with same indent as next logical line
|
|
|
|
# E126 continuation line over-indented for hanging indent
|
|
|
|
# E127 continuation line over-indented for visual indent
|
|
|
|
# E128 continuation line under-indented for visual indent
|
|
|
|
# E221 multiple spaces before operator
|
|
|
|
# E226 missing whitespace around arithmetic operator
|
|
|
|
# E261 at least two spaces before inline comment
|
|
|
|
# E265 block comment should start with '# '
|
|
|
|
# E301 expected 1 blank line
|
|
|
|
# E305 expected 2 blank lines after class or function definition
|
|
|
|
# E401 multiple imports on one line
|
|
|
|
# E402 module level import not at top
|
|
|
|
# E501 line too long
|
|
|
|
# E722 do not use bare except
|
|
|
|
# E731 do not assign a lambda expression, use def
|
|
|
|
# E741 ambiguous variable name
|
2022-05-15 19:23:48 +00:00
|
|
|
# F401 import unused
|
2021-03-18 09:59:59 +00:00
|
|
|
# F403 from ... import * used, unable to detect undefined names
|
|
|
|
# F405 undefined or defined from star imports
|
|
|
|
# F811 redef of unused var
|
|
|
|
# F821 undefined name
|
|
|
|
# W391 blank line at end of file
|
|
|
|
# #### Pick either W503, or W504 - latest recommendation from pep8 is to ignore W503
|
|
|
|
# W503 line break before binary operator
|
|
|
|
# W504 line break after binary operator
|
|
|
|
|
|
|
|
# borg code style guidelines:
|
2022-03-02 03:19:33 +00:00
|
|
|
# Ignoring E203 due to https://github.com/PyCQA/pycodestyle/issues/373
|
|
|
|
ignore = E226, W503, E203
|
2021-03-18 09:59:59 +00:00
|
|
|
|
|
|
|
# Code style violation exceptions:
|
2016-01-30 21:01:27 +00:00
|
|
|
# please note that the values are adjusted so that they do not cause failures
|
|
|
|
# with existing code. if you want to change them, you should first fix all
|
|
|
|
# flake8 failures that appear with your change.
|
2021-03-18 09:59:59 +00:00
|
|
|
per_file_ignores =
|
|
|
|
docs/conf.py:E121,E126,E265,E305,E401,E402
|
|
|
|
src/borg/archive.py:E122,E125,E127,E402,E501,F401,F405,W504
|
2022-07-07 23:12:11 +00:00
|
|
|
src/borg/archiver/__init__.py:E402,E501,E722,E741,F405
|
2022-08-13 21:03:29 +00:00
|
|
|
src/borg/archiver/_common.py:E501,F405
|
|
|
|
src/borg/archiver/benchmark_cmd.py:F405
|
|
|
|
src/borg/archiver/config_cmd.py:F405,E722
|
|
|
|
src/borg/archiver/create_cmd.py:E501,F405
|
|
|
|
src/borg/archiver/debug_cmd.py:F405
|
|
|
|
src/borg/archiver/delete_cmd.py:F405
|
|
|
|
src/borg/archiver/diff_cmd.py:F405
|
|
|
|
src/borg/archiver/help_cmd.py:E501,F405
|
|
|
|
src/borg/archiver/key_cmds.py:F405
|
|
|
|
src/borg/archiver/prune_cmd.py:F405
|
2022-09-17 21:50:54 +00:00
|
|
|
src/borg/archiver/rcompress_cmd.py:F405
|
2022-08-13 21:03:29 +00:00
|
|
|
src/borg/archiver/recreate_cmd.py:F405
|
|
|
|
src/borg/archiver/rdelete_cmd.py:F405
|
|
|
|
src/borg/archiver/rlist_cmd.py:E501
|
|
|
|
src/borg/archiver/tar_cmds.py:F405
|
2021-03-18 09:59:59 +00:00
|
|
|
src/borg/cache.py:E127,E128,E402,E501,E722,W504
|
|
|
|
src/borg/fuse.py:E402,E501,E722,W504
|
|
|
|
src/borg/fuse_impl.py:F811
|
|
|
|
src/borg/locking.py:E128,E501,E722
|
2022-08-13 20:24:20 +00:00
|
|
|
src/borg/manifest.py:E128,E402,E501,F405
|
2021-03-18 09:59:59 +00:00
|
|
|
src/borg/remote.py:E128,E501,F405
|
|
|
|
src/borg/repository.py:E126,E128,E501,F401,F405,W504
|
|
|
|
src/borg/upgrader.py:E501
|
|
|
|
src/borg/xattr.py:E402
|
|
|
|
src/borg/crypto/key.py:E125,E128,E402,E501,F401,F405,W504
|
|
|
|
src/borg/crypto/keymanager.py:E126,E128,E501,F401
|
|
|
|
src/borg/crypto/nonces.py:E128,E501
|
|
|
|
src/borg/helpers/__init__.py:F401,F405
|
|
|
|
src/borg/helpers/checks.py:F401
|
|
|
|
src/borg/helpers/errors.py:F405
|
|
|
|
src/borg/helpers/fs.py:F405
|
|
|
|
src/borg/helpers/misc.py:E402,E722,F401,F405
|
|
|
|
src/borg/helpers/msgpack.py:E127,F405
|
|
|
|
src/borg/helpers/parseformat.py:E402,E501,E741,F401,F405
|
|
|
|
src/borg/helpers/process.py:E402,F401,W504
|
|
|
|
src/borg/helpers/progress.py:E402
|
2022-08-13 20:24:20 +00:00
|
|
|
src/borg/helpers/shellpattern.py:E501
|
2021-03-18 09:59:59 +00:00
|
|
|
src/borg/platform/__init__.py:F401,F811
|
|
|
|
src/borg/platform/base.py:E402
|
|
|
|
src/borg/testsuite/__init__.py:E501,F401
|
|
|
|
src/borg/testsuite/archive.py:E128,W504
|
2022-09-11 21:11:06 +00:00
|
|
|
src/borg/testsuite/archiver/__init__.py:E128,E501,E722,F401,F405,F811
|
2022-09-11 22:50:12 +00:00
|
|
|
src/borg/testsuite/archiver/debug_cmds.py:E501
|
2022-09-13 12:58:46 +00:00
|
|
|
src/borg/testsuite/archiver/disk_full.py:F401,F405,F811
|
|
|
|
src/borg/testsuite/archiver/extract_cmd.py:F405
|
|
|
|
src/borg/testsuite/archiver/mount_cmds.py:E501,E722
|
2022-09-12 00:53:02 +00:00
|
|
|
src/borg/testsuite/archiver/prune_cmd.py:F405
|
2022-09-17 21:50:54 +00:00
|
|
|
src/borg/testsuite/archiver/rcompress_cmd.py:F405
|
2022-09-13 12:58:46 +00:00
|
|
|
src/borg/testsuite/archiver/recreate_cmd.py:F405
|
|
|
|
src/borg/testsuite/archiver/return_codes.py:F401,F405,F811
|
2021-03-18 09:59:59 +00:00
|
|
|
src/borg/testsuite/benchmark.py:F401,F811
|
|
|
|
src/borg/testsuite/chunker.py:E501,F405
|
|
|
|
src/borg/testsuite/chunker_pytest.py:F401
|
|
|
|
src/borg/testsuite/chunker_slow.py:F405
|
|
|
|
src/borg/testsuite/crypto.py:E126,E501,E741
|
|
|
|
src/borg/testsuite/file_integrity.py:F401
|
|
|
|
src/borg/testsuite/hashindex.py:F401
|
|
|
|
src/borg/testsuite/helpers.py:E126,E127,E128,E501,F401
|
|
|
|
src/borg/testsuite/key.py:E501,F401
|
|
|
|
src/borg/testsuite/locking.py:E126,E128,E501,E722,F401
|
|
|
|
src/borg/testsuite/patterns.py:E123
|
|
|
|
src/borg/testsuite/platform.py:E128,E501,F401,F811
|
|
|
|
src/borg/testsuite/repository.py:E128,E501,F401
|
|
|
|
src/borg/testsuite/shellpattern.py:E123
|
|
|
|
src/borg/testsuite/upgrader.py:F405
|
|
|
|
|
|
|
|
max_line_length = 120
|
|
|
|
exclude = build,dist,.git,.idea,.cache,.tox
|
2016-01-30 21:01:27 +00:00
|
|
|
|
2022-07-15 10:44:56 +00:00
|
|
|
[mypy]
|
|
|
|
python_version = 3.9
|
|
|
|
strict_optional = False
|
|
|
|
local_partial_types = True
|
|
|
|
show_error_codes = True
|
|
|
|
files = src/borg/**/*.py
|
|
|
|
|
|
|
|
[mypy-msgpack.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-llfuse]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-pyfuse3]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-trio]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-borg.crypto.low_level]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-borg.platform.*]
|
|
|
|
ignore_missing_imports = True
|