https://github.com/gomjellie/pip-boilerplate
deploy python package with ease
https://github.com/gomjellie/pip-boilerplate
Last synced: 3 months ago
JSON representation
deploy python package with ease
- Host: GitHub
- URL: https://github.com/gomjellie/pip-boilerplate
- Owner: gomjellie
- Created: 2018-08-31T14:35:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:51:22.000Z (over 2 years ago)
- Last Synced: 2025-01-23T11:25:42.962Z (5 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pip-boilerplate
deploy python package with ease
## run Test
```sh
python setup.py test
```
## install
```sh
pip install .```
## deploy
first make deploy_venv and install twine(deploy tool)
```sh
virtualenv deploy_venv -p python3
source deploy_venv/bin/activate
pip install twine```
build and upload
```sh
python setup.py sdist bdist_wheeltwine upload dist/boilerplate-version.tar.gz
```
## Example Usage
### on command line
```sh
boiler login --id='adam' --password='smith'
boiler single_print --string='hello world'
boiler multi_print --string="hello" --string="world"```
### on python code
```python
import boilerplate
boilerplate.login('adam', 'smith')```