-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (27 loc) · 714 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
VERSION=0.2.25
all:
@echo "Select target"
ver:
find . -type f -name "*.py" -exec \
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/g" {} \;
find ./bin -type f -exec sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/g" {} \;
sver:
sed -i "s/^YEDB_VERSION=.*/YEDB_VERSION="${VERSION}"/g" setup-server.sh
clean:
rm -rf dist build yedb.egg-info
d: clean sdist
sdist:
python3 setup.py sdist
build: clean build-packages
build-packages:
python3 setup.py build
pub-pypi:
twine upload dist/*
test:
pytest -x -v -v ./test-main.py
docs:
pydoc2rst doc/pydoc/tpl_yedb.rst doc/pydoc/yedb.rst /opt/yedb-py
push:
git commit -a -m "v${VERSION}"
git push
pub: d test docs pub-pypi sver push