Coverage for phml\__init__.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-04-05 15:06 -0500

1""" 

2.. include:: ../README.md 

3""" 

4from dataclasses import dataclass 

5 

6from .core import HypertextManager 

7from .builder import p 

8 

9__all__ = [ 

10 "HypertextManager", 

11 "p" 

12] 

13 

14 

15@dataclass 

16class Version: 

17 """Version object for phml. 

18 

19 {Major}.{Minor}.{Alpha} 

20 

21 Alpha: 

22 Includes all bugfixes and small feature changes that go into the 

23 iterations of a task. 

24 

25 Minor: 

26 All alpha changes pulled together into a task version release. 

27 

28 Major: 

29 All minor changes pulled together into a collection of tasks into a 

30 milestone/goal release. 

31 """ 

32 

33 Major: int = 0 

34 Minor: int = 2 

35 Alpha: int = 3 

36 

37 def __str__(self) -> str: 

38 return f"{self.Major}.{self.Minor}.{self.Alpha}" 

39 

40 

41__version__ = str(Version())