Coverage for pyEDAA/IPXACT/Schema/__init__.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.8.2, created at 2025-05-30 22:17 +0000

1# ==================================================================================================================== # 

2# ___ ______ __ _ ____ _____ # 

3# _ __ _ _|_ _| _ \ \/ / / \ / ___|_ _| # 

4# | '_ \| | | || || |_) \ / / _ \| | | | # 

5# | |_) | |_| || || __// \ / ___ \ |___ | | # 

6# | .__/ \__, |___|_| /_/\_\/_/ \_\____| |_| # 

7# |_| |___/ # 

8# ==================================================================================================================== # 

9# Authors: # 

10# Patrick Lehmann # 

11# # 

12# License: # 

13# ==================================================================================================================== # 

14# Copyright 2017-2025 Patrick Lehmann - Bötzingen, Germany # 

15# Copyright 2016-2016 Patrick Lehmann - Dresden, Germany # 

16# # 

17# Licensed under the Apache License, Version 2.0 (the "License"); # 

18# you may not use this file except in compliance with the License. # 

19# You may obtain a copy of the License at # 

20# # 

21# http://www.apache.org/licenses/LICENSE-2.0 # 

22# # 

23# Unless required by applicable law or agreed to in writing, software # 

24# distributed under the License is distributed on an "AS IS" BASIS, # 

25# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # 

26# See the License for the specific language governing permissions and # 

27# limitations under the License. # 

28# # 

29# SPDX-License-Identifier: Apache-2.0 # 

30# ==================================================================================================================== # 

31# 

32""" 

33This package is a resource package containing various data files. 

34 

35.. rubric:: Common Files 

36 

37* :file:`README.md` 

38* :file:`LICENSE.md` 

39* :file:`NOTICE.md` 

40 

41.. rubric:: XML Schema Files 

42 

43* :file:`ipxact-1.0/` 

44 

45 * :file:`README.md` 

46 * :file:`index.xsd` 

47 * :file:`***.xsd` 

48 

49* :file:`ipxact-1.1/` 

50 

51 * :file:`README.md` 

52 * :file:`index.xsd` 

53 * :file:`***.xsd` 

54 

55* :file:`ipxact-1.2/` 

56 

57 * :file:`README.md` 

58 * :file:`index.xsd` 

59 * :file:`***.xsd` 

60 

61* :file:`ipxact-1.4/` 

62 

63 * :file:`README.md` 

64 * :file:`index.xsd` 

65 * :file:`***.xsd` 

66 

67* :file:`ipxact-1.5/` 

68 

69 * :file:`README.md` 

70 * :file:`index.xsd` 

71 * :file:`***.xsd` 

72 

73* :file:`ieee-1685-2009/` 

74 

75 * :file:`README.md` 

76 * :file:`index.xsd` 

77 * :file:`***.xsd` 

78 

79* :file:`ieee-1685-2014/` 

80 

81 * :file:`README.md` 

82 * :file:`index.xsd` 

83 * :file:`***.xsd` 

84 

85* :file:`ieee-1685-2022/` 

86 

87 * :file:`README.md` 

88 * :file:`LICENSE` 

89 * :file:`NOTICE` 

90 * :file:`index.xsd` 

91 * :file:`***.xsd` 

92 

93""" 

94from sys import modules 

95 

96from pyTooling.Common import getResourceFile 

97 

98__author__ = "Patrick Lehmann" 

99__email__ = "Paebbels@gmail.com" 

100__copyright__ = "2016-2025, Patrick Lehmann" 

101__license__ = "Apache License, Version 2.0" 

102__version__ = "0.4.0" 

103 

104__module = modules[__name__] 

105 

106_IPXACT_10_INDEX = getResourceFile(__module, "ipxact-1.0/index.xsd") 

107_IPXACT_11_INDEX = getResourceFile(__module, "ipxact-1.1/index.xsd") 

108_IPXACT_12_INDEX = getResourceFile(__module, "ipxact-1.2/index.xsd") 

109_IPXACT_14_INDEX = getResourceFile(__module, "ipxact-1.4/index.xsd") 

110_IPXACT_15_INDEX = getResourceFile(__module, "ipxact-1.5/index.xsd") 

111 

112_IPXACT_2009_INDEX = getResourceFile(__module, "ieee-1685-2009/index.xsd") 

113_IPXACT_2014_INDEX = getResourceFile(__module, "ieee-1685-2014/index.xsd") 

114_IPXACT_2022_INDEX = getResourceFile(__module, "ieee-1685-2022/index.xsd") 

115 

116__all__ = [ 

117 "_IPXACT_10_INDEX", 

118 "_IPXACT_11_INDEX", 

119 "_IPXACT_12_INDEX", 

120 "_IPXACT_14_INDEX", 

121 "_IPXACT_15_INDEX", 

122 "_IPXACT_2009_INDEX", 

123 "_IPXACT_2014_INDEX", 

124 "_IPXACT_2022_INDEX" 

125]