forked from psf/requests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (45 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SHELL := /bin/bash
init:
python setup.py develop
pip install -r requirements-dev.txt
# install libevent first
# brew install libevent
# apt-get install libevent-dev
pip install -r requirements-async.txt
pip install -r requirements.txt
test:
nosetests -s --with-color test_requests.py
nosetests -s --with-color test_requests_ext.py
nosetests -s --with-color test_requests_async.py
test-2.5:
nosetests-2.5 --with-color test_requests.py
nosetests-2.5 --with-color test_requests_ext.py
nosetests-2.5 --with-color test_requests_async.py
test-jython:
jython-nosetests --with-color test_requests.py
jython-nosetests --with-color test_requests_ext.py
jython-nosetests --with-color test_requests_async.py
test-jython-debug:
jython-nosetests -s --with-color test_requests.py
jython-nosetests -s --with-color test_requests_ext.py
jython-nosetests -s --with-color test_requests_async.py
lazy:
nosetests --with-color test_requests.py
server:
gunicorn httpbin:app --bind=0.0.0.0:7077 &
ci: init
nosetests --with-xunit --xunit-file=junit-report.xml
stats:
pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt
site:
cd docs; make dirhtml
pyc:
find . -name '*.pyc' -exec rm '{}' ';'
find . -name '*.class' -exec rm '{}' ';'
deps:
rm -fr requests/packages/urllib3
git clone https://github.com/shazow/urllib3.git
cd urllib3 && git checkout python3 && cd ..
mv urllib3/urllib3 requests/packages/
rm -fr urllib3
docs: site