mirror of
https://github.com/kennethreitz-archive/untar.it.git
synced 2026-06-05 07:16:13 +00:00
Boilerplate makefile.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
*.pyc
|
||||
.*
|
||||
/*.log
|
||||
@@ -0,0 +1,36 @@
|
||||
## Python
|
||||
|
||||
REQUIREMENTS_FILE=requirements.txt
|
||||
REQUIREMENTS_OUT=requirements.txt.log
|
||||
|
||||
|
||||
all: requirements
|
||||
|
||||
requirements: virtualenv $(REQUIREMENTS_OUT)
|
||||
|
||||
$(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE)
|
||||
pip install -r $(REQUIREMENTS_FILE) | tee -a $(REQUIREMENTS_OUT)
|
||||
|
||||
clean:
|
||||
find . -name "*.py[oc]" -delete
|
||||
find . -name "__pycache__" -delete
|
||||
rm $(REQUIREMENTS_OUT)
|
||||
|
||||
virtualenv:
|
||||
ifndef VIRTUAL_ENV
|
||||
$(error No VIRTUAL_ENV defined)
|
||||
endif
|
||||
|
||||
|
||||
## Composer
|
||||
|
||||
COMPOSER_INDEX=indexer:UntaritIndexer
|
||||
|
||||
build: requirements index.json
|
||||
composer build $(COMPOSER_INDEX)
|
||||
|
||||
serve: requirements index.json
|
||||
composer serve $(COMPOSER_INDEX)
|
||||
|
||||
deploy: build
|
||||
s3cmd sync build/ s3://untar.it/
|
||||
@@ -0,0 +1,4 @@
|
||||
https://github.com/shazow/composer/tarball/master
|
||||
mako
|
||||
markdown
|
||||
mdx_smartypants
|
||||
Reference in New Issue
Block a user