Skip to content
PyCon 2019 Tutorial: Writing Command Line Applications that Click
Branch: master
Clone or download
Latest commit 0be38c8 May 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
click_tutorial Bump version: 1.0.1 → 1.0.2 Apr 30, 2019
lessons fix test paths May 1, 2019
presentation add presentation pdf May 1, 2019
tests Add lessons (#2) Apr 27, 2019
.editorconfig Add tutorial package (#1) Apr 7, 2019
.gitignore update gitignore Apr 30, 2019
.travis.yml Update presentation with lessons (#7) Apr 30, 2019
LICENSE Initial commit Mar 31, 2019
MANIFEST.in Add tutorial package (#1) Apr 7, 2019
Makefile
Pipfile bump tutorial-runner Apr 30, 2019
README.md update install instructions Apr 30, 2019
appveyor.yml
requirements_dev.txt Fix windows builds (#9) Apr 30, 2019
setup.cfg Bump version: 1.0.1 → 1.0.2 Apr 30, 2019
setup.py Bump version: 1.0.1 → 1.0.2 Apr 30, 2019
tox.ini
tutorial.toml add lessons Apr 30, 2019

README.md

PyCon2019 Click Tutorial

TravisCI build status Appveyor build status

PyCon 2019 Tutorial: Writing Command Line Applications that Click

Setup

Prerequisites

Installation

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.

  • Open a terminal / command prompt.
  • Clone this repo:
    git clone https://github.com/tylerdave/PyCon2019-Click-Tutorial.git
    • If you'd like to save a remote copy of your changes, create a new empty repo at your source code hosting service of choice and add it as a git remote:
      git remote add personal $NEW_REPO_URL
  • cd to the root of the cloned repo:
    cd PyCon2019-Click-Tutorial
  • Create and activate a virtualenv using your favorite method and then install the package:
    • Recommended: using pipenv (installation instructions):
      • pipenv --python python3
      • pipenv install
      • On Mac/Linux:
        • pipenv shell
      • On Windows:
        • 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.
    • If using virtualenvwrapper:
      • mkvirtualenv --python python3 click-tutorial
      • workon click-tutorial
      • pip install -e .
    • Manually:
      • python3 -m venv env
      • On Mac/Linux: source env/bin/activate
      • On Windows: .\env\Scripts\activate
      • pip install -e .
  • Verify installation. One of the commands that's created by this package is pycon. You can use it to verify your setup was successful:
    pycon verify
  • Initialize tutorial. In the root of the repo, run tutorial init.
You can’t perform that action at this time.