-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
127 lines (91 loc) · 2.93 KB
/
Copy pathMakefile
File metadata and controls
127 lines (91 loc) · 2.93 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
PATHNAME=$(shell pwd)
BASENAME=$(shell basename $(PATHNAME))
TAG=`echo "print __version__" > v.py; cat cmd3/__init__.py v.py > /tmp/v1.py; python /tmp/v1.py; rm /tmp/v1.py v.py`
all:
make -f Makefile force
#####################################################################
# NOVA CLIENT
######################################################################
nova:
pip install --upgrade -e git://github.com/openstack/python-novaclient.git#egg=python-novaclient
######################################################################
# GIT INTERFACES
######################################################################
push:
make -f Makefile clean
git commit -a
git push
pull:
git pull
gregor:
git config --global user.name "Gregor von Laszewski"
git config --global user.email laszewski@gmail.com
git-ssh:
git remote set-url origin git@github.com:cloudmesh/$(BASENAME).git
######################################################################
# INSTALLATION
######################################################################
pip:
pip install -r requirements.txt
dist:
make -f Makefile pip
sdist:
make -f Makefile clean
python setup.py sdist --formats=tar
# gzip dist/*.tar
force:
make -f Makefile nova
make -f Makefile pip
#pip install -U dist/*.tar.gz
install:
pip install dist/*.tar.gz
test:
make -f Makefile clean
make -f Makefile distall
pip install --upgrade dist/*.tar.gz
######################################################################
# PYPI
######################################################################
pip-upload: clean
# make -f Makefile sdist
# python setup.py register
python setup.py sdist --format=bztar,zip upload
pip-register:
python setup.py register
######################################################################
# QC
######################################################################
qc-install:
pip install pep8
pip install pylint
pip install pyflakes
# #####################################################################
# CLEAN
# #####################################################################
clean:
find . -name "*~" -exec rm {} \;
find . -name "*.pyc" -exec rm {} \;
rm -rf build dist docs/build
rm -f *~
rm -rf *.egg-info .egg*
#cd doc; make clean
echo "clean done"
#############################################################################
# SPHINX DOC
###############################################################################
html:
make -f Makefile sphinx
sphinx:
cd doc; make html
view: html
open doc/build/html/index.html
######################################################################
# TAGGING
######################################################################
tag:
cm-authors > AUTHORS
git tag
@echo "New Tag?"; read TAG; git tag $$TAG; python setup.py install; git commit -m $$TAG --allow-empty; git push origin --tags
rmtag:
git tag
@echo "rm Tag?"; read TAG; git tag -d $$TAG; git push origin :refs/tags/$$TAG