Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 661 Bytes

README_PUBLISH.md

File metadata and controls

28 lines (18 loc) · 661 Bytes

Steps required to publish the package to pypi

Install required dependencies

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine

Edit file ~/.pypirc with

[distutils]
    index-servers =
        ubidots

[ubidots]
repository = http://169.53.160.59:8080
username = ubidots_dev
password = $UBIDOTS_PYPI_PASSWORD
  • Replace $UBIDOTS_PYPI_PASSWORD with the pypi server password of the user ubidots_dev.

To build the library

python3 -m build

To upload the library to the pypi server

python3 -m twine upload --repository ubidots dist/*