Package platformids :: Package custom :: Module dragonbsd

Source Code for Module platformids.custom.dragonbsd

 1  # -*- coding: utf-8 -*- 
 2  """DragonFlyBSD 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_DRAGONFLYBSD  = RTE_BSD   + custom_dist.add_enum()   #: Registration of the *dist* value 
20  RTE_DRAGONBSD54   = RTE_DRAGONFLYBSD    + 0x00001480     #: DRAGONFLYBSD-5 
21       
22       
23  #: mapping of the rte string and numeric representation to the numeric value 
24  rte2num.update( 
25      { 
26          'dragonflybsd': RTE_DRAGONFLYBSD, 
27          RTE_DRAGONFLYBSD: RTE_DRAGONFLYBSD, 
28      } 
29  ) 
30   
31   
32  #: mapping of the rte numeric representation to the string value 
33  num2rte.update( 
34      { 
35          RTE_DRAGONFLYBSD: 'dragonflybsd', 
36     } 
37  ) 
38   
39   
40  #: mapping of the rte numeric representation to the pretty string value 
41  num2pretty.update( 
42      { 
43          RTE_DRAGONFLYBSD: 'DragonFlyBSD', 
44     } 
45  ) 
46   
47   
48  #-----------------------------------------------# 
49  #                                               # 
50  # optional constants for convenience            # 
51  #                                               # 
52  #-----------------------------------------------# 
53   
54  #: mapping of the rte string and numeric representation to the numeric value 
55  rte2num.update( 
56      { 
57          'dragonflybsd54': RTE_DRAGONBSD54, 
58          RTE_DRAGONBSD54: RTE_DRAGONBSD54, 
59      } 
60  ) 
61   
62   
63  #: mapping of the rte numeric representation to the string value 
64  num2rte.update( 
65      { 
66          RTE_DRAGONBSD54: 'dragonflybsd54', 
67     } 
68  ) 
69   
70   
71  #: mapping of the rte numeric representation to the pretty string value 
72  num2pretty.update( 
73      { 
74          RTE_DRAGONBSD54: 'DragonFlyBSD-5.4', 
75     } 
76  ) 
77