cannect 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. {cannect-1.0.0/src/cannect.egg-info → cannect-1.0.2}/PKG-INFO +2 -2
  2. {cannect-1.0.0 → cannect-1.0.2}/pyproject.toml +2 -2
  3. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/__init__.py +10 -9
  4. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/config.py +3 -21
  5. cannect-1.0.2/src/cannect/core/ascet/__init__.py +7 -0
  6. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/ws.py +18 -14
  7. cannect-1.0.2/src/cannect/core/can/__init__.py +6 -0
  8. cannect-1.0.2/src/cannect/core/can/ascet/__init__.py +8 -0
  9. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/_db2elem.py +5 -2
  10. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/comdef.py +5 -4
  11. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/comrx.py +4 -3
  12. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/diag.py +7 -6
  13. cannect-1.0.2/src/cannect/core/can/db/__init__.py +10 -0
  14. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/vcs.py +2 -1
  15. cannect-1.0.2/src/cannect/core/ir/__init__.py +6 -0
  16. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/ir.py +1 -1
  17. cannect-1.0.2/src/cannect/core/testcase/__init__.py +8 -0
  18. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/tools.py +2 -2
  19. {cannect-1.0.0 → cannect-1.0.2/src/cannect.egg-info}/PKG-INFO +2 -2
  20. cannect-1.0.0/src/cannect/core/ascet/__init__.py +0 -3
  21. cannect-1.0.0/src/cannect/core/can/__init__.py +0 -2
  22. cannect-1.0.0/src/cannect/core/can/ascet/__init__.py +0 -3
  23. cannect-1.0.0/src/cannect/core/can/db/__init__.py +0 -4
  24. cannect-1.0.0/src/cannect/core/ir/__init__.py +0 -2
  25. cannect-1.0.0/src/cannect/core/testcase/__init__.py +0 -3
  26. {cannect-1.0.0 → cannect-1.0.2}/LICENSE +0 -0
  27. {cannect-1.0.0 → cannect-1.0.2}/README.md +0 -0
  28. {cannect-1.0.0 → cannect-1.0.2}/setup.cfg +0 -0
  29. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/api/__init__.py +0 -0
  30. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/__init__.py +0 -0
  31. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/amd.py +0 -0
  32. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/formula.py +0 -0
  33. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ascet/oid.py +0 -0
  34. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/ascet/_db2code.py +0 -0
  35. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/reader.py +0 -0
  36. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/schema.py +0 -0
  37. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/__init__.py +0 -0
  38. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/message.py +0 -0
  39. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/styles.py +0 -0
  40. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/db/specification/wrapper.py +0 -0
  41. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/rule.py +0 -0
  42. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/__init__.py +0 -0
  43. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/__init__.py +0 -0
  44. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/asw2can.py +0 -0
  45. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/decode.py +0 -0
  46. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/diagnosis.py +0 -0
  47. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/can/testcase/unitcase/encode.py +0 -0
  48. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/changehistory.py +0 -0
  49. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/delivereables.py +0 -0
  50. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/diff.py +0 -0
  51. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/ir/sdd.py +0 -0
  52. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/mdf.py +0 -0
  53. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/subversion.py +0 -0
  54. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/plotter.py +0 -0
  55. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/style.py +0 -0
  56. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/testcase.py +0 -0
  57. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/core/testcase/unitcase.py +0 -0
  58. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/errors.py +0 -0
  59. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/__init__.py +0 -0
  60. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/candb.py +0 -0
  61. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/schema/datadictionary.py +0 -0
  62. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/__init__.py +0 -0
  63. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/excel.py +0 -0
  64. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/logger.py +0 -0
  65. {cannect-1.0.0 → cannect-1.0.2}/src/cannect/utils/ppt.py +0 -0
  66. {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/SOURCES.txt +0 -0
  67. {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/dependency_links.txt +0 -0
  68. {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/requires.txt +0 -0
  69. {cannect-1.0.0 → cannect-1.0.2}/src/cannect.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cannect
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL
5
- Requires-Python: >=3.8
5
+ Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
7
7
  License-File: LICENSE
8
8
  Requires-Dist: kaleido
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cannect"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  description = "HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL"
9
9
  readme = "README.md"
10
- requires-python = ">=3.8"
10
+ requires-python = ">=3.10"
11
11
  dependencies = [
12
12
  "kaleido",
13
13
  "lxml",
@@ -1,11 +1,13 @@
1
1
  __all__ = [
2
+ "env",
3
+ "mount",
2
4
 
3
5
  # .core
4
6
  "Ascet",
5
- "AscetCAN",
6
- "DataBaseCAN",
7
- "IR",
7
+ "AscetCAN", "DataBaseCAN",
8
+ "IntegrationRequest", "ChangeHistoryManager",
8
9
  "Subversion",
10
+ "TestCase", "TestCasePlot", "TestCaseUnit",
9
11
 
10
12
  # .utils
11
13
  "ComExcel",
@@ -16,15 +18,14 @@ __all__ = [
16
18
  "DataDictionary",
17
19
  ]
18
20
 
19
- from cannect.config import mount
21
+ from cannect.config import env, mount
20
22
  from cannect.core import ascet as Ascet
21
23
  from cannect.core.can import AscetCAN, DataBaseCAN
24
+ from cannect.core.ir import IntegrationRequest, ChangeHistoryManager
22
25
  from cannect.core.subversion import Subversion
23
- from cannect.core.testcase import TestCase, UnitTestCase, Plot
24
- from cannect.core.ir import IR
25
- from cannect.core.ir.changehistory import ChangeHistoryManager
26
-
26
+ from cannect.core.testcase import TestCase, TestCasePlot, TestCaseUnit
27
27
  from cannect.schema import DataDictionary
28
-
29
28
  from cannect.utils import ComExcel, Logger
30
29
  from cannect.utils import tools as Tools
30
+
31
+ mount()
@@ -55,7 +55,7 @@ def mount(svn_path=None):
55
55
  E.get('USERDOMAIN', '') == 'HKEFICO' and
56
56
  E.get('USERDOMAIN_ROAMINGPROFILE', '') == 'HKEFICO'
57
57
  ):
58
- raise PermissionError(f'USER: {e.get("USERNAME")} NOT AUTHORIZED')
58
+ raise PermissionError(f'USER: {E.get("USERNAME")} NOT AUTHORIZED')
59
59
 
60
60
  # 전역 환경 변수 설정
61
61
  E.DOWNLOADS = E.USERPROFILE / 'Downloads'
@@ -65,7 +65,7 @@ def mount(svn_path=None):
65
65
  E.SVN_CONF = svn_path / 'GSL_Build/1_AswCode_SVN/PostAppSW/0_XML/DEM_Rename'
66
66
  E.SVN_HISTORY = svn_path / 'GSL_Release/4_SW변경이력'
67
67
  E.SVN_IR = svn_path / 'GSL_Build/8_IntegrationRequest'
68
- E.SVN_MODEL = svn_path / 'model/ascet/trunk'
68
+ E.SVN_MODEL = svn_path / 'model'
69
69
  E.SVN_UNECE = svn_path / 'Autron_CoWork/사이버보안/Module_Test_Results'
70
70
  E.SVN_SDD = svn_path / 'GSL_Build/7_Notes'
71
71
  for p in psutil.disk_partitions():
@@ -79,26 +79,8 @@ def mount(svn_path=None):
79
79
  if key.startswith("SVN"):
80
80
  if not path.exists():
81
81
  raise InternalServerError(f"{{{path}}} NOT EXIST IN {E.COMPANY} SERVER")
82
-
83
- # 접근 권한 2차 확인; SVN 권한 확인
84
- for path in [
85
- E.SVN_CAN,
86
- E.SVN_CONF,
87
- E.SVN_HISTORY,
88
- E.SVN_IR,
89
- E.SVN_MODEL,
90
- E.SVN_UNECE,
91
- E.SVN_SDD
92
- ]:
93
- if not (path / ".svn").is_dir():
94
- raise InternalServerError(f"{{{path}}} IS NOT LINKED TO SVN")
95
- return
96
82
 
97
- # Initialize
98
- if E.USERNAME == '22011148':
99
- mount(svn_path=Path(r"E:\SVN"))
100
- else:
101
- mount()
83
+ return
102
84
 
103
85
 
104
86
  if __name__ == "__main__":
@@ -0,0 +1,7 @@
1
+ __all__ = [
2
+ "Amd",
3
+ "AmdIO",
4
+ "WorkspaceIO"
5
+ ]
6
+ from .amd import Amd, AmdIO
7
+ from .ws import WorkspaceIO
@@ -1,4 +1,4 @@
1
- from cannect.core.ascet import AmdIO, AmdSC
1
+ from cannect.core.ascet.amd import AmdIO, AmdSC
2
2
  from cannect.core.subversion import Subversion
3
3
  from cannect.config import env
4
4
  from cannect.errors import AscetWorspaceFormatError, AmdDuplicationError, AmdNotFoundError
@@ -12,19 +12,22 @@ class WorkspaceIO:
12
12
 
13
13
  def __init__(self, path:str=""):
14
14
  self.path = path = env.SVN_MODEL if not path else Path(path)
15
-
16
- listdir = os.listdir(path)
17
- if not "HNB_GASOLINE" in listdir:
18
- raise AscetWorspaceFormatError('NO {HNB_GASOLINE} IN WORKSPACE DIRECTORY')
19
- if not "HMC_ECU_Library" in listdir:
20
- raise AscetWorspaceFormatError('NO {HMC_ECU_Library} IN WORKSPACE DIRECTORY')
21
-
22
- fdb = ''
23
- if '.svn' in listdir:
24
- fdb = Path(path) / '.svn/wc.db'
25
- for f in listdir:
26
- if f.endswith('.aws'):
27
- fdb = Path(path) / f
15
+ if path != env.SVN_MODEL:
16
+ listdir = os.listdir(path)
17
+ if not "HNB_GASOLINE" in listdir:
18
+ raise AscetWorspaceFormatError('NO {HNB_GASOLINE} IN WORKSPACE DIRECTORY')
19
+ if not "HMC_ECU_Library" in listdir:
20
+ raise AscetWorspaceFormatError('NO {HMC_ECU_Library} IN WORKSPACE DIRECTORY')
21
+
22
+ if path == env.SVN_MODEL:
23
+ fdb = r'\\kefico\keti\ENT\SDT\SVN\model\.svn\wc.db'
24
+ else:
25
+ fdb = ''
26
+ if '.svn' in listdir:
27
+ fdb = Path(path) / '.svn/wc.db'
28
+ for f in listdir:
29
+ if f.endswith('.aws'):
30
+ fdb = Path(path) / f
28
31
 
29
32
  if not fdb:
30
33
  raise AscetWorspaceFormatError('NO .aws OR wc.db IN WORKSPACE DIRECTORY')
@@ -145,6 +148,7 @@ if __name__ == "__main__":
145
148
 
146
149
 
147
150
  io = WorkspaceIO()
151
+ print(io.db)
148
152
  print(io["CanHSFPCMD"])
149
153
  # print(io.bcPath(33))
150
154
  # print(io.bcTree(33))
@@ -0,0 +1,6 @@
1
+ __all__ = [
2
+ "AscetCAN",
3
+ "DataBaseCAN"
4
+ ]
5
+ from . import ascet as AscetCAN
6
+ from . import db as DataBaseCAN
@@ -0,0 +1,8 @@
1
+ __all__ = [
2
+ "ComDef",
3
+ "ComDiag",
4
+ "ComRx",
5
+ ]
6
+ from .diag import CANDiag as ComDiag
7
+ from .comrx import ComRx
8
+ from .comdef import ComDef
@@ -13,8 +13,7 @@ from xml.etree.ElementTree import Element
13
13
  import math
14
14
 
15
15
 
16
- F = formula_dictionary(env.SVN_CAN / "CAN_Model/Formula/HNB_I4GDI_I4MPI.xml")
17
-
16
+ F = None
18
17
  def elementWrapper(**kwargs) -> DataDictionary:
19
18
  return DataDictionary(
20
19
  kwargs=DataDictionary(**kwargs),
@@ -71,6 +70,10 @@ def crcClassElement(n:Union[int, str], oid_tag:Optional[Dict[str, str]]=None) ->
71
70
 
72
71
 
73
72
  def SignalElement(signal:CanSignal, oid_tag:Optional[Dict[str, str]]=None) -> DataDictionary:
73
+ global F
74
+ if F is None:
75
+ F = formula_dictionary(env.SVN_CAN / "CAN_Model/Formula/HNB_I4GDI_I4MPI.xml")
76
+
74
77
  if not oid_tag:
75
78
  oid_tag = {}
76
79
  kwargs = DataDictionary()
@@ -1,5 +1,6 @@
1
1
  from cannect.config import env
2
2
  from cannect.core.ascet.amd import Amd
3
+ from cannect.core.ascet.ws import WorkspaceIO
3
4
  from cannect.core.can.ascet import _db2code, _db2elem
4
5
  from cannect.core.can.db.reader import CANDBReader
5
6
  from cannect.schema.datadictionary import DataDictionary
@@ -31,7 +32,7 @@ class ComDef:
31
32
  name = os.path.basename(base_model).split(".")[0]
32
33
  else:
33
34
  name = f"ComDef{'_HEV' if engine_spec == 'HEV' else ''}"
34
- base_model = env.SVN_MODEL / rf'HNB_GASOLINE/_29_CommunicationVehicle/StandardDB/NetworkDefinition/{name}/{name}.zip'
35
+ base_model = WorkspaceIO()[name]
35
36
 
36
37
  # 공용 속성 생성
37
38
  self.db = db
@@ -76,7 +77,7 @@ class ComDef:
76
77
  logger.end(">>> Defining Signal Elements...")
77
78
  return
78
79
 
79
- def autorun(self):
80
+ def generate(self):
80
81
  self.main.find('Component/Comment').text = _db2code.INFO(self.db.revision)
81
82
  self.define_elements('MethodSignature')
82
83
  self.define_elements('Element')
@@ -245,7 +246,7 @@ if __name__ == "__main__":
245
246
  # # base_model=r'D:\SVN\model\ascet\trunk\HNB_GASOLINE\_29_CommunicationVehicle\StandardDB\NetworkDefinition\ComDef\ComDef-22368\ComDef.main.amd'
246
247
  # # base_model=ENV['ASCET_EXPORT_PATH']
247
248
  # )
248
- # model.autorun()
249
+ # model.generate()
249
250
 
250
251
  model = ComDef(
251
252
  db=db,
@@ -253,4 +254,4 @@ if __name__ == "__main__":
253
254
  exclude_tsw=True,
254
255
  # base_model=env.ASCET / f"Export/ComDef_G/ComDef_G.main.amd"
255
256
  )
256
- model.autorun()
257
+ model.generate()
@@ -1,5 +1,6 @@
1
1
  from cannect.config import env
2
2
  from cannect.core.ascet.amd import Amd
3
+ from cannect.core.ascet.ws import WorkspaceIO
3
4
  from cannect.core.can.ascet._db2code import MessageCode
4
5
  from cannect.core.can.db.reader import CANDBReader
5
6
  from cannect.utils.logger import Logger
@@ -29,7 +30,7 @@ class ComRx:
29
30
  name = os.path.basename(base_model).split(".")[0]
30
31
  else:
31
32
  name = f"ComRx{'_HEV' if engine_spec == 'HEV' else ''}"
32
- base_model = env.SVN_MODEL / rf'HNB_GASOLINE/_29_CommunicationVehicle/StandardDB/MessageInterface/MessageReceive/{name}/{name}.zip'
33
+ base_model = WorkspaceIO()[name]
33
34
  host = name.replace("Rx", "Def")
34
35
 
35
36
  # 공용 속성 생성
@@ -99,7 +100,7 @@ class ComRx:
99
100
  method.find('CodeBlock').text = curr.get(name, "")
100
101
  return
101
102
 
102
- def export(self):
103
+ def generate(self):
103
104
  self.main.export_to_downloads()
104
105
  self.impl.export_to_downloads()
105
106
  self.data.export_to_downloads()
@@ -136,4 +137,4 @@ if __name__ == "__main__":
136
137
  # base_model="",
137
138
  # base_model=env.ASCET / f"Export/ComRx_G/ComRx_G.main.amd"
138
139
  )
139
- model.export()
140
+ model.generate()
@@ -1,6 +1,7 @@
1
1
  from cannect.config import env
2
2
  from cannect.core.ascet.amd import Amd
3
3
  from cannect.core.ascet.oid import generateOID
4
+ from cannect.core.ascet.ws import WorkspaceIO
4
5
  from cannect.core.can.db.reader import CANDBReader
5
6
  from cannect.core.can.ascet._db2code import INFO
6
7
  from cannect.core.can.rule import naming
@@ -25,7 +26,7 @@ class CANDiag(Amd):
25
26
  template = env.SVN_CAN / "CAN_Model/_29_CommunicationVehicle/StandardDB/StandardTemplate/CANDiagTmplt/CANDiagTmplt.main.amd"
26
27
  super().__init__(str(template))
27
28
 
28
- self.dsm = env.SVN_MODEL / "HMC_ECU_Library/HMC_DiagLibrary/DSM_Types"
29
+ self.ws = WorkspaceIO()
29
30
 
30
31
  # LOGGER 생성
31
32
  base = Amd(src)
@@ -481,9 +482,9 @@ CHANNEL : {db[f'{self.hw} Channel']}-CAN
481
482
  return
482
483
 
483
484
  def copy_dsm(self):
484
- fid_md = Amd(os.path.join(self.dsm, "Fid_Typ.zip"))
485
+ fid_md = Amd(self.ws["Fid_Typ.zip"])
485
486
  fid = fid_md.impl.dataframe("ImplementationSet", depth="shallow").set_index("name")["OID"]
486
- deve_md = Amd(os.path.join(self.dsm, "DEve_Typ.zip"))
487
+ deve_md = Amd(self.ws["DEve_Typ.zip"])
487
488
  deve = deve_md.impl.dataframe("ImplementationSet", depth="shallow").set_index("name")["OID"]
488
489
 
489
490
  for elem in self.impl.iter('ElementImplementation'):
@@ -587,7 +588,7 @@ CHANNEL : {db[f'{self.hw} Channel']}-CAN
587
588
  self.logger(f'>>> ... NO EXCEPTION FOUND')
588
589
  return
589
590
 
590
- def create(self, path:str=''):
591
+ def generate(self, path:str=''):
591
592
 
592
593
  # BASE 모델의 기본 정보들을 CANDiag으로 복사
593
594
  self.logger('>>> COPY BASE MODEL TO TEMPLATE')
@@ -684,8 +685,8 @@ if __name__ == "__main__":
684
685
  proj = WorkspaceIO()
685
686
  data = CANDBReader().to_developer_mode("HEV")
686
687
 
687
- template = CANDiag(data, proj["CanFDMCU_HEV"], "MCU_01_P_10ms", "MCU_01_H_10ms", "MCU_02_P_10ms", "MCU_02_H_10ms")
688
- template.create()
688
+ template = CANDiag(data, proj["CanFDMCUD_HEV"], "MCU_01_P_10ms", "MCU_01_H_10ms", "MCU_02_P_10ms", "MCU_02_H_10ms", "MCU_03_100ms")
689
+ template.generate()
689
690
 
690
691
 
691
692
 
@@ -0,0 +1,10 @@
1
+ __all__ = [
2
+ "Reader",
3
+ "Specification",
4
+ "SCHEMA",
5
+ "VersionControl"
6
+ ]
7
+ from .reader import CANDBReader as Reader
8
+ from .schema import SCHEMA
9
+ from .vcs import CANDBVcs as VersionControl
10
+ from .specification.wrapper import Specification
@@ -3,6 +3,7 @@ from cannect.core.can.db.schema import standardize
3
3
  from cannect.core.subversion import Subversion
4
4
  from cannect.errors import CANDBError
5
5
  from cannect.utils.excel import ComExcel
6
+ from cannect.utils.tools import path_abbreviate
6
7
 
7
8
  from datetime import datetime
8
9
  from pandas import DataFrame
@@ -86,7 +87,7 @@ class CANDBVcs:
86
87
  source.to_json(jsonpath, orient='index')
87
88
  if not self.silence:
88
89
  self.logger("Manually Updated CAN DB from clipboard.")
89
- self.logger(f"- Saved as : {jsonpath}")
90
+ self.logger(f"- Saved as : {path_abbreviate(jsonpath)}")
90
91
  return
91
92
 
92
93
  # def commit_json(self):
@@ -0,0 +1,6 @@
1
+ __all__ = [
2
+ "ChangeHistoryManager",
3
+ "IntegrationRequest"
4
+ ]
5
+ from .ir import IntegrationRequest
6
+ from .changehistory import ChangeHistoryManager
@@ -355,7 +355,7 @@ class IntegrationRequest:
355
355
  for n, row in enumerate(self):
356
356
  self.logger.hold(f">>> %{row['FunctionName']: <{self._space}} ")
357
357
  if col == '' or col == 'SCMName':
358
- self.table.loc[n, 'SCMRev'] = _get_log(env.SVN_MODEL / f'{row["SCMName"]}.zip')
358
+ self.table.loc[n, 'SCMRev'] = _get_log(env.SVN_MODEL / f'ascet/trunk/{row["SCMName"]}.zip')
359
359
  if col == '' or col == 'DSMName':
360
360
  if pd.isna(row["DSMName"]) or (row["DSMName"] == ''):
361
361
  self.logger.hold(f'|{" " * (self._space + 13 + 11)}')
@@ -0,0 +1,8 @@
1
+ __all__ = [
2
+ "TestCase",
3
+ "TestCasePlot",
4
+ "TestCaseUnit"
5
+ ]
6
+ from .plotter import Plot as TestCasePlot
7
+ from .testcase import TestCase
8
+ from .unitcase import UnitTestCase as TestCaseUnit
@@ -18,8 +18,8 @@ def unzip(src: Union[str, Path], to: Union[str, Path] = "") -> bool:
18
18
  os.makedirs(to, exist_ok=True)
19
19
 
20
20
  src = str(src)
21
- if not os.path.isfile(src):
22
- raise KeyError(f"src: {src}는 경로가 포함된 파일(Full-Directory)이어야 합니다.")
21
+ # if not os.path.isfile(src):
22
+ # raise KeyError(f"src: {src}는 경로가 포함된 파일(Full-Directory)이어야 합니다.")
23
23
  if src.endswith('.zip'):
24
24
  zip_obj = zipfile.ZipFile(src)
25
25
  zip_obj.extractall(to)
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cannect
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: HYUNDAI-KEFICO EMS/ASW CONVENIENCE TOOL
5
- Requires-Python: >=3.8
5
+ Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
7
7
  License-File: LICENSE
8
8
  Requires-Dist: kaleido
@@ -1,3 +0,0 @@
1
- from .amd import Amd, AmdIO, AmdEL, AmdSC
2
- from .oid import generateOID
3
- from .ws import WorkspaceIO
@@ -1,2 +0,0 @@
1
- from . import ascet as AscetCAN
2
- from . import db as DataBaseCAN
@@ -1,3 +0,0 @@
1
- from .diag import CANDiag as ComDiag
2
- from .comrx import ComRx
3
- from .comdef import ComDef
@@ -1,4 +0,0 @@
1
- from .reader import CANDBReader as Reader
2
- from .schema import SCHEMA, toJSpreadSheet, standardize
3
- from .vcs import CANDBVcs as VCS
4
- from .specification.wrapper import Specification
@@ -1,2 +0,0 @@
1
- from .ir import IntegrationRequest as IR
2
- from .changehistory import ChangeHistoryManager
@@ -1,3 +0,0 @@
1
- from .testcase import TestCase
2
- from .unitcase import UnitTestCase
3
- from .plotter import Plot
File without changes
File without changes
File without changes
File without changes
File without changes