forked from eclipse-basyx/basyx-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse-basyx#174 from eclipse-basyx/improve/V30
Implement v3.0 of the metamodel specification For the detailed documentation of the changes, please refer to the [prior PRs](https://github.com/eclipse-basyx/basyx-python-sdk/pulls?page=4&q=is%3Apr+base%3Aimprove%2FV30)
- Loading branch information
Showing
56 changed files
with
17,990 additions
and
5,815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
import zipfile | ||
|
||
AASX_FILES = ("test_demo_full_example_json_aasx", | ||
"test_demo_full_example_xml_aasx", | ||
"test_demo_full_example_xml_wrong_attribute_aasx", | ||
"test_empty_aasx") | ||
|
||
|
||
def _zip_directory(directory_path, zip_file_path): | ||
"""Zip a directory recursively.""" | ||
with zipfile.ZipFile(zip_file_path, 'w', zipfile.ZIP_DEFLATED) as zipf: | ||
for root, _, files in os.walk(directory_path): | ||
for file in files: | ||
file_path = os.path.join(root, file) | ||
arcname = os.path.relpath(file_path, directory_path) | ||
zipf.write(file_path, arcname=arcname) | ||
|
||
|
||
def generate_aasx_files(): | ||
"""Zip dirs and create test AASX files.""" | ||
script_dir = os.path.dirname(__file__) | ||
for i in AASX_FILES: | ||
_zip_directory(os.path.join(script_dir, "files", i), | ||
os.path.join(script_dir, "files", i.rstrip("_aasx") + ".aasx")) | ||
|
||
|
||
generate_aasx_files() |
Binary file removed
BIN
-29.5 KB
compliance-tool/test/compliance_tool/files/test_demo_full_example.aasx
Binary file not shown.
Oops, something went wrong.