-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
56 lines (40 loc) · 1.04 KB
/
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
52
53
54
55
56
files = weed/conf.py weed/__init__.py weed/master.py weed/operation.py weed/util.py weed/version.py weed/volume.py
default: test
echo ''
pytest .
test: ${files}
pip3.9 uninstall -y python-weed
echo ''
echo '==> use "pytest ." directly: '
pytest .
# echo ''
# echo '==> use "python setup.py test": '
# python setup.py test
test_with_setup: ${files}
# How to install the latest release from pypi?
# pip3.9 uninstall python_weed
# pip3.9 install -i https://pypi.org/simple -U python-weed
echo ''
echo '==> use "python setup.py test": '
python3.9 setup.py test
# just pytest weed
stest:
pytest .
# make a source distribution in dist/
sdist: ${files} test
rm dist/*
python3.9 setup.py sdist
# upload to pypi
upload: sdist
# python setup.py sdist upload
# pip3.9 install twine
twine upload --verbose dist/*
install : test
python3.9 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