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

7 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-04-07 12:14 +0200

1import pathlib 

2 

3from .version import IS_RELEASE_BUILD, __version__ 

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"