@@ -104,18 +104,27 @@ see the OpenModelica Library Testing
104104## Configuration of the Package Manager server
105105
106106The database of managed libraries is kept in the [ repos.json] ( repos.json ) file,
107- which is edited manually. Starting from this information, the ` updateinfo.py `
107+ which is edited manually. Starting from this information, the ` updateinfo `
108108script queries the repositories where the libraries are stored and generates an
109- up-to-date [ rawdata.json] ( rawdata.json ) file. This script is run by the [ Update
110- Package Index
111- job] ( https://test.openmodelica.org/jenkins/job/Update%20Package%20Index/ ) on
112- OSMC's Jenkins server four times a day to keep it up to date with library
109+ up-to-date [ rawdata.json] ( rawdata.json ) file.
110+
111+ ``` bash
112+ python -m ompackagemanager updateinfo
113+ ```
114+
115+ This script is run by the
116+ [ Update Package Index job] ( https://test.openmodelica.org/jenkins/job/Update%20Package%20Index/ )
117+ on OSMC's Jenkins server four times a day to keep it up to date with library
113118developments. Note that the query includes advanced Modelica-specific features,
114119e.g. determining dependencies via the ` uses ` annotations, and determining
115120backwards compatibility among versions via the ` conversion ` annotations. The
116- ` genindex.py ` script is then run to generate the ` index.json ` database, which is
121+ ` genindex ` script is then run to generate the ` index.json ` database, which is
117122queried by OMC clients to update the local package database.
118123
124+ ``` bash
125+ python -m ompackagemanager genindex
126+ ```
127+
119128The package manager preferably refers to official library releases, which are
120129fetched automatically from the GitHub server without the need of naming them
121130explicitly in the [ repos.json] ( repos.json ) file; whenever a new version of a
@@ -148,8 +157,8 @@ Generate index file `index.json`.
148157``` bash
149158rm -rf cache/
150159rm -f index.json
151- python updateinfo.py
152- python genindex.py
160+ python -m ompackagemanager updateinfo
161+ python -m ompackagemanager genindex
153162```
154163
155164To test the index file copy it into your OpenModelica libraries directory and
@@ -165,5 +174,5 @@ All Python code is formatted with
165174[ autopep8] ( https://pypi.org/project/autopep8/ ) :
166175
167176``` bash
168- autopep8 --in-place --aggressive --aggressive * .py
177+ autopep8 --in-place --aggressive --recursive ompackagemanager
169178```
0 commit comments