Skip to content

rongfengliang/pip-demo-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pip-demo-package

pip-demo-package

example_pkg deploy

  • 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/*

usage

  • 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