Commit Graph

61 Commits

Author SHA1 Message Date
Thomas Waldmann 05cfbf67bc
setup.cfg: remove setup_requires, fixes #7574 2023-05-16 13:38:15 +02:00
Thomas Waldmann 1ab90b339e
allow msgpack 1.0.5 also 2023-03-09 22:26:38 +01:00
Thomas Waldmann 85cc7418ca
clarify platformdirs requirements, fixes #7393
3.0.0 is only required for macOS due to breaking changes.

2.6.0 was the last breaking change for Linux/UNIX.
2023-03-01 13:18:12 +01:00
Thomas Waldmann 7f973a5b34
implement "fail" chunker for testing purposes
--chunker-params=fail,4096,rrrEErrrr means:
- cut chunks of 4096b fixed size (last chunk in a file can be less)
- read chunks 0, 1 and 2 successfully
- error at chunk 3 and 4 (simulated OSError(errno.EIO))
- read successfully again for the next 4 chunks

Chunks are counted inside the chunker instance, starting
from 0, always increasing while the same instance is used.

Read chunks as well as failed chunks count up by 1.
2023-02-13 17:15:45 +01:00
Thomas Waldmann f29ff128fb
require 3.x.x releases of platformdirs
we don't want to suddenly/unexpectedly break stuff for borg users
just because platformdirs does a breaking release.

at platformdirs 2.0.0 macOS config dir changed.
at platformdirs 3.0.0 macOS config dir changed again.
at platformdirs 4.0.0 (future) - who knows?
2023-02-06 23:24:56 +01:00
Rayyan Ansari 6c7efbe128
add platformdirs to dependencies 2023-02-03 17:46:56 +01:00
Thomas Waldmann 9455c1e278 rcompress: do a repo-wide (re)compression
reads all chunks in on-disk order and recompresses them if they are not already using
the desired compression type and level (and obfuscation level).

supports SIGINT/ctrl-c and --checkpoint-interval (default: 1800s).

this is a borg command that compacts when committing (without this, it would have
a huge space usage). it commits/compacts every checkpoint interval or when
pressing ctrl-c / receiving SIGINT.
2022-09-27 16:50:19 +02:00
Thomas Waldmann dae1b9cd82 beta status now 2022-09-16 21:26:41 +02:00
Thomas Waldmann 1cd105d9f5 update flake8 ignores in setup.cfg 2022-09-13 14:58:46 +02:00
Thomas Waldmann 2288ee04fe move prune cmd tests to own module 2022-09-12 02:53:02 +02:00
Thomas Waldmann d762833cd6 move debug cmd tests to own module 2022-09-12 00:50:12 +02:00
Thomas Waldmann bef65e5722 make borg.testsuite.archiver a package
git mv archiver.py archiver/__init__.py

+ adapt import levels + adapt filenames
2022-09-12 00:03:26 +02:00
Thomas Waldmann 96139ae3c9 adapt pep8 ignores 2022-08-13 23:03:29 +02:00
Thomas Waldmann 9367ad2f07 adapt pep8 ignores 2022-08-13 22:24:20 +02:00
Thomas Waldmann 449b02742f make setuptools happy, fixes #6874 (try 2, same as in 1.2-maint)
work around setuptools puking about:

          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'borg.cache_sync' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'borg.cache_sync' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'borg.cache_sync' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
