Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 1003 Bytes

README_deploy.md

File metadata and controls

43 lines (29 loc) · 1003 Bytes

How to deploy the package to PyPI

Tipp: Use VS-Code Tasks

There are 2 tasks defined in .vscode/tasks.json to build and publish the package for test/production.

Build package

Create a source distribution package with:

python setup.py sdist bdist_wheel

Install package from local source distribution

pip install ./dist/open_ral_python-{current-version}.tar.gz

Publish package to PyPI (https://pypi.org/)

twine upload ./dist/*

Publish package to TestPyPI (https://test.pypi.org/)

twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload testpypi dist/*

-> if you configured a testpypi repository in your .pypirc file

Install package from TestPyPI

python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ openral-py  

--extra-index-url https://pypi.org/simple/ is needed for dependencies that are not available on PyPI.