forked from rhiever/TwitterFollowBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 1.72 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
PYPREFIX_PATH=/usr
PYTHONPATH=$(PYPREFIX_PATH)/bin/python
FIRST_EASYINSTALL=easy_install
PIP=pip
PYTHON=bin/python
EASYINSTALL=bin/easy_install
VIRTUALENV=virtualenv
SOURCE_ACTIVATE=. bin/activate;
bin/activate: requirements.txt
@ echo "[ using ] $(PYTHONPATH)"
@ echo "[ installing ] $(VIRTUALENV)"
@ echo "[ sudo access ] We need to update the virtualenv"
sudo $(FIRST_EASYINSTALL) virtualenv
@ echo "[ creating ] $(VIRTUALENV) with no site packages"
@ $(PYTHONLIBS) $(VIRTUALENV) --python=$(PYTHONPATH) --no-site-packages .
@ echo "[ installing ] $(PIP) inside $(VIRTUALENV)"
@ $(SOURCE_ACTIVATE) $(EASYINSTALL) pip
@ echo "[ installing ] $(PIP) requirements"
@ $(SOURCE_ACTIVATE) $(PIP) install --upgrade pip
@ $(SOURCE_ACTIVATE) $(PIP) install --upgrade distribute
@ $(SOURCE_ACTIVATE) $(PIP) install -e .
@ $(SOURCE_ACTIVATE) $(PIP) install --default-timeout=100 -r requirements.development.txt
@ touch bin/activate
deploy: bin/activate
@ echo "[ deployed ] the system was completly deployed"
show-version:
@ $(SOURCE_ACTIVATE) $(PYTHON) --version
shell:
@ $(SOURCE_ACTIVATE) ipython
pypi-register:
@ echo "[ record ] package to pypi servers"
@ $(SOURCE_ACTIVATE) $(PYTHON) setup.py register -r pypi
@ echo "[ registered ] the new version was successfully registered"
pypi-upload:
@ echo "[ uploading ] package to pypi servers"
@ $(SOURCE_ACTIVATE) $(PYTHON) setup.py sdist upload -r https://pypi.python.org/pypi
@ echo "[ uploaded ] the new version was successfully uploaded"
clean:
@ echo "[ cleaning ] remove deployment generated files that doesn't exists in the git repository"
rm -rf bin/ include/ lib/ share/ pip-selfcheck.json .Python dist/ twitter_follow_bot.egg-info/