- init venv
python3 -m venv .
-
install click pacakge
-
activate venv
source bin/activate
- install click pacakge
pip install click
- install with pip pacakge for test
pip install .
- test cli
dalongcli --name dalong --count 3
result
Hello, dalong!
Hello, dalong!
Hello, dalong!
use venv
- install dep pacakges
python -m pip install --user --upgrade setuptools wheel --no-warn-script-location
- build dist files
python3 setup.py sdist
- push
you may register one account from website
install twine for push:
python3 -m pip install --user --upgrade twine
push command:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*