Coverage for phml\__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-04-12 14:26 -0500

1""" 

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

3""" 

4from dataclasses import dataclass 

5 

6from .builder import p 

7from .core import HypertextManager 

8 

9 

10@dataclass 

11class Version: 

12 """Version object for phml. 

13 

14 {Major}.{Minor}.{Alpha} 

15 

16 Alpha: 

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

18 iterations of a task. 

19 

20 Minor: 

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

22 

23 Major: 

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

25 milestone/goal release. 

26 """ 

27 

28 Major: int = 0 

29 Minor: int = 3 

30 Alpha: int = 0 

31 

32 def __str__(self) -> str: 

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

34 

35 

36__version__ = str(Version())