See the doit tutorial
Note: This code is for the instructions up to the section on 'clean'.
- Complete the rest of the tutorial
- Install pipenv (if you don't already have it):
brew install pipenv- Install
graphviz:
brew install graphviz- Install the dependencies by running the following in the same directory as
the
Pipfilefile:
pipenv install- Activate the virtual environment:
pipenv shell- Run the
doitworkflow:
doitYou should see something like:
$ doit
. imports
. dot
. draw
- Check that the files were created:
ls -l requests*You should see something like:
$ ls -l requests*
-rw-r--r-- 1 johndoe staff 164 Mar 4 10:28 requests.models.deps
-rw-r--r-- 1 johndoe staff 404 Mar 4 10:28 requests.models.dot
-rw-r--r-- 1 johndoe staff 37154 Mar 4 10:28 requests.models.png
- Check that the
requests.models.pnglooks like the one in the tutorial.
- Add a task which creates the
projectsdirectory - Add a task which clones the requests repository into the
projectsdirectory