This is an implementation of the MtconnectTranspiler with the purpose of providing tools to generate Python files from the object-oriented model.
In MtconnectTranspiler.Sinks.Python.Example/Properties/launchSettings.json you can edit program arguments.
First argument is the directory to place the generated output. The second directory is an optional argument
Example: "commandLineArgs": "\"$(SolutionDir)my_output\" \"/path/to/my/model/MTConnectSysMLModel.xml\""
build:pip install buildtwine:pip install twine
python -m buildOutput is written to dist/.
https://test.pypi.org/help/#apitoken shows how to setup PyPI API tokens for uploading
Check version number in pyproject.toml (move it up, PyPI wont overwrite a package)
python -m twine upload --repository testpypi dist/*python -m twine upload dist/*When installing a project from TestPyPI, its database is separate from live PyPI. This might cause the installation to fail because the package's dependencies likely do not exist on the test server (TestPyPI).
Use --extra-index-url https://pypi.org/simple/ to direct pip to use the normal PyPI server for dependencies.
pip install -i https://test.pypi.org/simple/ pymtconnect --extra-index-url https://pypi.org/simple/Use pymtconnect==<version> to specify a version of pymtconnect to install
pip install -i https://test.pypi.org/simple/ pymtconnect==<version> --extra-index-url https://pypi.org/simple/