-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 746 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: dist upload
dist:
python3 setup.py sdist bdist_wheel
upload:
twine check dist/*
twine upload dist/*
clean:
rm -rf build dist *.egg-info .eggs
raise_and_release_minor_version:
git push
NEWVERSION=$$( \
echo -n '__version__ = ' && \
cat htmlgenerator/__init__.py | grep __version__ | \
cut -d = -f 2 | \
python3 -c 'i = input().strip().strip("\""); print("\"" + ".".join(i.split(".")[:-1] + [str(int(i.split(".")[-1]) + 1) + "\""]))' \
) && \
sed -i "s/.*__version__.*/$$NEWVERSION/g" htmlgenerator/__init__.py
git commit -m 'bump version' htmlgenerator/__init__.py && git push && git push --tags