You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from this information, the `updateinfo.py` script queries the repositories where the libraries are stored and
16
-
generates an up-to-date [rawdata.json](rawdata.json) file. This script is run by the
17
-
[Update Package Index job](https://test.openmodelica.org/jenkins/job/Update%20Package%20Index/) on OSMC's Jenkins
18
-
server four times a day to keep it up to date with library developments.
19
-
Note that the query includes advanced Modelica-specific features, e.g. determining dependencies
20
-
via the `uses` annotations, and determining backwards compatibility among versions via the `conversion` annotations.
21
-
The `genindex.py` script is then run to generate the `index.json` database, which is queried by OMC clients to
22
-
update the local package database.
23
-
24
-
The package manager preferably refers to official library releases, which are fetched automatically from the GitHub
25
-
server without the need of naming them explicitly in the [repos.json](repos.json)
26
-
file; whenever a new version of a library is released, the [repos.json](repos.json)
27
-
is automatically updated to make it available. However, it is also possible to manage versions of the library that are located on specific named
28
-
branches, e.g. master or maintenance branches. This is useful if you want to track development versions or you want to get the latest fixes
29
-
before the official release.
10
+
If you want to add your own open-source library to the OpenModelica package manager, please fork the OMPackageManager repository,
11
+
add your library to the [repos.json](repos.json) database, and open a pull request.
30
12
31
13
For each library, the [repos.json](repos.json) database contains several pieces of information:
32
-
-the name of the library(es) (`names` field); it is possible to collect a set of libraries that are found in the same GIT repository
33
-
e.g. Modelica, ModelicaReference, ModelicaServices, Complex, ModelicaTest
34
-
-the location of the GIT repository on GitHub (`github` field), or the git URL in case other servers are used (`git` field)
14
+
-The name of the library(es) (`names` field); it is possible to collect a set of libraries that are found in the same GIT repository
15
+
e.g. Modelica, ModelicaReference, ModelicaServices, Complex, ModelicaTest.
16
+
-The location of the GIT repository on GitHub (`github` field), or the git URL in case other servers are used (`git` field).
35
17
- Optional locations within the git repository (`search-extra-paths` field) to search for libraries. This can be specified if the libraries are not located at the root of repository.
36
-
- optional branches to be managed besides the official releases (`branches` field)
37
-
- optional tags to be ignored, if one wants to avoid them to be considered by the package manager (`ignore-tags` field)
38
-
- the level of support in OpenModelica of the various versions of the library.
18
+
- Optional branches to be managed besides the official releases (`branches` field).
19
+
- Optional tags to be ignored, if one wants to avoid them to be considered by the package manager (`ignore-tags` field).
20
+
- The level of support in OpenModelica of the various versions of the library (`support` field), see below.
21
+
22
+
As an example, if you develop your library `MyLibrary` at "https://github.com/myGithubName/MyLibrary.git",
23
+
you can add a json object like the following to [repos.json](repos.json)
24
+
```json
25
+
"MyLibrary": {
26
+
"names": ["MyLibrary"],
27
+
"github": "myGithubName/MyLibrary",
28
+
"support": [
29
+
["*", "noSupport"]
30
+
]
31
+
},
32
+
33
+
```
39
34
40
35
## Library support levels in OpenModelica
36
+
41
37
There are five levels of support:
42
-
-`fullSupport`: The library is fully supported by OpenModelica, with over 95% runnable models in the library simulating correctly
43
-
-`support`: The library is partially supported by OpenModelica; most models and features work correctly, but some still don't
44
-
-`experimental`: The library is currently being tested with OpenModelica, but there is no guarantee of success when using it
45
-
-`noSupport`: The library is actively developed or maintained, but is not supported by OpenModelica
46
-
-`obsolete`: The library is no longer developed or maintained, or it has been completely superseded by more recent versions
38
+
-`fullSupport`: The library is fully supported by OpenModelica, with over 95% runnable models in the library simulating correctly.
39
+
-`support`: The library is partially supported by OpenModelica; most models and features work correctly, but some still don't.
40
+
-`experimental`: The library is currently being tested with OpenModelica, but there is no guarantee of success when using it.
41
+
-`noSupport`: The library is actively developed or maintained, but is not supported by OpenModelica.
42
+
-`obsolete`: The library is no longer developed or maintained, or it has been completely superseded by more recent versions.
47
43
48
44
Note that a library may not be fully supported because of OpenModelica limitations or bugs, but also because the library
49
45
is not fully compliant to the Modelica Language standard. In both cases, we are open to cooperation with open-source
@@ -61,7 +57,7 @@ The support field may contain multiple selection criteria that are applied seque
61
57
["*", "obsolete"]
62
58
]
63
59
```
64
-
means that all pre-release version are not supported, all _remaining_ versions with version number greater or equal to
60
+
means that all pre-release versions are not supported, all _remaining_ versions with version number greater or equal to
65
61
7.0.0 are fully supported, all _remaining_ versions with version number greater or equal to 5.1.0 are partially supported,
66
62
and all _remaining_ versions are considered obsolete.
67
63
@@ -70,3 +66,22 @@ When the first string starts with `>=`, all versions with equal or higher releas
70
66
version. In all other cases the first string must match verbatim the version number.
71
67
72
68
Some libraries in the package manager are regularly tested on the OSMC servers, see the OpenModelica Library Testing [README.md](https://github.com/OpenModelica/OpenModelicaLibraryTesting/blob/master/README.md).
69
+
70
+
## Configuration of the Package Manager server
71
+
72
+
The database of managed libraries is kept in the [repos.json](repos.json) file, which is edited manually.
73
+
Starting from this information, the `updateinfo.py` script queries the repositories where the libraries are stored and
74
+
generates an up-to-date [rawdata.json](rawdata.json) file. This script is run by the
75
+
[Update Package Index job](https://test.openmodelica.org/jenkins/job/Update%20Package%20Index/) on OSMC's Jenkins
76
+
server four times a day to keep it up to date with library developments.
77
+
Note that the query includes advanced Modelica-specific features, e.g. determining dependencies
78
+
via the `uses` annotations, and determining backwards compatibility among versions via the `conversion` annotations.
79
+
The `genindex.py` script is then run to generate the `index.json` database, which is queried by OMC clients to
80
+
update the local package database.
81
+
82
+
The package manager preferably refers to official library releases, which are fetched automatically from the GitHub
83
+
server without the need of naming them explicitly in the [repos.json](repos.json)
84
+
file; whenever a new version of a library is released, the [repos.json](repos.json)
85
+
is automatically updated to make it available. However, it is also possible to manage versions of the library that are located on specific named
86
+
branches, e.g. master or maintenance branches. This is useful if you want to track development versions or you want to get the latest fixes
raiseException("Entry does not list an entry \"zip\" (manually added zip-file), \"github\" (project name), or \"zipfile\" URL from where to download the git hash (gitlab/etc):\n"+str(r))
0 commit comments