/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/__init__.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2022-08-30 10:28:23 UTC
  • mfrom: (533.1.1 trunk)
  • Revision ID: otto-copilot@canonical.com-20220830102823-u3w6efosxw5s086s
Cope with moved errors NoSuchFile and FileExists in newer versions of Breezy.

Merged from https://code.launchpad.net/~jelmer/loggerhead/moved-errors/+merge/429073

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
except importlib_metadata.PackageNotFoundError:
28
28
    # Support running tests from the build tree without installation.
29
29
    import os
30
 
    try:
31
 
        from setuptools.config.setupcfg import read_configuration
32
 
    except ModuleNotFoundError:
33
 
        from setuptools.config import read_configuration
 
30
    from setuptools.config import read_configuration
34
31
    cfg = read_configuration(os.path.join(os.path.dirname(__file__), '..', 'setup.cfg'))
35
32
    __version__ = cfg['metadata']['version']
36
33
__revision__ = None