pip-demo-package
- into example_pkg directory
cd example_pkg
- install setuptools
python3 -m pip install --user --upgrade setuptools wheel
- generating distribution archives
python3 setup.py sdist bdist_wheel
- install upload tools
python3 -m pip install --user --upgrade twine
- create account for test pypi
https://test.pypi.org/account/register/
- upload archives
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- install pip package
pip install -i https://test.pypi.org/simple/ dalongrong-example-pkg
- run
cd useage
python app.py
- with requirement && docker-compose runing
cd app
docker-compose build
docker-compose up