Coverage for genbadge/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-11-10 20:37 +0000

1# Authors: Sylvain MARIE <sylvain.marie@se.com> 

2# + All contributors to <https://github.com/smarie/python-genbadge> 

3# 

4# License: 3-clause BSD, <https://github.com/smarie/python-genbadge/blob/master/LICENSE> 

5from .utils_badge import Badge 

6 

7try: 

8 # Distribution mode : import from _version.py generated by setuptools_scm during release 

9 from ._version import version as __version__ 

10except ImportError: 

11 # Source mode : use setuptools_scm to get the current version from src using git 

12 from setuptools_scm import get_version as _gv 

13 from os import path as _path 

14 __version__ = _gv(_path.join(_path.dirname(__file__), _path.pardir)) 

15 

16__all__ = [ 

17 '__version__', 

18 # submodules 

19 'main', 'utils_junit', 'utils_coverage', 'utils_flake8', 'utils_badge', 'xunitparser_copy', 

20 # symbols 

21 'Badge' 

22]