The MuPythonLibrary is published as a pypi (pip) module. The pip module is named mu_python_library. Pypi allows for easy version management, dependency management, and sharing.
Publishing/releasing a new version is generally handled thru a server based build process but for completeness the process is documented here.
!!! Info These directions assume you have already configured your workspace for developing. If not please first do that. Directions on the developing page.
-
Pass all development tests and check. Update the readme with info on changes for this version.
-
Get your changes into master branch (official releases should only be done from the master branch)
-
Make a git tag for the version that will be released. Tag format is v..
-
Do the release process
- Install tools
pip install --upgrade -r requirements.publisher.txt
- Build a wheel
python setup.py sdist bdist_wheel
- Confirm wheel version is aligned with git tag
ConfirmVersionAndTag.py
- Publish the wheel/distribution to pypi
twine upload dist/*
- Install tools