Package platformids :: Package custom :: Module nomadbsd

Source Code for Module platformids.custom.nomadbsd

 1  # -*- coding: utf-8 -*- 
 2  """NomadBSD 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_NOMADBSD      = RTE_BSD   + custom_dist.add_enum()   #: Registration of the *dist* value 
20  RTE_NOMADBSD12    = RTE_NOMADBSD        + 0x00001480     #: NomadBSD-1.2 
21       
22       
23  #: mapping of the rte string and numeric representation to the numeric value 
24  rte2num.update( 
25      { 
26          'nomadbsd': RTE_NOMADBSD, 
27          RTE_NOMADBSD: RTE_NOMADBSD, 
28      } 
29  ) 
30   
31   
32  #: mapping of the rte numeric representation to the string value 
33  num2rte.update( 
34      { 
35          RTE_NOMADBSD: 'nomadbsd', 
36     } 
37  ) 
38   
39   
40  #: mapping of the rte numeric representation to the pretty string value 
41  num2pretty.update( 
42      { 
43          RTE_NOMADBSD: 'NomadBSD', 
44     } 
45  ) 
46