Last active
October 29, 2019 03:20
-
-
Save marksteve/a9ecdbaa2ddff1f6eab23dce75b55a6c to your computer and use it in GitHub Desktop.
Makefile for Python projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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