Commit Graph

69 Commits

Author SHA1 Message Date
Thomas Waldmann 1175fbcfd9
support / test on Python 3.12 2023-09-14 03:04:28 +02:00
Thomas Waldmann 98796a2f0d
replace flake8 by ruff 2023-09-04 22:15:42 +02:00
Thomas Waldmann fc7cd92ee2
docs: tox -e docs tests building the docs 2023-08-26 13:36:10 +02:00
Thomas Waldmann 7bb644e997
tox: package = editable-legacy, fixes #7580 2023-05-17 01:01:05 +02:00
Thomas Waldmann efc69eab80
tox under fakeroot: fix finding setup_docs, fixes #7391 2023-05-16 14:28:51 +02:00
Thomas Waldmann e6424aa0f5
fix tox4 passenv issue, fixes #7199
also: have a setting to disable fail-fast, in case something breaks again.
2022-12-10 19:34:32 +01:00
Thomas Waldmann b4933eb337 get rid of dateutil 2022-08-13 18:31:22 +02:00
Thomas Waldmann b8e48c5036 mypy: fixes / annotations 2022-07-15 14:54:48 +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 18a7debf75 CI: also test on python 3.11-dev 2022-06-03 10:05:04 +02:00
Manu f36a0fc6b6 Remove Python 3.8 from tox 2022-03-23 17:47:34 +04:00
Thomas Waldmann 59b6dc5442 require python 3.8+, fixes #5975
if you do not have py38+ yet, just use borg 1.1.x.
2021-09-16 02:21:29 +02:00
Thomas Waldmann b15469c3c8 drop support for py36, require py37+, fixes #5790
if you do not have python >= 3.7, 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 and all other stuff needed.
2021-06-16 15:31:34 +02:00
Ronny Pfannschmidt b726b66fd1 tox.ini: modernize and enable execution without preinstalling deps 2021-05-02 17:51:12 +02:00
Thomas Waldmann 9f4a6e5574 add support and testing for python 3.10 2021-02-28 22:49:03 +01:00
Thomas Waldmann 6c4bf43817 tox: add a non-fuse env to the envlist
without this, openbsd and openindiana (which both skip all ".*fuse.*" envs) would not run any tests.

