Skip to content

Instantly share code, notes, and snippets.

@messa
Created January 7, 2017 10:42
Show Gist options
  • Select an option

  • Save messa/3cc985c4919e2a96b64cf6a6e6779a66 to your computer and use it in GitHub Desktop.

Select an option

Save messa/3cc985c4919e2a96b64cf6a6e6779a66 to your computer and use it in GitHub Desktop.
Python project Makefile example
venv_dir=local/venv
pyvenv=pyvenv-3.5
default: check
check: $(venv_dir)/packages-installed
$(venv_dir)/bin/py.test tests
run: $(venv_dir)/packages-installed
$(venv_dir)/bin/my-awesome-app
$(venv_dir)/packages-installed: requirements.txt setup.py
test -d $(venv_dir) || $(pyvenv) $(venv_dir)
$(venv_dir)/bin/pip install -U pip
$(venv_dir)/bin/pip install -r requirements.txt
$(venv_dir)/bin/pip install -e .
touch $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment