Re: Duplicity 3.04 Released
Nuno Teixeira via Duplicity-talk <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.duplicity.general |
|---|---|
| Message-ID | <CAFDf7U+35WUdMy4muSRjMc9tMUb_sreR+YvfphTb8AqvO3doCw@mail.gmail.com> |
Hello,
FreeBSD ports
3.0.4 intruduces 2 failed tests:
testing/test_code.py::CodeTest::test_black FAILED [1]
testing/test_code.py::CodeTest::test_pylint FAILED [2]
Any hints on how to fix?
Thanks!
[1] it might be related to version >24 as black port dependency is 25.1.0
============================= test session starts
==============================
platform freebsd15 -- Python 3.11.11, pytest-8.1.1, pluggy-1.5.0 --
/usr/local/bin/python3.11
cachedir: .pytest_cache
rootdir: /wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4
configfile: pyproject.toml
plugins: pycodestyle-2.4.1
collecting ... collected 1 item
run-last-failure: rerun previous 1 failure first
testing/test_code.py::CodeTest::test_black FAILED
[100%]
=================================== FAILURES
===================================
_____________________________ CodeTest.test_black
______________________________
self = <testing.test_code.CodeTest testMethod=test_black>
def test_black(self):
"""Black check for out of format files"""
print()
> self.run_checker(
[
"black",
"--check",
]
+ files_to_test,
)
self = <testing.test_code.CodeTest testMethod=test_black>
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/testing/test_code.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/testing/test_code.py:61:
in run_checker
self.assertTrue(
E AssertionError: False is not true : Test failed: returncode = 1
cmd = ['black', '--check',
'/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/dup_main.py',
'/wrkdirs/usr...-3.0.4/duplicity/manifest.py',
'/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/cli_data.py',
...]
line = ''
output = ''
process = <Popen: returncode: 1 args: ['black', '--check',
'/wrkdirs/usr/ports/sysutil...>
returncodes = [0]
self = <testing.test_code.CodeTest testMethod=test_black>
----------------------------- Captured stdout call
-----------------------------
----------------------------- Captured stderr call
-----------------------------
Oh no! 💥 💔 💥 The required version `24` does not match the running
version `25.1.0`!
=========================== short test summary info
============================
FAILED testing/test_code.py::CodeTest::test_black - AssertionError: False
is ...
============================== 1 failed in 0.34s
===============================
[2] plynt port dependency is 3.3.4
============================= test session starts
==============================
platform freebsd15 -- Python 3.11.11, pytest-8.1.1, pluggy-1.5.0 --
/usr/local/bin/python3.11
cachedir: .pytest_cache
rootdir: /wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4
configfile: pyproject.toml
plugins: pycodestyle-2.4.1
collecting ... collected 1 item
run-last-failure: rerun previous 1 failure first
testing/test_code.py::CodeTest::test_pylint FAILED
[100%]
=================================== FAILURES
===================================
_____________________________ CodeTest.test_pylint
_____________________________
self = <testing.test_code.CodeTest testMethod=test_pylint>
def test_pylint(self):
"""Pylint test (requires pylint to be installed to pass)"""
print()
> self.run_checker(
[
"pylint",
f"--rcfile={os.path.join(_top_dir, 'pyproject.toml')}",
]
+ files_to_test
)
self = <testing.test_code.CodeTest testMethod=test_pylint>
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/testing/test_code.py:92:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/testing/test_code.py:61:
in run_checker
self.assertTrue(
E AssertionError: False is not true : Test failed: returncode = 2
cmd = ['pylint',
'--rcfile=/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/pyproject.toml',
'/wrkdirs/usr/ports/s...-3.0.4/duplicity/manifest.py',
'/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/cli_data.py',
...]
line = ''
output = ''
process = <Popen: returncode: 2 args: ['pylint',
'--rcfile=/wrkdirs/usr/ports/sysutils...>
returncodes = [0]
self = <testing.test_code.CodeTest testMethod=test_pylint>
----------------------------- Captured stdout call
-----------------------------
----------------------------- Captured stderr call
-----------------------------
************* Module duplicity.backends.gdrivebackend
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:104:
[E0401(import-error), GDriveBackend.__init__] Unable to import
'google_auth_oauthlib.flow'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:105:
[E0401(import-error), GDriveBackend.__init__] Unable to import
'google.auth.transport.requests'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:209:
[E0401(import-error), GDriveBackend.file_by_name] Unable to import
'googleapiclient.errors'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:276:
[E0401(import-error), GDriveBackend._put] Unable to import
'googleapiclient.http'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:323:
[E0401(import-error), GDriveBackend._get] Unable to import
'googleapiclient.http'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:384:
[E0401(import-error), GDriveBackend._error_code] Unable to import
'google.auth.exceptions'
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/gdrivebackend.py:385:
[E0401(import-error), GDriveBackend._error_code] Unable to import
'googleapiclient.errors'
************* Module duplicity.backends.boxbackend
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/boxbackend.py:33:
[E0401(import-error), BoxBackend.__init__] Unable to import 'boxsdk'
************* Module duplicity.backends.azurebackend
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/azurebackend.py:86:
[E0401(import-error), AzureBackend._get_or_create_container] Unable to
import 'azure.core.exceptions'
************* Module duplicity.backends.pydrivebackend
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/pydrivebackend.py:279:
[E0401(import-error), PyDriveBackend._error_code] Unable to import
'pydrive2.files'
************* Module duplicity.backends.swiftbackend
/wrkdirs/usr/ports/sysutils/duplicity/work/duplicity-3.0.4/duplicity/backends/swiftbackend.py:176:
[E0401(import-error), SwiftBackend._put] Unable to import
'swiftclient.service'
=========================== short test summary info
============================
FAILED testing/test_code.py::CodeTest::test_pylint - AssertionError: False
is...
============================== 1 failed in 8.69s
===============================
Kenneth Loafman via Duplicity-talk <[email protected]> escreveu
(domingo, 9/02/2025 à(s) 17:59):
> Hi,
>
> A new Release rel.3.0.4 for duplicity was published. Visit the Releases
> page <https://gitlab.com/duplicity/duplicity/-/releases> to read more
> about it.
>
> Assets:
>
> - Download zip
> <https://gitlab.com/duplicity/duplicity/-/archive/rel.3.0.4/duplicity-rel.3.0.4.zip>
> - Download tar.gz
> <https://gitlab.com/duplicity/duplicity/-/archive/rel.3.0.4/duplicity-rel.3.0.4.tar.gz>
> - Download tar.bz2
> <https://gitlab.com/duplicity/duplicity/-/archive/rel.3.0.4/duplicity-rel.3.0.4.tar.bz2>
> - Download tar
> <https://gitlab.com/duplicity/duplicity/-/archive/rel.3.0.4/duplicity-rel.3.0.4.tar>
>
> Release notes:
>
> This is the 3.0.4 release of duplicity. See CHANGELOG
> <https://gitlab.com/duplicity/duplicity/-/blob/main/CHANGELOG.md> for
> details.
> ...Thanks,
> ...Ken
> _______________________________________________
> Duplicity-talk mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
--
Nuno Teixeira
FreeBSD UNIX: <[email protected]> Web: https://FreeBSD.org
_______________________________________________
Duplicity-talk mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk