Coverage for src/debputy/__init__.py: 80%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2025-01-27 13:59 +0000

1import pathlib 

2 

3from .version import IS_RELEASE_BUILD, __version__, _RUN_FROM_SOURCE 

4 

5# Replaced during install; must be a single line 

6# fmt: off 

7DEBPUTY_ROOT_DIR = pathlib.Path(__file__).parent.parent.parent 

8DEBPUTY_PLUGIN_ROOT_DIR = pathlib.Path(__file__).parent.parent.parent 

9# fmt: on 

10 

11if IS_RELEASE_BUILD: 11 ↛ 12line 11 didn't jump to line 12

12 DEBPUTY_DOC_ROOT_DIR = ( 

13 f"https://salsa.debian.org/debian/debputy/-/blob/debian/{__version__}" 

14 ) 

15else: 

16 DEBPUTY_DOC_ROOT_DIR = "https://salsa.debian.org/debian/debputy/-/blob/main" 

17 

18DEBPUTY_IS_RUN_FROM_SOURCE = _RUN_FROM_SOURCE