forked from StorjOld/dataserv-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.11 KB
/
Makefile
File metadata and controls
44 lines (32 loc) · 1.11 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
# Copyright (c) 2015 Fabian Barkhau <[email protected]>
# License: MIT (see LICENSE file)
help:
@echo "Some usefull development shortcuts."
@echo " clean Remove all generated files."
@echo " test Run tests and analysis tools."
@echo " devsetup Setup development environment."
@echo " publish Build and upload package to pypi."
clean:
@rm -rf env
@rm -rf build
@rm -rf dist
@rm -rf *.egg
@rm -rf *.egg-info
@find | grep -i ".*\.pyc$$" | xargs -r -L1 rm
devsetup: clean
@virtualenv -p /usr/bin/python2 env/py2
@virtualenv -p /usr/bin/python3 env/py3
@env/py2/bin/python setup.py develop
@env/py3/bin/python setup.py develop
@env/py2/bin/pip install ipython
@env/py3/bin/pip install ipython
@env/py2/bin/pip install pudb
@env/py3/bin/pip install pudb
test: devsetup
#screen -S dataserv -d -m env/py3/bin/python -m dataserv.app # start server
#env/py2/bin/python setup.py test
env/py3/bin/python setup.py test
#screen -S dataserv -X kill # FIXME doesnt work in Makefile
publish: test
env/py3/bin/python setup.py register sdist upload
# import pudb; pu.db # set break point