2022-08-04 17:18:23 +02:00
Thomas Waldmann b07aeef498 add mypy checking
also added some .pyi files needed to check the cython code (taken from #5703 and updated).

fixed "syntax error" in key.py.

all mypy complaints not fixed yet.
2022-07-15 12:49:38 +02:00
Thomas Waldmann 70b54a696f move create command to archiver.create 2022-07-09 15:13:13 +02:00
Thomas Waldmann c871dbd8a5 move recreate command to archiver.recreate 2022-07-09 15:13:13 +02:00
Thomas Waldmann add73745c6 move rlist command to archiver.rlist 2022-07-09 15:13:13 +02:00
Thomas Waldmann 350a8fe252 move delete command to archiver.delete 2022-07-09 15:13:13 +02:00
Thomas Waldmann a31332ddb5 move rdelete command to archiver.rdelete 2022-07-09 15:13:13 +02:00
Thomas Waldmann 9fb224db6b move diff command to archiver.diff 2022-07-09 15:13:12 +02:00
Thomas Waldmann ea03562b11 move prune command to archiver.prune 2022-07-09 15:13:12 +02:00
Thomas Waldmann 94e6477e51 move config command to archiver.config 2022-07-09 15:13:12 +02:00
Thomas Waldmann 6d60976c51 move help commands to archiver.help 2022-07-09 15:13:12 +02:00
Thomas Waldmann af2ee7aeb1 move key commands to archiver.keys 2022-07-09 15:13:12 +02:00
Thomas Waldmann 5ea9fb73db move benchmark commands to archiver.benchmarks 2022-07-09 15:13:12 +02:00
Thomas Waldmann 27b63e7c48 move tar commands to archiver.tar 2022-07-09 15:13:12 +02:00
Thomas Waldmann 890d5950e7 move debug commands to archiver.debug 2022-07-09 15:13:12 +02:00
Andrey Bienkowski adb1c36215 black integration 2022-07-06 14:55:40 +02:00
Serghei Iakovlev 928d2925bb
Use license_files instead of license_file
Closes #6727

See: https://github.com/pypa/setuptools/pull/2620
2022-06-13 16:09:38 +02:00
Thomas Waldmann c07afb26e4 add python 3.11 to pypi metadata 2022-06-03 10:05:04 +02:00
Thomas Waldmann a970f000b0 allow msgpack 1.0.4, fixes #6716 2022-06-03 10:03:49 +02:00
Andrea Gelmini c79fd61b5c
Fix typos (#6688)
fix typos

Co-authored-by: Thomas Waldmann <tw@waldmann-edv.de>
2022-05-15 21:23:48 +02:00
Thomas Waldmann 0c27272f97 setup.cfg: setup_requires setuptools_scm
readthedocs.org uses python setup.py install (not pip install).
2022-04-15 00:51:41 +02:00
Thomas Waldmann f5f85b9e76 use borgbackup.org as main site
the github site is linked via project_urls -> Source Code
2022-04-13 03:48:33 +02:00
Thomas Waldmann 4b561cfb95 master branch is alpha development status (or worse) 2022-04-13 03:42:05 +02:00
Thomas Waldmann 9642ace953 require/configure setuptools_scm via pyproject.toml 2022-04-07 19:11:15 +02:00
Manu 249de7eb45 Add feedback, part 1 2022-03-23 17:19:43 +04:00
Manu ec11905f11 Add src path to setup.cfg 2022-03-23 16:19:25 +04:00
Manu 3732c45f42 Initial commit 2022-03-23 15:42:34 +04:00
Robert Blenis 789908f13f fix pep8 violations in errorlist.py 2021-04-18 10:06:48 -04:00
Robert Blenis 96a138b226 fix pep8 violations in conftest.py 2021-04-18 10:04:43 -04:00
Robert Blenis d0841eb759 cleanup flake8 checks
- make code style exceptions tailored to specific files, so that it's less likely that new violations creep into the code.
2021-04-18 07:10:10 -04:00
Felix Schwarz 3f68f40a38 declare "allow_cache_wipe" marker in setup.cfg to avoid pytest warning
Undeclared markers trigger a pytest warning:

    PytestUnknownMarkWarning: Unknown pytest.mark.allow_cache_wipe - is this a typo?
2020-06-01 22:47:34 +02:00
Thomas Waldmann b0afc6709b flake8: use separate lines for different classes of flake8 ignores 2018-10-29 12:36:07 +01:00
Thomas Waldmann 5c66a60f79 flake8: fix W605 (invalid escape sequences) 2018-10-29 12:36:07 +01:00
Thomas Waldmann 10cdadb2f8 flake8: fix F841 2018-10-29 12:36:03 +01:00
Thomas Waldmann fc4a7bc0c9 flake8: disable the new checks of flake8 3.6 for now 2018-10-29 12:35:12 +01:00
Milkey Mouse 1e520203cb
Fix borg config flake8 failures
Suppressed E731 so lambdas can be assigned to vars
2017-11-23 14:54:53 -08:00