Skip to content

rongfengliang/click-cli-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple cli demo project

how to running

  • init venv
python3 -m venv .
  • install click pacakge

  • activate venv

source bin/activate
  • install click pacakge
pip install click
  • install with pip pacakge for test
pip install .
  • test cli
dalongcli --name dalong --count 3

result

Hello, dalong!
Hello, dalong!
Hello, dalong!

publish to test pypip

use venv

  • install dep pacakges
python -m pip install --user --upgrade setuptools wheel --no-warn-script-location
  • build dist files
python3 setup.py sdist
  • push

you may register one account from website

install twine  for push:

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

push command:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Releases

No releases published

Packages

No packages published

Languages