Coverage for edustaa/__init__.py: 0.00%

17 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-04 17:30:09 +00:00

1"""Represent (Finnish: edustaa) markdown text parts as a whole in markdown, html, pdf, and troff format guided by conventions.""" # noqa 

2 

3import os 

4import pathlib 

5 

6# [[[fill git_describe()]]] 

7__version__ = '2023.6.24+parent.gebd52f6a' 

8# [[[end]]] (checksum: 9781309a029ecf99030476cf373b0e50) 

9__version_info__ = tuple( 

10 e if '-' not in e else e.split('-')[0] for part in __version__.split('+') for e in part.split('.') if e != 'parent' 

11) 

12 

13APP_ALIAS = str(pathlib.Path(__file__).parent.name) 

14APP_ENV = APP_ALIAS.upper() 

15APP_NAME = locals()['__doc__'] 

16DEBUG = bool(os.getenv(f'{APP_ENV}_DEBUG', '')) 

17VERBOSE = bool(os.getenv(f'{APP_ENV}_VERBOSE', '')) 

18QUIET = False 

19STRICT = bool(os.getenv(f'{APP_ENV}_STRICT', '')) 

20ENCODING = 'utf-8' 

21ENCODING_ERRORS_POLICY = 'ignore' 

22DEFAULT_CONFIG_NAME = f'.{APP_ALIAS}.json' 

23 

24VERSION = __version__ 

25VERSION_INFO = __version_info__ 

26 

27__all__ = [ 

28 'APP_ALIAS', 

29 'APP_ENV', 

30 'APP_NAME', 

31 'VERSION', 

32 'VERSION_INFO', 

33]