Package platformids :: Package custom :: Module trueos

Source Code for Module platformids.custom.trueos

 1  # -*- coding: utf-8 -*- 
 2  """TrueOS releases. 
 3   
 4  Use standard encoding, thus require enum value registration only. 
 5  """ 
 6  from __future__ import absolute_import 
 7   
 8  from platformids import rte2num, num2rte, num2pretty, custom_dist, \ 
 9      RTE_BSD 
10   
11  __author__ = 'Arno-Can Uestuensoez' 
12  __license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints" 
13  __copyright__ = "Copyright (C) 2010-2018 Arno-Can Uestuensoez" \ 
14                  " @Ingenieurbuero Arno-Can Uestuensoez" 
15  __version__ = '0.1.1' 
16  __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9" 
17   
18   
19  RTE_TRUEOS      = RTE_BSD   + custom_dist.add_enum()   #: Registration of the *dist* value 
20  RTE_TRUEOS1812  = RTE_TRUEOS          + 0x00004980     #: TrueOS-18.12 
21   
22       
23  #: mapping of the rte string and numeric representation to the numeric value 
24  rte2num.update( 
25      { 
26          'trueos': RTE_TRUEOS, 
27          RTE_TRUEOS: RTE_TRUEOS, 
28      } 
29  ) 
30   
31   
32  #: mapping of the rte numeric representation to the string value 
33  num2rte.update( 
34      { 
35          RTE_TRUEOS: 'trueos', 
36     } 
37  ) 
38   
39   
40  #: mapping of the rte numeric representation to the pretty string value 
41  num2pretty.update( 
42      { 
43          RTE_TRUEOS: 'TrueOS', 
44     } 
45  ) 
46