Coverage for src/piipaa/__init__.py: 57.14%

7 statements  

« prev     ^ index     » next       coverage.py v6.4.3, created at 2022-09-03 16:55 +0200

1from importlib.metadata import PackageNotFoundError, version 

2 

3VERSION_FALLBACK = '2022.4.1' 

4try: 

5 __version__ = version(__name__) 

6except PackageNotFoundError: 

7 # package is not installed 

8 # assign signal or sane value as a default 

9 __version__ = VERSION_FALLBACK 

10 pass