Package Details: borgmatic 1.2.4-1

Git Clone URL: https://aur.archlinux.org/borgmatic.git (read-only)
Package Base: borgmatic
Description: A wrapper script for Borg backup software that creates and prunes backups
Upstream URL: https://torsion.org/borgmatic/
Licenses: GPL3
Submitter: nylocx
Maintainer: nylocx (devopsdeluxe)
Last Packager: devopsdeluxe
Votes: 17
Popularity: 1.259904
First Submitted: 2016-02-18 13:48
Last Updated: 2018-09-30 20:37

Latest Comments

1 2 3 4 5 Next › Last »

nicoulaj commented on 2018-12-08 16:46

@devopsdeluxe you need to run via tox, otherwise it won't work.

Here is a patch for 1.2.11:

diff --git a/.SRCINFO b/.SRCINFO
index [`5a3ba99`](https://aur.archlinux.org/cgit/aur.git/commit/?h=borgmatic&id=5a3ba99)..e310226 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
 pkgbase = borgmatic
        pkgdesc = A wrapper script for Borg backup software that creates and prunes backups
-       pkgver = 1.2.4
+       pkgver = 1.2.11
        pkgrel = 1
        url = <https://torsion.org/borgmatic/>
        install = borgmatic.install
        arch = any
        license = GPL3
-       checkdepends = python-flexmock
-       checkdepends = python-pytest
+       checkdepends = python-tox
        makedepends = python-setuptools
        depends = borg
        depends = python-pykwalify
        depends = python-ruamel-yaml
-       source = borgmatic-1.2.4.tar.gz::<https://projects.torsion.org/witten/borgmatic/archive/1.2.4.tar.gz>
+       source = borgmatic-1.2.11.tar.gz::<https://projects.torsion.org/witten/borgmatic/archive/1.2.11.tar.gz>
        source = borgmatic.install
-       sha256sums = 139653a014e39b749234908153ed81a712753e92bd3419ec2f38f7898b452ab3
+       sha256sums = db73f8754c7f3aa929a6051776a2d731543b702ab3963f74603a50f52b07c277
        sha256sums = 2862763feea83e3ee0fb65c9f3fec648312486cd8ab48cd7cac70a7bb742b55b

 pkgname = borgmatic
diff --git a/PKGBUILD b/PKGBUILD
index [`764ad65`](https://aur.archlinux.org/cgit/aur.git/commit/?h=borgmatic&id=764ad65)..be7740d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
 # Maintainer: Alexander Görtz <aur@nyloc.de>
 # Co-maintainer: Dan Beste <dan.ray.beste@gmail.com>
 # Contributor: stef204 <<https://aur.archlinux.org/account/stef204>>
+# Contributor: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>

 pkgname='borgmatic'
-pkgver=1.2.4
+pkgver=1.2.11
 pkgrel=1
 pkgdesc='A wrapper script for Borg backup software that creates and prunes backups'
 arch=('any')
@@ -11,16 +12,14 @@ url='<https://torsion.org/borgmatic/>'
 license=('GPL3')
 depends=('borg' 'python-pykwalify' 'python-ruamel-yaml')
 makedepends=('python-setuptools')
-checkdepends=('python-flexmock' 'python-pytest')
+checkdepends=('python-tox')
 install="${pkgname}.install"
 source=(
   "${pkgname}-${pkgver}.tar.gz::<https://projects.torsion.org/witten/borgmatic/archive/>${pkgver}.tar.gz"
   "${pkgname}.install"
 )
-sha256sums=(
-  '139653a014e39b749234908153ed81a712753e92bd3419ec2f38f7898b452ab3'
-  '2862763feea83e3ee0fb65c9f3fec648312486cd8ab48cd7cac70a7bb742b55b'
-)
+sha256sums=('db73f8754c7f3aa929a6051776a2d731543b702ab3963f74603a50f52b07c277'
+            '2862763feea83e3ee0fb65c9f3fec648312486cd8ab48cd7cac70a7bb742b55b')

 prepare() {
   cd "${pkgname}"
@@ -31,7 +30,7 @@ prepare() {
 check() {
   cd "${pkgname}"

-  pytest
+  tox
 }

 package() {

Can you please apply it or add me to comaintainers ?

devopsdeluxe commented on 2018-12-02 21:58

There's some severe breakage with the system tests...

I'll post the logs shortly! I'm probably just missing a testing dependency...

Stunkymonkey commented on 2018-11-28 21:45

i looked at the CI of borgmatic and found out the maintainer is not testing end-to-end.

maybe we can skip this check. To do so replace the check with pytest --ignore=tests/end-to-end tests

polyzen commented on 2018-08-21 03:00

Please move flexmock and pytest to checkdepends() as they're only needed for tests.

witten commented on 2018-08-11 21:19

That pykwalify error has now been fixed in borgmatic 1.2.2, just released. It was caused by a breaking change introduced in ruamel.yaml 0.15.52.

aurelieng commented on 2018-08-11 17:29

Even with python-pykwalify 1.6.1, borgmatic fails with :

Traceback (most recent call last):
  File "/usr/sbin/borgmatic", line 11, in <module>
    load_entry_point('borgmatic==1.2.1', 'console_scripts', 'borgmatic')()
  File "/usr/lib/python3.7/site-packages/borgmatic/commands/borgmatic.py", line 241, in main
    run_configuration(config_filename, args)
  File "/usr/lib/python3.7/site-packages/borgmatic/commands/borgmatic.py", line 125, in run_configuration
    config = validate.parse_configuration(config_filename, validate.schema_filename())
  File "/usr/lib/python3.7/site-packages/borgmatic/config/validate.py", line 89, in parse_configuration
    parsed_result = validator.validate(raise_exception=False)
  File "/usr/lib/python3.7/site-packages/pykwalify/core.py", line 155, in validate
    self._start_validate(self.source)
  File "/usr/lib/python3.7/site-packages/pykwalify/core.py", line 197, in _start_validate
    root_rule = Rule(schema=self.schema)
  File "/usr/lib/python3.7/site-packages/pykwalify/rule.py", line 66, in __init__
    self.init(schema, "")
  File "/usr/lib/python3.7/site-packages/pykwalify/rule.py", line 443, in init
    func_mapping[k](v, rule, path)
  File "/usr/lib/python3.7/site-packages/pykwalify/rule.py", line 1134, in init_mapping_value
    path=path,
pykwalify.errors.RuleError: <RuleError: error code 4: Value for keyword 'map/mapping' is not a dict: Path: '/'>

Do you have the same error on your side, or is it a problem with my config file and/or my python setup?

Edit: Already reported here: https://projects.torsion.org/witten/borgmatic/issues/85

devopsdeluxe commented on 2018-08-10 16:24

Once python-pykwalify is updated this should build successfully again.

Left a patch for the maintainer: https://aur.archlinux.org/packages/python-pykwalify/

gothmog.todi commented on 2018-08-10 16:11

@bjo: Strange, it works for me. Did you recreate python-pykwalify as well? You could also try just disabling the check part.

bjo commented on 2018-08-10 15:57

@gothmog.todi: Which does not work due to the failing pykwalify-stuff.

gothmog.todi commented on 2018-08-10 14:50

@samhh: the python packages in the official repos have been updated to 3.7. Any self-built python packages (like borgmatic) have to be rebuilt against the new version.