Create a Python package of Tidy

This commit is contained in:
Askeing Yen (fyen) 2016-04-13 16:00:23 -07:00 committed by edunham
parent 711bfe2860
commit af2ca1fa80
18 changed files with 233 additions and 5 deletions

28
python/tidy/Makefile Normal file
View file

@ -0,0 +1,28 @@
PYTHON := python
VENV := env-$(PYTHON)
# for travis
$(VENV)/bin/python:
[ -d $(VENV) ] || $(PYTHON) -m virtualenv $(VENV) || virtualenv $(VENV)
$(VENV)/bin/pip install --upgrade setuptools
$(VENV)/bin/python setup.py develop
.PHONY: dev-env
dev-env: $(VENV)/bin/python
# for testing
.PHONY: test
test: dev-env
$(VENV)/bin/pip install --upgrade funcsigs
$(VENV)/bin/pip install --upgrade mock
$(VENV)/bin/python -m unittest discover -s tests -v
.PHONY: clean
clean:
find . -name "*.pyc" -type f -delete