Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use looseversion in place of distutils #888

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

hloeung
Copy link
Contributor

@hloeung hloeung commented Apr 2, 2024

Fixes #701:

Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/test_content_cache.py:25: in <module>
    from reactive import content_cache  # NOQA: E402
reactive/content_cache.py:13: in <module>
    from charms import reactive
.tox/unit/lib/python3.12/site-packages/charms/reactive/__init__.py:20: in <module>
    from .flags import *  # noqa
.tox/unit/lib/python3.12/site-packages/charms/reactive/flags.py:2: in <module>
    from charmhelpers.core import hookenv
.tox/unit/lib/python3.12/site-packages/charmhelpers/core/hookenv.py:21: in <module>
    from distutils.version import LooseVersion
E   ModuleNotFoundError: No module named 'distutils'

@ajkavanagh ajkavanagh merged commit 1b2d4dc into juju:master Jun 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

distutils package is deprecated and slated for removal in Python 3.12
2 participants