mps-cli 0.3.0__tar.gz → 0.4.0__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 (33) hide show
  1. {mps_cli-0.3.0 → mps_cli-0.4.0}/PKG-INFO +13 -3
  2. {mps_cli-0.3.0 → mps_cli-0.4.0}/README.md +12 -2
  3. {mps_cli-0.3.0 → mps_cli-0.4.0}/Readme.md +12 -2
  4. {mps_cli-0.3.0 → mps_cli-0.4.0}/pyproject.toml +1 -1
  5. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SSolutionsRepositoryBuilder.py +17 -10
  6. {mps_cli-0.3.0 → mps_cli-0.4.0}/.gitignore +0 -0
  7. {mps_cli-0.3.0 → mps_cli-0.4.0}/LICENSE +0 -0
  8. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/__init__.py +0 -0
  9. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/demo.py +0 -0
  10. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SConcept.py +0 -0
  11. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SLanguage.py +0 -0
  12. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SModel.py +0 -0
  13. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SNode.py +0 -0
  14. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SNodeRef.py +0 -0
  15. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SRepository.py +0 -0
  16. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/SSolution.py +0 -0
  17. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/__init__.py +0 -0
  18. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/NodeIdEncodingUtils.py +0 -0
  19. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SLanguageBuilder.py +0 -0
  20. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SModelBuilderBase.py +0 -0
  21. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SModelBuilderDefaultPersistency.py +0 -0
  22. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SModelBuilderFilePerRootPersistency.py +0 -0
  23. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/SSolutionBuilder.py +0 -0
  24. {mps_cli-0.3.0 → mps_cli-0.4.0}/src/mpscli/model/builder/__init__.py +0 -0
  25. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/__init__.py +0 -0
  26. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/context.py +0 -0
  27. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_base.py +0 -0
  28. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_language_extraction.py +0 -0
  29. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_model_attributes.py +0 -0
  30. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_modules_and_models.py +0 -0
  31. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_node_id_encoding_utils.py +0 -0
  32. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_nodes.py +0 -0
  33. {mps_cli-0.3.0 → mps_cli-0.4.0}/tests/test_string_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mps-cli
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: MPS Command Line Interface (MPS-CLI) is a library to parse MPS files and build the model as Python objects.
5
5
  Project-URL: Homepage, https://github.com/mbeddr/mps-cli
6
6
  Project-URL: Bug Tracker, https://github.com/mbeddr/mps-cli/issues
@@ -40,6 +40,16 @@ The library has currently the following limitations:
40
40
 
41
41
  ### Build and upload to pypi.org
42
42
 
43
- - `increae version number`
43
+ #### Mac
44
+ - `increase version number`
44
45
  - `python3 -m build`
45
- - `python3 -m twine upload dist/*`
46
+ - `python3 -m twine upload dist/*`
47
+
48
+ ### Win
49
+ - `increase version number`
50
+ - `py -m build`
51
+ - `py -m twine upload dist/*`
52
+
53
+ To install build and twine:
54
+ - `py -m pip install --upgrade build`
55
+ - `py -m pip install --upgrade twine`
@@ -26,6 +26,16 @@ The library has currently the following limitations:
26
26
 
27
27
  ### Build and upload to pypi.org
28
28
 
29
- - `increae version number`
29
+ #### Mac
30
+ - `increase version number`
30
31
  - `python3 -m build`
31
- - `python3 -m twine upload dist/*`
32
+ - `python3 -m twine upload dist/*`
33
+
34
+ ### Win
35
+ - `increase version number`
36
+ - `py -m build`
37
+ - `py -m twine upload dist/*`
38
+
39
+ To install build and twine:
40
+ - `py -m pip install --upgrade build`
41
+ - `py -m pip install --upgrade twine`
@@ -26,6 +26,16 @@ The library has currently the following limitations:
26
26
 
27
27
  ### Build and upload to pypi.org
28
28
 
29
- - `increae version number`
29
+ #### Mac
30
+ - `increase version number`
30
31
  - `python3 -m build`
31
- - `python3 -m twine upload dist/*`
32
+ - `python3 -m twine upload dist/*`
33
+
34
+ ### Win
35
+ - `increase version number`
36
+ - `py -m build`
37
+ - `py -m twine upload dist/*`
38
+
39
+ To install build and twine:
40
+ - `py -m pip install --upgrade build`
41
+ - `py -m pip install --upgrade twine`
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mps-cli"
7
- version = "0.3.0"
7
+ version = "0.4.0"
8
8
  authors = [
9
9
  { name="Daniel Ratiu", email="ratiud@googlemail.com" },
10
10
  ]
@@ -14,22 +14,29 @@ class SSolutionsRepositoryBuilder:
14
14
  def __init__(self):
15
15
  self.repo = SRepository()
16
16
 
17
- def build(self, path):
18
- if not os.path.exists(path):
19
- print("ERROR: path", path, "does not exist!")
20
- sys.exit(1)
21
- if not os.path.isdir(path):
22
- print("ERROR: path", path, "is not a directory!")
17
+ def build(self, paths):
18
+ if isinstance(paths, str):
19
+ paths = [paths]
20
+ elif not isinstance(paths, list):
21
+ print("ERROR: paths should be either a string or a list of strings!")
23
22
  sys.exit(1)
24
23
 
25
- print("building model from path:", path)
26
24
  start = timer()
27
- self.collect_solutions_from_sources(path)
28
- self.collect_solutions_from_jars(path)
25
+ for path in paths:
26
+ if not os.path.exists(path):
27
+ print("ERROR: path", path, "does not exist!")
28
+ continue
29
+ if not os.path.isdir(path):
30
+ print("ERROR: path", path, "is not a directory!")
31
+ continue
32
+
33
+ print("building model from path:", path)
34
+ self.collect_solutions_from_sources(path)
35
+ self.collect_solutions_from_jars(path)
29
36
  self.repo.languages = list(SLanguageBuilder.languages.values())
30
37
  stop = timer()
31
38
  duration = (stop - start)
32
- print('duration is: ' + str(duration) + ' seconds')
39
+ print('duration for parsing modules: ' + str(duration) + ' seconds')
33
40
  return self.repo
34
41
 
35
42
  def collect_solutions_from_sources(self, path):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes