Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rongfengliang/click-cli-demo
click-cli-demo
https://github.com/rongfengliang/click-cli-demo
cli pip python venv
Last synced: 3 days ago
JSON representation
click-cli-demo
- Host: GitHub
- URL: https://github.com/rongfengliang/click-cli-demo
- Owner: rongfengliang
- Created: 2019-04-22T02:14:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T05:38:33.000Z (over 5 years ago)
- Last Synced: 2024-09-30T09:19:09.770Z (about 2 months ago)
- Topics: cli, pip, python, venv
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple cli demo project
## how to running
* init venv
```code
python3 -m venv .
```* install click pacakge
* activate venv
```code
source bin/activate
```* install click pacakge
```code
pip install click
```* install with pip pacakge for test
```code
pip install .
```* test cli
```code
dalongcli --name dalong --count 3
```result
```code
Hello, dalong!
Hello, dalong!
Hello, dalong!
```## publish to test pypip
> use venv
* install dep pacakges
```code
python -m pip install --user --upgrade setuptools wheel --no-warn-script-location
```* build dist files
```code
python3 setup.py sdist
```* push
> you may register one account from [website](https://test.pypi.org)
```code
install twine for push:python3 -m pip install --user --upgrade twine
push command:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```