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

4 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2022-09-08 09:11 +0000

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

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

3# 

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

5from .main import create_function, with_signature, remove_signature_parameters, add_signature_parameters, \ 

6 wraps, create_wrapper, partial, with_partial, compile_fun, UndefinedSymbolError, UnsupportedForCompilation, \ 

7 SourceUnavailable 

8 

9try: 

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

11 from ._version import version as __version__ 

12except ImportError: 

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

14 from setuptools_scm import get_version as _gv 

15 from os import path as _path 

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

17 

18__all__ = [ 

19 '__version__', 

20 # submodules 

21 'main', 

22 # symbols 

23 'create_function', 'with_signature', 

24 'remove_signature_parameters', 'add_signature_parameters', 

25 'wraps', 'create_wrapper', 'partial', 'with_partial', 

26 # pseudo compilation 

27 'compile_fun', 'UndefinedSymbolError', 'UnsupportedForCompilation', 'SourceUnavailable' 

28]