python package template
1.0.0
Template of Python project wrapped as package that can be easily uploaded to PyPi
To use this template click "Use this template" and create a new repository or open the template in a codespace or use this template here
Create virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtAfter that you would adapt the code and continue when the project is ready to be published. Build the package using:
python setup.py sdist bdist_wheelTest compiled package locally using:
pip install dist/package-xx.whlBefore publishing to PyPi create account and get API key. Save API key in your session using:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=$actual_tokenPublish the package to PyPi:
twine upload dist/*