on platforms that have fuse, skip the "none" envs to not execute duplicate tests.
2020-12-04 22:40:54 +01:00
Thomas Waldmann 0950d23e4d test fuse2/fuse3 2020-11-04 01:20:57 +01:00
Thomas Waldmann 49b1421682 FUSE: support pyfuse3 additionally to llfuse, fixes #5407
FUSE implementation can be switched via env var BORG_FUSE_IMPL.
2020-10-31 22:04:44 +01:00
Guinness a5078d2d34
Remove Python3.5 from tox.ini as it is not supported anymore 2020-10-18 11:01:03 +02:00
pamaron 8be6afd9e1
Enable Python3.9 env for test suite and VMs (#5373)
for now, skip fuse for py39 -- llfuse does not support py39 yet

use brew update >/dev/null so travis does not complain about too much output
2020-10-04 15:38:05 +02:00
ntova 3e0bed4b36 tox / travis: add testing on py38-dev 2019-07-30 11:08:03 +02:00
TW c1677ac246
pytest: -v and default XDISTN to 1 (#4481) 2019-04-03 17:12:06 +02:00
Thomas Waldmann 5173b9f407 add pkg-config support, fixes #1925
1. BORG_*_PREFIX is checked (avoids lib detection via pkg-config).
2. pkg-config is tried
3. fallback to bundled C code (or failure in case of OpenSSL)

also:
- simplified code again
- removed (c) headers, nothing left of original code
2019-03-13 18:26:47 +01:00
Thomas Waldmann 2be5446098 Revert "drop support for python 3.5, fixes #3919"
This reverts commit 55314f807e.
2018-12-11 00:53:43 +01:00
Thomas Waldmann fef9581690 tox / travis: enable testing on py37 2018-07-30 01:11:11 +01: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
Thomas Waldmann a5c6a50ebe increase Python minimum requirement to 3.5.0
also:
- drop testing on 3.4
- add some TODO for the docs and vagrant machines
2017-07-29 20:55:04 +02:00
Thomas Waldmann fed5873e29 remove attic dependency of the tests, fixes #2505
attic.tar.gz contains a repo + corresponding keyfile - all the
upgrader module tests need.

.tar.gz because the .tar was 20x bigger.
2017-06-06 04:26:48 +02:00
Thomas Waldmann 740312f725 Merge branch '1.0-maint' into merge-1.0-maint
# Conflicts:
#	requirements.d/development.txt
#	tox.ini
2017-01-15 01:15:04 +01:00
Thomas Waldmann 0e1f050440 pytest -n 4 as default (4 parallel workers)
auto does not produce enough load, e.g. on freebsd64 vagrant VM,
cpu is 80-90% idle (1 core == 1 parallel tox worker).
2017-01-15 00:18:00 +01:00
Thomas Waldmann 0a15530f9a pytest-xdist: adjust parallelism, fixes #2053
it's either auto or env var XDISTN value.
2017-01-14 23:10:12 +01:00
Marian Beermann ecad0ed53a Merge branch '1.0-maint' into merge/1.0-maint
# Conflicts: ... everywhere ...
#	.travis.yml
#	Vagrantfile
#	borg/testsuite/key.py
#	docs/changes.rst
#	docs/quickstart.rst
#	docs/usage.rst
#	docs/usage/upgrade.rst.inc
#	src/borg/archive.py
#	src/borg/archiver.py
#	src/borg/crypto.pyx
#	src/borg/helpers.py
#	src/borg/key.py
#	src/borg/remote.py
#	src/borg/repository.py
#	src/borg/testsuite/archive.py
#	src/borg/testsuite/archiver.py
#	src/borg/testsuite/crypto.py
#	src/borg/testsuite/helpers.py
#	src/borg/testsuite/repository.py
#	src/borg/upgrader.py
#	tox.ini
2017-01-12 15:01:41 +01:00
Thomas Waldmann 853cfb703b parallelizing tests via pytest-xdist 2017-01-06 05:48:50 +01:00
Thomas Waldmann 9533493047 tox / travis: also test on Python 3.6 2017-01-04 00:57:35 +01:00
Marian Beermann c380d91805 fixes for flake 3.1.1 2016-11-14 21:50:20 +01:00
Thomas Waldmann ebe1143570 travis: test fuse-enabled borg 2016-08-22 00:14:08 +02:00
Thomas Waldmann 32bd29548b travis: test fuse-enabled borg 2016-08-21 22:07:59 +02:00
Marian Beermann ac8c8119a7
Merge branch '1.0-maint' into master 2016-07-28 00:29:43 +02:00
Lee Bousfield 0a4a95eb17
Remove trailing whitespace 2016-07-27 10:05:51 -04:00
Thomas Waldmann ed128e517b Merge branch '1.0-maint' 2016-06-25 17:18:14 +02:00
Thomas Waldmann 27c0d0f074 move attic test dependency into own file
so you can just empty that file to remove the attic-based tests
when testing in a OpenSSL 1.1 environment.
2016-06-21 20:06:36 +02:00
Thomas Waldmann c15787852a tox.ini: remove changedir 2016-05-30 22:10:03 +02:00
Thomas Waldmann 045e5a1203 Merge branch 'master' into move-to-src 2016-05-30 19:38:16 +02:00
Thomas Waldmann d27a3521ec test on py36 2016-05-21 19:24:18 +02:00
Thomas Waldmann 76839362e2 fix packaging/git/coverage for src/ path 2016-05-05 21:42:37 +02:00
Thomas Waldmann 2a2362fc2f add flake8 style checking 2016-01-30 22:01:27 +01:00
Thomas Waldmann 7d591226d2 remove support for python 3.2.x and 3.3.x, require 3.4+, fixes #65, fixes #221 2016-01-24 14:57:48 +01:00
Thomas Waldmann d7b6cc3527 fix .coverragerc path
as the cwd is in toxworkdir, .coveragerc is in ../
2015-11-01 22:36:18 +01:00
Thomas Waldmann 894546c3fe skip the benchmarks by default, especially on travis 2015-10-19 11:47:24 +02:00
Antoine Beaupré 57801a288d keep tests simple by always adding attic depends
note that we do not depend on attic to build borg, just to do those
tests. if attic goes away, we could eventually do this another way or
just stop testing this altogether.
2015-10-01 09:03:41 -04:00