mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Create a Python package of Tidy
This commit is contained in:
parent
711bfe2860
commit
af2ca1fa80
18 changed files with 233 additions and 5 deletions
28
python/tidy/Makefile
Normal file
28
python/tidy/Makefile
Normal 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue