2014-11-05 21:01:10 -06:00
|
|
|
pip_url=https://bootstrap.pypa.io/get-pip.py
|
|
|
|
python=python
|
|
|
|
pip=pip
|
|
|
|
coveralls=coveralls
|
|
|
|
|
2013-03-02 23:52:56 -05:00
|
|
|
all:
|
|
|
|
@echo "No default step. Use setup.py"
|
|
|
|
@echo ""
|
|
|
|
@echo " Other targets:"
|
|
|
|
@echo ""
|
2013-03-13 19:43:19 -04:00
|
|
|
@echo " - docs"
|
|
|
|
@echo " - full"
|
|
|
|
@echo ""
|
2013-03-02 23:52:56 -05:00
|
|
|
@echo " - dev (test & flake)"
|
|
|
|
@echo " - flake"
|
|
|
|
@echo " - test"
|
2013-03-05 21:44:26 -05:00
|
|
|
@echo " - diff"
|
2013-03-06 19:19:54 -05:00
|
|
|
@echo " - tox"
|
2013-03-05 21:44:26 -05:00
|
|
|
@echo " - d"
|
|
|
|
@echo " - r"
|
2013-12-31 15:40:58 -07:00
|
|
|
@echo " - clean"
|
2013-03-02 23:52:56 -05:00
|
|
|
@echo ""
|
|
|
|
|
2013-03-13 19:43:19 -04:00
|
|
|
docs:
|
2016-10-04 21:00:19 -04:00
|
|
|
$(MAKE) -C docs html
|
2013-03-13 19:43:19 -04:00
|
|
|
|
2013-04-07 19:45:38 -04:00
|
|
|
upload: r
|
|
|
|
python setup.py sdist upload
|
|
|
|
|
2013-04-12 23:46:28 -04:00
|
|
|
full: d tox docs
|
2013-03-13 19:43:19 -04:00
|
|
|
|
2013-03-07 19:23:11 -05:00
|
|
|
venv:
|
|
|
|
ifeq (,$(findstring hy,$(VIRTUAL_ENV)))
|
|
|
|
@echo "You're not in a Hy virtualenv. FOR SHAME"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
@echo "We're properly in a virtualenv. Going ahead."
|
|
|
|
endif
|
2013-03-02 23:52:56 -05:00
|
|
|
|
2013-03-06 20:59:45 -05:00
|
|
|
dev: test flake
|
2013-03-02 23:52:56 -05:00
|
|
|
|
2013-03-07 19:23:11 -05:00
|
|
|
test: venv
|
2017-04-26 14:00:11 -07:00
|
|
|
pytest
|
2013-03-02 23:52:56 -05:00
|
|
|
|
2013-03-07 19:23:11 -05:00
|
|
|
tox: venv
|
2013-03-06 19:19:54 -05:00
|
|
|
tox
|
|
|
|
|
2013-03-02 23:52:56 -05:00
|
|
|
flake:
|
2017-05-09 18:28:56 -04:00
|
|
|
flake8 hy tests --ignore=E121,E123,E126,E226,E24,E704,W503,E302,E305,E701
|
2013-03-04 19:12:57 -05:00
|
|
|
|
|
|
|
clear:
|
|
|
|
clear
|
|
|
|
|
|
|
|
d: clear dev
|
2013-03-04 21:03:18 -05:00
|
|
|
|
|
|
|
diff:
|
|
|
|
git diff --color | less -r
|
|
|
|
|
2013-03-06 20:59:45 -05:00
|
|
|
r: d tox diff
|
2013-03-13 19:43:19 -04:00
|
|
|
|
2014-11-05 21:01:10 -06:00
|
|
|
python:
|
|
|
|
ifeq (Python 2.6,$(findstring Python 2.6,$(shell python -V 2>&1)))
|
|
|
|
$(pip) install unittest2
|
|
|
|
endif
|
2015-02-25 21:31:33 +05:30
|
|
|
$(pip) install -r requirements-travis.txt
|
|
|
|
$(pip) install coveralls
|
2018-02-08 21:43:20 -05:00
|
|
|
$(pip) install -e .
|
2014-11-05 21:01:10 -06:00
|
|
|
|
|
|
|
coveralls:
|
|
|
|
$(coveralls)
|
|
|
|
|
2013-12-31 15:40:58 -07:00
|
|
|
clean:
|
|
|
|
@find . -name "*.pyc" -exec rm {} \;
|
2016-10-04 21:00:19 -04:00
|
|
|
@find . -name __pycache__ -delete
|
2013-12-31 15:40:58 -07:00
|
|
|
@${RM} -r -f .tox
|
|
|
|
@${RM} -r -f dist
|
|
|
|
@${RM} -r -f *.egg-info
|
|
|
|
@${RM} -r -f docs/_build
|
|
|
|
|
2016-10-04 21:00:19 -04:00
|
|
|
.PHONY: all docs upload full venv dev test tox flake clear d diff r python coveralls clean
|