Coverage for src/m5py/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-22 17:10 +0000

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

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

3# 

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

5 

6from m5py.main import M5Prime 

7from m5py.export import export_text_m5 

8 

9try: 

10 # -- Distribution mode -- 

11 # import from _version.py generated by setuptools_scm during release 

12 from ._version import version as __version__ 

13except ImportError: 

14 # -- Source mode -- 

15 # use setuptools_scm to get the current version from src using git 

16 from setuptools_scm import get_version as _gv 

17 from os import path as _path 

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

19 

20__all__ = [ 

21 "__version__", 

22 # submodules 

23 "main", 

24 "export", 

25 # symbols 

26 "M5Prime", 

27 "export_text_m5" 

28]