Commit Graph

5098 Commits

Author SHA1 Message Date
TW bb5e2597d7
Merge pull request #3942 from ThomasWaldmann/issue-3494-master
tests: trying to debug test fails on travis, #3494
2018-07-01 00:42:46 +02:00
Thomas Waldmann 04e14933e7 tests: trying to debug test fails on travis, #3494
- reordered code a little, so files are touched in different order

let's see if this changes anything.

- create_regular_file: giving size AND contents is not supported

the code did not create a 4096 bytes long file, but just a 1 byte
long file. adding an assertion to avoid unsupported usage.

(cherry picked from commit 2d490aa8c8)
2018-06-30 23:24:34 +02:00
TW bb5766b3da
Merge pull request #3941 from ThomasWaldmann/drop-py35
drop support for python 3.5, fixes #3919
2018-06-30 21:44:15 +02:00
Thomas Waldmann 55314f807e drop support for python 3.5, fixes #3919
if you do not have python 3.6.x, you can still use borg 1.1.x or 1.0.x.

another option is to use the fat binary from github releases, which
includes python 3.6 and all other stuff needed.
2018-06-30 21:02:19 +02:00
TW 15d1699d48
Merge pull request #3901 from ThomasWaldmann/avoid-stale-repo-files
avoid stale filehandle issues, fixes #3265
2018-06-29 23:46:28 +02:00
TW 485aedca43
Merge pull request #3935 from ThomasWaldmann/less-random
tests: fetch less data via os.urandom
2018-06-29 13:44:47 +02:00
Thomas Waldmann acb15fd960 tests: fetch less data via os.urandom
freebsd12 is unhappy with having to deliver 50MiB random in one go
and fails with BlockingIOError "temporary unavailable" when trying.

for test_lz4_buffer_allocation, it is good enough to fetch 5MiB and
concatenate that 10 times.
2018-06-29 09:36:00 +02:00
TW 18e875da72
Merge pull request #3934 from ThomasWaldmann/py366
vagrant: use python 3.6.6
2018-06-28 18:01:59 +02:00
Thomas Waldmann 55ac6a6d9e vagrant: use python 3.6.6 2018-06-28 17:59:34 +02:00
TW 34af7ccabc
Merge pull request #3932 from ThomasWaldmann/stretch-pyinstaller
vagrant: stretch64: use pyenv to test on py36
2018-06-27 01:49:35 +02:00
Thomas Waldmann 440f7646ac vagrant: stretch64: use pyenv to test on py36 2018-06-27 01:44:44 +02:00
TW cd4596d691
Merge pull request #3931 from ThomasWaldmann/bionic
vagrant: test on ubuntu 18.04, remove 16.04
2018-06-26 23:34:27 +02:00
Thomas Waldmann b3c7bb3758 vagrant: test on ubuntu 18.04, remove 16.04 2018-06-26 23:27:35 +02:00
TW 817c2b38a3
Merge pull request #3926 from lumbric/patch-2
docs: add link to tempfile module
2018-06-25 20:57:17 +02:00
lumbric bbd1533c99 docs: add link to tempfile module
Linking tempfile docs helps to figure out, which default value might be
used, if TMPDIR is not set.
2018-06-25 20:32:44 +02:00
Thomas Waldmann 5b5546d7e9 avoid stale filehandle issues, fixes #3265 2018-06-24 01:29:15 +02:00
TW 86a91af67a
Merge pull request #3900 from ThomasWaldmann/update-fuse-code
use unpacker.tell() instead of deprecated write_bytes, fixes #3899
2018-06-24 01:03:37 +02:00
Thomas Waldmann a497fe07ab use unpacker.tell() instead of deprecated write_bytes, fixes #3899 2018-06-24 00:14:53 +02:00
TW 45018489b5
Merge pull request #3921 from SanskritFritz/master
Shell completions reflect latest changes
2018-06-23 15:11:18 +02:00
TW 3f3d0ee28d
Merge pull request #3923 from ThomasWaldmann/vagrant-freebsd12
vagrant: test on freebsd 12
2018-06-23 03:34:26 +02:00
Thomas Waldmann 6bc731dde6 vagrant: test on freebsd 12 2018-06-23 03:31:25 +02:00
TW f4aae9db5c
Merge pull request #3922 from ThomasWaldmann/arch-locale
vagrant: arch64 VM: generate and set en_US.UTF-8 locale
2018-06-23 00:19:02 +02:00
Thomas Waldmann a4952c8fe0 vagrant: arch64 VM: generate and set en_US.UTF-8 locale 2018-06-23 00:17:10 +02:00
SanskritFritz 46a5db7de8 Shell completions reflect latest changes 2018-06-22 23:53:44 +02:00
TW 125049f755
Merge pull request #3893 from pmiossec/improve_doc
docs: improve diff doc
2018-06-22 18:24:09 +02:00
Philippe MIOSSEC de25f1c3c7 docs: improve diff doc
by better displaying the synthax that should be used
(ie `REPO::ARCHIVE1`)
2018-06-22 00:49:35 +02:00
TW 3bdfa869d6
Merge pull request #3898 from ThomasWaldmann/move-ht-load-calculation
move capacity calculation to IndexBase, fixes #2646
2018-06-14 22:23:10 +02:00
TW 37f2c8944f
Merge pull request #3896 from ThomasWaldmann/make-swidth-better-available
make swidth available on all posix platforms, fixes #2667
2018-06-12 22:49:52 +02:00
Thomas Waldmann de113bab23 move capacity calculation to IndexBase, fixes #2646
we just give how many "usable" hashtable entries we want and it computes
the hashtable capacity internally via int(usable / MAX_LOAD_FACTOR).
2018-06-12 22:25:27 +02:00
TW 80d94f5e5e
Merge pull request #3897 from ThomasWaldmann/cleanup-setup
Cleanup setup.py
2018-06-12 22:12:42 +02:00
Thomas Waldmann b419098fa4 make swidth available on all posix platforms, fixes #2667
it is assumed that posix == everything else than win32.
2018-06-12 21:25:17 +02:00
Thomas Waldmann 06f2378458 setup.py: move build_man / build_usage code to setup_docs.py
brings setup.py down from 800 to 300 lines.
2018-06-12 21:06:01 +02:00
Thomas Waldmann 39a7078741 modernize / simplify llfuse requirements
DO NOT BACKPORT TO 1.1-maint / 1.0-maint.

