Coverage for phml\__init__.py: 100%
10 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-04-05 15:06 -0500
« 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
6from .core import HypertextManager
7from .builder import p
9__all__ = [
10 "HypertextManager",
11 "p"
12]
15@dataclass
16class Version:
17 """Version object for phml.
19 {Major}.{Minor}.{Alpha}
21 Alpha:
22 Includes all bugfixes and small feature changes that go into the
23 iterations of a task.
25 Minor:
26 All alpha changes pulled together into a task version release.
28 Major:
29 All minor changes pulled together into a collection of tasks into a
30 milestone/goal release.
31 """
33 Major: int = 0
34 Minor: int = 2
35 Alpha: int = 3
37 def __str__(self) -> str:
38 return f"{self.Major}.{self.Minor}.{self.Alpha}"
41__version__ = str(Version())