Skip to content
Shi Jin edited this page May 18, 2020 · 2 revisions

References

Procedures

  • Update code with a new version in setup.py
  • (Optional) Tag the repo with version
  • Generate the package under the src folder
root@WA1ITSH5BUILD01:~/src/clc-python-sdk/src# python setup.py --quiet --no-user-cfg sdist --dist-dir=.
warning: sdist: standard file not found: should have one of README, README.rst, README.txt
  • Ignore the warning and confirm the generated tar.gz file with proper version
root@WA1ITSH5BUILD01:~/src/clc-python-sdk/src# ls -lh *.gz
-rw-r--r-- 1 root root 44K May 18 21:25 clc-sdk-2.48.tar.gz
  • Upload to PyPI with python3 -m twine upload clc-sdk-2.48.tar.gz using proper credentials
Clone this wiki locally