-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
45 lines (35 loc) · 966 Bytes
/
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
45
.PHONY: docs test
help:
@echo " env create a development environment using virtualenv"
@echo " deps install dependencies"
@echo " clean remove unwanted stuff"
@echo " lint check style with flake8"
@echo " test run all your tests using nose"
@echo " production run test suite and do a release"
@echo " release package and upload a release"
@echo " sdist package"
production: clean test release
env:
sudo easy_install pip && \
pip install virtualenv && \
virtualenv env && \
. env/bin/activate && \
make deps
deps:
pip install -r requirements.txt --use-mirrors
clean:
rm -fr build \
rm -fr dist \
find . -name '*.pyc' -exec rm -f {} \
find . -name '*.pyo' -exec rm -f {} \
find . -name '*~' -exec rm -f {}
lint:
flake8 mypackage > violations.flake8.txt
test:
nosetests
release: register
python setup.py sdist upload
register:
python setup.py register
sdist:
python setup.py sdist