-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
25 lines (19 loc) · 835 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
flake8:
flake8 --max-line-length=120 tangerine tests
test:
py.test --cov tests/ --cov tangerine tests
tag:
git tag "v$$(cat tangerine/VERSION)"
git push --tags
incpatch:
python -c 'v=open("tangerine/VERSION").read(); v=list(map(int, v.split("."))); v[-1]+=1; v=".".join(map(str, v)); open("tangerine/VERSION", "w").write(v)'
git commit -a -m"Bump patch version"
incminor:
python -c 'v=open("tangerine/VERSION").read(); v=list(map(int, v.split("."))); v[1]+=1; v=".".join(map(str, v)); open("tangerine/VERSION", "w").write(v)'
git commit -a -m"Bump minor version"
incmajor:
python -c 'v=open("tangerine/VERSION").read(); v=list(map(int, v.split("."))); v[0]+=1; v=".".join(map(str, v)); open("tangerine/VERSION", "w").write(v)'
git commit -a -m"Bump major version"
release:
make tag
python setup.py bdist_wheel upload