forked from oauthlib/oauthlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (73 loc) · 2.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Downstream tests (Don't be evil)
#
# Try and not break the libraries below by running their tests too.
#
# Unfortunately there is no neat way to run downstream tests AFAIK
# Until we have a proper downstream testing system we will
# stick to this Makefile.
#---------------------------
# HOW TO ADD NEW DOWNSTREAM LIBRARIES
#
# Please specify your library as well as primary contacts.
# Since these contacts will be addressed with Github mentions they
# need to be Github users (for now)(sorry Bitbucket).
#
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
rm -rf .tox
rm -rf bottle-oauthlib
rm -rf dance
rm -rf django-oauth-toolkit
rm -rf flask-oauthlib
rm -rf requests-oauthlib
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
format fmt:
isort --recursive oauthlib tests
lint:
isort --recursive --check-only --diff oauthlib tests
test:
tox
bottle:
#---------------------------
# Library thomsonreuters/bottle-oauthlib
# Contacts: Jonathan.Huot
cd bottle-oauthlib 2>/dev/null || git clone https://github.com/thomsonreuters/bottle-oauthlib.git
cd bottle-oauthlib && sed -i.old 's,deps =,deps= --editable=file://{toxinidir}/../,' tox.ini && sed -i.old '/oauthlib/d' requirements.txt && tox
flask:
#---------------------------
# Library: lepture/flask-oauthLib
# Contacts: lepture,widnyana
cd flask-oauthlib 2>/dev/null || git clone https://github.com/lepture/flask-oauthlib.git
cd flask-oauthlib && sed -i.old 's,deps =,deps= --editable=file://{toxinidir}/../,' tox.ini && sed -i.old '/oauthlib/d' requirements.txt && tox
django:
#---------------------------
# Library: evonove/django-oauth-toolkit
# Contacts: evonove,masci
# (note: has tox.ini already)
cd django-oauth-toolkit 2>/dev/null || git clone https://github.com/evonove/django-oauth-toolkit.git
cd django-oauth-toolkit && sed -i.old 's,deps =,deps= --editable=file://{toxinidir}/../,' tox.ini && tox -e py27,py35,py36
requests:
#---------------------------
# Library requests/requests-oauthlib
# Contacts: ib-lundgren,lukasa
cd requests-oauthlib 2>/dev/null || git clone https://github.com/requests/requests-oauthlib.git
cd requests-oauthlib && sed -i.old 's,deps=,deps = --editable=file://{toxinidir}/../[signedtoken],' tox.ini && sed -i.old '/oauthlib/d' requirements.txt && tox
dance:
#---------------------------
# Library singingwolfboy/flask-dance
# Contacts: singingwolfboy
cd flask-dance 2>/dev/null || git clone https://github.com/singingwolfboy/flask-dance.git
cd flask-dance && sed -i.old 's,deps=,deps = --editable=file://{toxinidir}/../,' tox.ini && sed -i.old '/oauthlib/d' requirements.txt && tox
.DEFAULT_GOAL := all
.PHONY: clean test bottle dance django flask requests
all: clean test bottle dance django flask requests