Changeset View
Changeset View
Standalone View
Standalone View
bin/info.py
1 | ## | 1 | ## | ||
---|---|---|---|---|---|
2 | # | 2 | # | ||
3 | # @package this module contains the information class | 3 | # @package this module contains the information class | ||
4 | 4 | | |||
5 | # the current work here is to access members only | 5 | # the current work here is to access members only | ||
6 | # by methods to be able to separate the access from | 6 | # by methods to be able to separate the access from | ||
7 | # the definition | 7 | # the definition | ||
8 | from enum import Enum, unique | ||||
8 | 9 | | |||
9 | import VersionInfo | 10 | import VersionInfo | ||
10 | from Utils import CraftHash, CraftManifest | 11 | from Utils import CraftHash, CraftManifest | ||
11 | from options import * | 12 | from options import * | ||
12 | from CraftDebug import deprecated | 13 | from CraftDebug import deprecated | ||
13 | 14 | | |||
14 | 15 | | |||
16 | @unique | ||||
17 | class DependencyRequirementType(Enum): | ||||
18 | Optional = 0 | ||||
19 | Required = 1 | ||||
20 | | ||||
15 | class infoclass(object): | 21 | class infoclass(object): | ||
16 | """this module contains the information class""" | 22 | """this module contains the information class""" | ||
17 | 23 | | |||
18 | def __init__(self, parent): | 24 | def __init__(self, parent): | ||
19 | ### package options | 25 | ### package options | ||
20 | self.parent = parent | 26 | self.parent = parent | ||
21 | self.options = Options(parent.package) | 27 | self.options = Options(parent.package) | ||
22 | self.versionInfo = VersionInfo.VersionInfo(subinfo=self) | 28 | self.versionInfo = VersionInfo.VersionInfo(subinfo=self) | ||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |