forked from darkdarkfruit/python-weed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (32 loc) · 956 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
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
echo ''
echo '==> use "py.test test" directly: '
py.test test
echo ''
echo '==> use "python setup.py test": '
python setup.py test
# just py.test weed
stest:
py.test test
# make a source distribution in dist/
sdist: ${files} test
python setup.py sdist
# upload to pypi
upload: sdist
python setup.py sdist upload
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