Coverage for trlcdoc/__init__.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.17.5, created at 2026-11-28 14:00 +0000

1"""trlcdoc - configurable documentation tooling for TRLC based projects.""" 

2 

3# trlcdoc - A utility for producing project documentation from TRLC and LOBSTER contents. 

4# Copyright (c) 2026 - 2026 Norbert Schulz github@schulznorbert.de 

5# 

6# This file is part of trlcdoc program. 

7# 

8# The trlcdoc program is free software: you can redistribute it and/or modify it under 

9# the terms of the GNU General Public License as published by the Free Software Foundation, 

10# either version 3 of the License, or (at your option) any later version. 

11# 

12# The trlcdoc program is distributed in the hope that it will be useful, but 

13# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 

14# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 

15# 

16# You should have received a copy of the GNU General Public License along with pyTRLCConverter. 

17# If not, see <https://www.gnu.org/licenses/>. 

18 

19# Imports ********************************************************************** 

20 

21from importlib.metadata import PackageNotFoundError, version 

22 

23# Variables ******************************************************************** 

24 

25# Single source of truth is the version in pyproject.toml. 

26try: 

27 __version__ = version("trlcdoc") 

28except PackageNotFoundError: # pragma: no cover - running from a source tree without install 

29 __version__ = "0.0.0+unknown" 

30 

31# Classes ********************************************************************** 

32 

33# Functions ******************************************************************** 

34 

35# Main *************************************************************************