-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
52 lines (40 loc) · 1.24 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
.PHONY: run
help:
@echo "Please [make setup] first."
@echo "After python environment created, activate local python by [source ./python/bin/activate]"
############################################################
# For Development
############################################################
setup_dev:
virtualenv . --no-site-packages
./bin/pip install -r requirements_dev.txt
chmod -R g+w .
lint:
./bin/flake8 apns_proxy_server
run: clean
./bin/python -m apns_proxy_server.invoker
test: clean
./bin/nosetests tests
clean:
-rm apns_proxy_server/**/*.pyc
-rm tests/**/*.pyc
-rm settings.pyc
############################################################
# For Production or Deployment
############################################################
setup_prod:
virtualenv . --no-site-packages
./bin/pip install -r requirements_prod.txt
setup_prod_with_wheels:
virtualenv . --no-site-packages
./bin/pip install --upgrade pip
./bin/pip install --upgrade setuptools
./bin/pip install wheel
./bin/pip install --no-deps wheelhouse/*
create_wheels:
-mkdir wheelhouse
-rm wheelhouse/*
./bin/pip install --upgrade pip
./bin/pip install --upgrade setuptools
./bin/pip install wheel
./bin/pip wheel --wheel-dir=./wheelhouse -r requirements_prod.txt