forked from smarkets/smk_python_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 999 Bytes
/
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
.PHONY: docs dist
all: deps
build:
python setup.py build
clean:
python setup.py clean
-rm -rf dist
-rm -rf build
-rm -rf smk.egg-info
-rm -rf smarkets/streaming_api/eto.py
-rm -rf smarkets/streaming_api/seto.py
find . -name "*.pyc" -exec rm {} \;
dist: clean build
python setup.py sdist
python setup.py bdist_wheel
release: dist
python setup.py sdist upload
python setup.py bdist_wheel upload
test: build
nosetests smarkets
check:
mkdir -p build/pep8
flake8 --exclude=eto.py,seto.py --max-line-length=110 smarkets *.py
docs:
$(MAKE) -C docs html
github:
git push github github-master:master
git push github HEAD:refs/tags/v$(VSN)
delvsn:
git push github :refs/tags/v$(VSN)
autopep8:
find . -name \*.py |egrep -v "env|travis" | xargs autopep8 --max-line-length=115 --recursive --in-place -j 8
sync:
git remote | while read remote; do \
git pull $$remote master; \
git push -u $$remote master; \
git fetch $$remote --tags; \
git push $$remote --tags; \
done;