forked from flask-restful/flask-restful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: test install docs analysis
clean:
rm -rf venv *.egg-info *.egg
install: venv
. venv/bin/activate; pip install --editable . \
--download-cache /tmp/pipcache --use-mirrors
venv:
virtualenv venv
docs-install: install
. venv/bin/activate; pip install -e '.[docs]' --use-mirrors
docs:
. venv/bin/activate; cd docs && make html
# Pycrypto is required to run the unit tests
test-install: install
. venv/bin/activate; pip install --editable '.[paging]' \
--download-cache /tmp/pipcache --use-mirrors
. venv/bin/activate; pip install --requirement tests/requirements.txt \
--download-cache /tmp/pipcache --use-mirrors
test:
. venv/bin/activate; nosetests --with-coverage --cover-package=flask_restful
analysis:
. venv/bin/activate; flake8 --select=E112,E113,E901,E902,W601,W602,W603,W604,W402,W403,W404,W802,W803,W804,W805,W806 --ignore=W801 flask_restful tests
release: test
# Before doing a release:
# - add the new version number to setup.py
# - add new committers to AUTHORS
# - add changes to CHANGES.md.
#
# This script will run tests, tag a release, push it to GH, and
# upload a new version for you.
python scripts/release.py $(shell python setup.py -V)
authors:
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md