项目作者: rongfengliang

项目描述 :
pip-demo-package
高级语言: Python
项目地址: git://github.com/rongfengliang/pip-demo-package.git
创建时间: 2019-01-04T04:20:17Z
项目社区:https://github.com/rongfengliang/pip-demo-package

开源协议:

下载


pip-demo-package

pip-demo-package

example_pkg deploy

  • into example_pkg directory
  1. cd example_pkg
  • install setuptools
  1. python3 -m pip install --user --upgrade setuptools wheel
  • generating distribution archives
  1. python3 setup.py sdist bdist_wheel
  • install upload tools
  1. python3 -m pip install --user --upgrade twine
  • create account for test pypi
  1. https://test.pypi.org/account/register/
  • upload archives
  1. twine upload --repository-url https://test.pypi.org/legacy/ dist/*

usage

  • install pip package
  1. pip install -i https://test.pypi.org/simple/ dalongrong-example-pkg
  • run
  1. cd useage
  2. python app.py
  • with requirement && docker-compose runing
  1. cd app
  2. docker-compose build
  3. docker-compose up