-
Notifications
You must be signed in to change notification settings - Fork 74
/
Makefile
44 lines (37 loc) · 1.04 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
test: env
. env/bin/activate && \
./tests/rss-ladder && \
./utils/rx-buffers-increase && \
./tests/softnet_stat_top.py -u && \
./tests/server-info-show && \
UNITTEST=1 ./utils/server-info-rate
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 " coverage run tests with code coverage"
@echo " test run tests"
env:
rm -rf env
virtualenv env && \
. env/bin/activate && \
pip install --upgrade -r requirements.txt && \
python setup.py install
clean:
rm -fr env
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 twitter > violations.flake8.txt
coverage:
nosetests --with-coverage --cover-package=twitter
build: clean
python setup.py sdist
python setup.py bdist_wheel
upload: clean
python setup.py sdist upload
# python setup.py bdist_wheel upload