-
-
Notifications
You must be signed in to change notification settings - Fork 43
Home
Benjamin Hug edited this page Mar 16, 2022
·
10 revisions
python -m pip install setuptools wheel twine
Update the version in the setup.py
file here.
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.
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