Merge pull request #18 from mitechie/add_makefile
Add makefile, update .gitignore for venv potential testfile output.pull/19/head
commit
6e8a1f5ce2
@ -1,4 +1,11 @@
|
||||
*.pyc
|
||||
*.egg-info
|
||||
build
|
||||
dist
|
||||
readability_lxml.egg-info
|
||||
/bin
|
||||
/include
|
||||
/lib
|
||||
/local
|
||||
/man
|
||||
nosetests.xml
|
||||
.coverage
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Makefile to help automate tasks
|
||||
WD := $(shell pwd)
|
||||
PY := bin/python
|
||||
PIP := bin/pip
|
||||
PEP8 := bin/pep8
|
||||
NOSE := bin/nosetests
|
||||
|
||||
|
||||
# ###########
|
||||
# Tests rule!
|
||||
# ###########
|
||||
.PHONY: test
|
||||
test: venv develop $(NOSE)
|
||||
$(NOSE) --with-id -s tests
|
||||
|
||||
$(NOSE):
|
||||
$(PIP) install nose pep8 coverage
|
||||
|
||||
# #######
|
||||
# INSTALL
|
||||
# #######
|
||||
.PHONY: all
|
||||
all: venv develop
|
||||
|
||||
venv: bin/python
|
||||
bin/python:
|
||||
virtualenv .
|
||||
|
||||
.PHONY: clean_venv
|
||||
clean_venv:
|
||||
rm -rf bin include lib local man
|
||||
|
||||
develop: lib/python*/site-packages/bookie-api.egg-link
|
||||
lib/python*/site-packages/bookie-api.egg-link:
|
||||
$(PY) setup.py develop
|
||||
|
||||
|
||||
# ###########
|
||||
# Development
|
||||
# ###########
|
||||
.PHONY: clean_all
|
||||
clean_all: clean_venv
|
||||
|
||||
|
||||
# ###########
|
||||
# Deploy
|
||||
# ###########
|
||||
.PHONY: dist
|
||||
dist:
|
||||
$(PY) setup.py sdist
|
||||
|
||||
.PHONY: upload
|
||||
upload:
|
||||
$(PY) setup.py sdist upload
|
||||
|
||||
.PHONY: version_update
|
||||
version_update:
|
||||
$(EDITOR) setup.py
|
Loading…
Reference in New Issue