Skip to content
Benjamin Hug edited this page Mar 16, 2022 · 10 revisions

Install dependencies

python -m pip install setuptools wheel twine

Release the Package

Update the version in the setup.py file here.

Automatically

Creating a new GitHub release will trigger the Upload Python Package GitHub action that will create and upload the package automatically.

Note:: don't save the release as a draft, but publish it directly otherwise the GitHub action will not be triggered.

Manually

python setup.py bdist_wheel
python -m twine upload --repository pypi dist/*
#python -m twine upload --repository pypitest dist/*

To upload you have to make sure that C:\Users\UserName\.pypirc / ~/.pypirc contains:

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
username: Cyberbotics
password: password

[pypitest]
repository: https://test.pypi.org/legacy/
username: Cyberbotics
password: password
Clone this wiki locally