immerse-project / nemo-simsar

Tools and guides how to share NEMO user configurations & experiments with others using a git repository.
6 stars 1 forks source link

Packaging #25

Open mscheinert opened 3 years ago

mscheinert commented 3 years ago

Prepare SIMSAR as Python Package (see https://packaging.python.org/tutorials/packaging-projects/)

16 is some preparation step to this.

Some aspects to take into account for next steps:

Also interesting for further reading:

lmicallef commented 3 years ago

The script has been packaged and published on test.pypi (this is an environment used for testing purposes). When package is finalised we can move the package to the 'real' environment pypi.org

Currently, this package is available on: https://test.pypi.org/project/tsimsar/

Install the package: pip install -i https://test.pypi.org/simple/ tsimsar

Import and call the package: import tsimsar tsimsar.make_readme()

(The above code has to be stored in a configuration to be able to create the readme script.)

@mscheinert, this is available for testing, please send me feedback so that I can fix/modify as required.