master branch will still take a while until next release,
so we can safely require llfuse >= 1.1 (May 2016).
2018-06-12 20:49:23 +02:00
Thomas Waldmann d0bed00e9a remove pyzmq package requirement, not used yet 2018-06-12 20:38:21 +02:00
TW 9d20aaab83
Merge pull request #3895 from ThomasWaldmann/msgpack-new-name
switch to "msgpack" pypi pkg name, fixes #3890
2018-06-12 20:33:43 +02:00
Thomas Waldmann 715c3d6824 switch to "msgpack" pypi pkg name, fixes #3890
MASTER BRANCH ONLY, DO NOT BACKPORT TO 1.1 or 1.0!

As there are no 0.4.x msgpack releases (under this new name, 0.4.x
used to be named "msgpack-python"), currently only 0.5.6 can be
recommended. See comments for other versions that are acceptable
under certain conditions.

We will add new msgpack versions later, after testing them.
2018-06-12 19:34:40 +02:00
TW 2b796950be
Merge pull request #3892 from eli-schwartz/environment-markers
Embrace environment markers (a.k.a. PEP 508 compliance)!
2018-06-12 18:45:09 +02:00
Eli Schwartz b5d22b5fba
Embrace environment markers (a.k.a. PEP 508 compliance)!
Failure to use environment markers means the dependencies are
unconditionally added at build time based on the host instead of being
always present and evaluated at runtime on the target; e.g. wheels have
the wrong information.

Also use python_requires. This teaches pip how to natively comprehend
when the current version of python is not supported by borg.

Returns errors in the format:
borgbackup requires Python '>=3.5' but the running Python is $oldver
2018-06-11 22:29:16 -04:00
TW 511371fcd8
Merge pull request #3886 from saurvs/syslibs_forwardport
revert to using system compression libs, fixes #3797 (fwd port to master)
2018-06-10 10:49:45 +02:00
Thomas Waldmann ab6e6314dd revert to using system compression libs, fixes #3797
we temporarily used the updated, bundled lz4 and zstd code for testing
purposes, but now going back to using system provided libs by default.

(cherry picked from commit 66084c7234)
2018-06-10 09:49:04 +05:30
TW 66736eda51
Merge pull request #3884 from saurvs/lz4_forwardport
update bundled lz4 code (fwd port to master)
2018-06-09 22:49:44 +02:00
TW ceaa7e9210
Merge pull request #3883 from saurvs/prune_forwardport
borg prune: improve progress display (fwd port to master)
2018-06-09 22:39:03 +02:00
Thomas Waldmann 60a5d6e59e temporarily prefer bundled lz4 to test it
(cherry picked from commit bf6fa04650)
2018-06-08 17:03:35 +05:30
Thomas Waldmann 7ed60b7efa update bundled lz4 code to 1.8.2
(cherry picked from commit f7c7384285)
2018-06-08 17:03:21 +05:30
Thomas Waldmann c454bf6fa6 borg prune: improve progress display
the old progress output was kind of broken:
Archiver() did output some progress when add_item was called.
Archive.delete() did output progress for a single archive deletion

but what we really want is a overall progress indication, advancing
the progress for each deleted archive.

(cherry picked from commit 529bbfdeca)
2018-06-08 15:08:30 +05:30
TW a6c3168006
Merge pull request #3882 from ThomasWaldmann/vagrant-fixes-master
vagrantfile fixes (fwd port to master)
2018-06-08 09:11:53 +02:00
Thomas Waldmann 7e59a6c229 vagrantfile fixes (fwd port to master) 2018-06-08 09:01:25 +02:00
Rémi Oudin 73410861ae borg config --list <repo>, fixes #3612
Add --list option to dump the repo configuration / the default values.

Also: fixes argument order in borg config tests
2018-06-08 08:26:32 +02:00
TW c97006ecf2
Merge pull request #3863 from saurvs/doc
Clarify --append-only flag
2018-05-28 01:47:13 +02:00
Saurav Sachidanand 5225dbfc4e Clarify --append-only flag 2018-05-27 19:56:57 +05:30