1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-10 14:15:43 +00:00
Commit graph

7175 commits

Author SHA1 Message Date
Thomas Waldmann
f6279eac9d
shorten TAMRequiredError error msg
Users using recently created repos (after borg 1.0.9) or
who followed the upgrade procedure of 1.0.9 or >1.2.4 will
never see this error msg.

So, have it as short as and similar to the ArchiveTAMRequiredError.
2023-12-27 13:46:13 +01:00
Thomas Waldmann
41351af635
fix dealing with remote repo Locking Exceptions
previously, this was handled in RPCError handler and always resulted in rc 2.

now re-raise Lock Exceptions locally, so it gives rc 2 (legacy) or 7x (modern).
2023-12-27 13:46:12 +01:00
Thomas Waldmann
add7a22581
refactor set_ec usage
- _export_tar: remove unneeded call to set_ec
  print_warning() already sets the exit code to EXIT_WARNING.

- msgpack version check: raise Error instead of calling set_ec
2023-12-27 13:46:11 +01:00
Thomas Waldmann
74954faec8
use print_warning also in borg delete ::archive --force --force 2023-12-27 13:46:04 +01:00
Thomas Waldmann
62ad0369ef
update "modern" error RCs (docs and code) 2023-12-27 13:45:48 +01:00
Thomas Waldmann
422d1ba4ca
scripts/errorlist.py: improve error list docs generation
- also output modern rc and traceback yes/no
- recursive list of Error subclasses
2023-12-27 13:41:58 +01:00
Thomas Waldmann
2a13268e05
BORG_EXIT_CODES=modern can be set to get more specific process exit codes
If not set, it will default to "legacy" (always return 2 for errors).

This commit only changes the Error exception class and its subclasses.

The more specific exit codes need to be defined via .exit_mcode in the subclasses.
2023-12-27 13:41:46 +01:00
TW
94c461974d
Merge pull request #8005 from ThomasWaldmann/do-not-accept-empty-paths-1.4
PATH: do not accept empty strings, fixes #4221
2023-12-27 09:51:12 +01:00
Thomas Waldmann
8ad7a9ae77
PATH: do not accept empty strings, fixes #4221 2023-12-27 04:14:58 +01:00
TW
82cba46345
Merge pull request #8003 from ThomasWaldmann/vagrant-updates3-1.4
vagrant updates3 (1.4-maint)
2023-12-26 23:57:51 +01:00
Thomas Waldmann
bd9d12c0ba
vagrant: use openssl 3.0 on macOS 2023-12-26 22:15:59 +01:00
Thomas Waldmann
8ce3f23dca
vagrant: use openssl 3.0 on openbsd 2023-12-26 22:11:00 +01:00
Thomas Waldmann
f2b70cf0a6
vagrant: remove outdated comment 2023-12-26 22:10:59 +01:00
Thomas Waldmann
e80fa4a189
vagrant: use generic/openbsd7 box 2023-12-26 22:10:53 +01:00
TW
60dcd53130
Merge pull request #8001 from ThomasWaldmann/move-conftest.py-1.4
move conftest.py to src/borg/testsuite, see #6386
2023-12-26 20:59:41 +01:00
TW
6ce8bd6fff
Merge pull request #8002 from ThomasWaldmann/remove-dateutil-1.4
get rid of dateutil
2023-12-26 20:59:02 +01:00
Thomas Waldmann
2d97dcf250
get rid of dateutil 2023-12-26 19:12:00 +01:00
Thomas Waldmann
63848349c0
move conftest.py to src/borg/testsuite, see #6386
there, it will be packaged and installed, so
that when one runs the testsuite after installing
the pypi package, it will find the conftest.py.
2023-12-26 18:55:05 +01:00
TW
68109e7af9
Merge pull request #7999 from ThomasWaldmann/fix-msgpack-version-check
msgpack version check: use same versions as pyproject.toml
2023-12-26 18:49:47 +01:00
Thomas Waldmann
0ab26a04b7
msgpack version check: use same versions as pyproject.toml 2023-12-26 17:15:45 +01:00
TW
218160a914
Merge pull request #7993 from ThomasWaldmann/latest-pyinstaller-1.4
use pyinstaller 6.3.0
2023-12-26 01:01:12 +01:00
Thomas Waldmann
7efef07db1
use pyinstaller 6.3.0 2023-12-26 00:08:37 +01:00
TW
453c8eda07
Merge pull request #7998 from ThomasWaldmann/vagrant-updates2-1.4
Vagrant updates2 (1.4-maint)
2023-12-25 20:34:11 +01:00
Thomas Waldmann
b3d0b0abf6
vagrant: netbsd: test on py311 only
the netbsd vagrant machine tends to segfault, guess due to some kernel or virtualbox issue.

 thus, rather only do 1 tox run, so there is less output to review.
2023-12-25 20:02:08 +01:00
Thomas Waldmann
0c89f2c07b
vagrant: use python 3.9.4
3.9.3 was withdrawn by python.org and pyenv devs.
2023-12-25 19:25:49 +01:00
Thomas Waldmann
8088125f5c
vagrant: remove ubuntu 20.04 "focal" box
there are multiple issues with that box:
- it has a OpenSSL 1.x that is out of upstream support.
- has python 3.8

also:
- conservative users who did not upgrade yet to 22.04 will likely not jump onto borg 1.4 soon, but rather use borg 1.2.x.

We'll try to keep this box alive for borg 1.2.x, but for borg 1.4 it is "game over".
2023-12-25 16:36:13 +01:00
Thomas Waldmann
3d856a1c1e
vagrant: remove debian 9 "stretch" box
there are multiple issues with that box:
- debian 9 is out of support by debian, out of even lts support since 2022
- it has a OpenSSL 1.x that is also out of support and noone will care for it.
- has python 3.5

We'll try to keep this box alive for borg 1.2.x, but for borg 1.4 it is "game over".
2023-12-25 16:24:56 +01:00
TW
4f958ab5fe
Merge pull request #7997 from ThomasWaldmann/move-to-pyproj-1.4
move to pyproject.toml (1.4-maint)
2023-12-25 15:57:49 +01:00
TW
043294226b
Merge pull request #7996 from ThomasWaldmann/pyupgrade-py39-1.4
pyupgrade py39 (1.4-maint)
2023-12-25 04:21:41 +01:00
Thomas Waldmann
915e58653b
replace flake8 by ruff 2023-12-25 04:20:15 +01:00
Thomas Waldmann
d4f6f137c3
move most settings to pyproject.toml
except: flake8, which will get replaced by ruff.
2023-12-25 03:45:44 +01:00
TW
0e446170a6
Merge pull request #7994 from ThomasWaldmann/update-docs-1.4
Update docs (1.4-maint)
2023-12-25 02:55:07 +01:00
TW
c7ae13cb2a
Merge pull request #7995 from ThomasWaldmann/require-cython3-1.4
require Cython>=3 (1.4-maint)
2023-12-25 02:54:47 +01:00
Thomas Waldmann
e3198b1df3
cosmetic: make code closer to master branch 2023-12-25 02:44:15 +01:00
Thomas Waldmann
8d2fd2a30e
ran pyupgrade --py39-plus ./**/*.py 2023-12-25 02:34:44 +01:00
Thomas Waldmann
2f541cedee
require Cython>=3 2023-12-25 02:20:50 +01:00
Thomas Waldmann
d9061e9a07
update CHANGES 2023-12-25 02:13:05 +01:00
Thomas Waldmann
c4571f4181
update SECURITY.md about borg 1.4 2023-12-25 02:13:03 +01:00
TW
c14af19576
Merge pull request #7977 from ThomasWaldmann/drop-setup-requires-1.4
drop setup_requires, use pip and build
2023-12-25 01:36:57 +01:00
Thomas Waldmann
84df37a19f
use less setup.py, use pip and build
todo: clean clean2 build_usage build_man
2023-12-24 20:50:19 +01:00
Thomas Waldmann
021d08c8be
fix msys build
build the sdist and wheel using "build", avoid using setup.py.

use "pip install -e ." before invoking pyinstaller, so we have
the _version.py built by setuptools_scm and also it compiled the
extension modules, so pyinstaller can pick them up.

msys2 hack:

https://stackoverflow.com/questions/76079590/error-plat-name-must-be-one-of-win32-win-amd64-win-arm32-win-arm6
2023-12-24 20:45:12 +01:00
Thomas Waldmann
5919b63e9a
setup.py: drop deprecated setup_requires, fixes #6068
We now use pyproject.toml for that.

Also, drop the >=1.7 requirement for setuptools_scm,
that was from 2015 and we assume it is not used any
more anyway.
2023-12-24 18:23:07 +01:00
TW
121c870242
Merge pull request #7980 from ThomasWaldmann/drop-py38-1.4
require python >= 3.9, drop py38, fixes #6383
2023-12-24 15:07:19 +01:00
Thomas Waldmann
6b402896a6
require python >= 3.9, drop py38, fixes #6383 2023-12-24 03:01:21 +01:00
TW
fb1a327008
Merge pull request #7991 from ThomasWaldmann/cleanup-requirements-1.4
Cleanup requirements (1.4-maint)
2023-12-24 02:57:15 +01:00
Thomas Waldmann
299237e401
tox: remove min_version
3.2 is ancient, so we can just use the default now.
2023-12-24 02:33:43 +01:00
Thomas Waldmann
6284053562
update requirements.d/development.lock.txt 2023-12-24 02:33:41 +01:00
Thomas Waldmann
a550fbd845
msgpack: require >= 1.0.2 <= 1.0.7
that simplifies things:
- no broken release in that range
- no ancient stuff < 1.0 any more
2023-12-24 02:09:58 +01:00
Thomas Waldmann
548db7dc90
adjust requirements/development.txt to pyproject.toml 2023-12-24 02:06:25 +01:00
TW
6db2bbf635
Merge pull request #7988 from ThomasWaldmann/vagrant-updates-1.4
Vagrant updates (1.4-maint)
2023-12-24 01:24:56 +01:00