Add support for python 3.6 (bionic)

Bug #1953125 reported by Jose Guedez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-backup-all
Fix Released
Wishlist
Jose Guedez

Bug Description

The module uses python features that require a newer python version than provided in Ubuntu Bionic (18.04), which is 3.6.9 - In particular dataclasses, which became available in python 3.7. The stacktrace below is an example of the unit test suite failing due to this issue.

It would be convenient if the jujubackupall module had support for the python version in Ubuntu Bionic, as it is still used widely.

======================================================================
ERROR: test_process (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_process
Traceback (most recent call last):
  File "/home/jguedez/.pyenv/versions/3.6.9/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/jguedez/.pyenv/versions/3.6.9/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/jguedez/canonical/repos/bootstack/juju-backup-all/tests/unit/test_process.py", line 10, in <module>
    from jujubackupall.process import BackupProcessor, ControllerProcessor, JujuModel
  File "/home/jguedez/canonical/repos/bootstack/juju-backup-all/jujubackupall/process.py", line 30, in <module>
    from jujubackupall.backup import (
  File "/home/jguedez/canonical/repos/bootstack/juju-backup-all/jujubackupall/backup.py", line 20, in <module>
    import dataclasses
ModuleNotFoundError: No module named 'dataclasses'

----------------------------------------------------------------------
Ran 19 tests in 0.011s

FAILED (errors=3)

Related branches

Jose Guedez (jfguedez)
Changed in juju-backup-all:
importance: Undecided → Wishlist
status: New → In Progress
assignee: nobody → Jose Guedez (jfguedez)
Jose Guedez (jfguedez)
Changed in juju-backup-all:
status: In Progress → Fix Committed
Changed in juju-backup-all:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.