Skip to content

Instantly share code, notes, and snippets.

@marksteve
Last active October 29, 2019 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marksteve/a9ecdbaa2ddff1f6eab23dce75b55a6c to your computer and use it in GitHub Desktop.
Save marksteve/a9ecdbaa2ddff1f6eab23dce75b55a6c to your computer and use it in GitHub Desktop.
Makefile for Python projects
.PHONY: dev
dev: venv/bin/pip-sync requirements.txt
venv/bin/pip-sync
requirements.txt: venv/bin/pip-compile requirements.in
venv/bin/pip-compile \
--no-index \
--no-emit-trusted-host \
requirements.in > requirements.txt
venv/bin/pip-compile venv/bin/pip-sync: venv
venv/bin/pip install wheel pip-tools
venv:
python3 -m venv venv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment