Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rongfengliang/pip-demo-package

pip-demo-package
https://github.com/rongfengliang/pip-demo-package

docker docker-compose pip pypi python

Last synced: 19 days ago
JSON representation

pip-demo-package

Awesome Lists containing this project

README

        

# pip-demo-package

pip-demo-package

## example_pkg deploy

* into example_pkg directory

```code
cd example_pkg
```

* install setuptools

```code
python3 -m pip install --user --upgrade setuptools wheel

```

* generating distribution archives

```code
python3 setup.py sdist bdist_wheel
```

* install upload tools

```code
python3 -m pip install --user --upgrade twine
```

* create account for test pypi

```code
https://test.pypi.org/account/register/
```

* upload archives

```code
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```

## usage

* install pip package

```code
pip install -i https://test.pypi.org/simple/ dalongrong-example-pkg
```

* run

```code
cd useage
python app.py
```

* with requirement && docker-compose runing

```code
cd app
docker-compose build
docker-compose up
```