PyCon 2019 Tutorial: Writing Command Line Applications that Click
virtualenv
& pip
(Should be installed if you follow the guide above)pipenv
or virtualenvwrapper
This repo is a Python package. You will create a virtualenv and install the package which will install its dependencies and make new commands available.
git clone https://github.com/tylerdave/PyCon2019-Click-Tutorial.git
git remote add personal $NEW_REPO_URL
cd
to the root of the cloned repo: cd PyCon2019-Click-Tutorial
pipenv
(installation instructions):pipenv --python python3
pipenv install
pipenv shell
pipenv shell
might give you a reduced feature shell. You should run commands with pipenv run $COMMAND
instead like: pipenv run pycon verify
instead of just pycon verify
in the step below.virtualenvwrapper
:mkvirtualenv --python python3 click-tutorial
workon click-tutorial
pip install -e .
python3 -m venv env
source env/bin/activate
.\env\Scripts\activate
pip install -e .
pycon
. You can use it to verify your setup was successful:pycon verify
tutorial init
.