forked from darkdarkfruit/python-weed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (35 loc) · 1019 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
files = weed/conf.py weed/__init__.py weed/master.py weed/operation.py weed/_test_weed_pytest.py weed/util.py weed/version.py weed/volume.py
file_pytest_genscript = weed/_test_weed_pytest.py
default: test
echo ''
test_python_setup: ${file_pytest_genscript}
echo '==> generating "py.test file for packaging in dist"'
py.test --genscript=${file_pytest_genscript}
# test: ${files} test_python_setup
test: ${files}
echo ''
echo '==> use "py.test test" directly: '
pytest test
# echo ''
# echo '==> use "python setup.py test": '
# python setup.py test
# just pytest weed
stest:
pytest test
# make a source distribution in dist/
sdist: ${files} test
python setup.py sdist
# upload to pypi
upload: sdist
# python setup.py sdist upload
# pip2 install twine
twine upload dist/*
install : test
python setup.py install
# git push to github
# do `git remote add origin https://github.com/darkdarkfruit/python-weed.git` first
git_push:
git push
# git push with tags
git_push_tags:
git push --tags