Skip to content

Distribute the packages to PyPi

James edited this page Sep 12, 2021 · 1 revision

1. build the distribute package.(use setuptools)

at the directoly of janus-cloud project, enter following command

python setup.py sdist

python setup.py bdist_wheel

After that, there are two packages generated at the 'dist' sub-directory.

  • janus-cloud-x.x.x.tar.gz
  • janus_cloud-x.x.x-py3-none-any.whl

2. submit to PyPi

twine is used to submit the packages to PyPi. before uploadindg, you should install the twine from PyPi firstly:

pip install --upgrade twine

And you should have an account of PyPi.

After that, you can enter the following command at the directoly of janus-cloud project, which upload the packages of the 'dist' sub-directory to PyPi.

twine upload dist/*