-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (34 loc) · 858 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 := $(shell python setup.py --version)
.PHONY: clean
clean:
find . -name "*.pyc" -print0 | xargs -0 rm -f
rm -Rf dist
rm -Rf *.egg-info
.PHONY: authors
authors:
git log --format='%aN <%aE>' `git describe --abbrev=0 --tags`..@ | sort | uniq >> AUTHORS
cat AUTHORS | sort --ignore-case | uniq >> AUTHORS_
mv AUTHORS_ AUTHORS
.PHONY: dist
dist:
make clean
python -m build
.PHONY: pypi-release
pypi-release:
twine --version
twine upload -s dist/*
.PHONY: bump_version
bump_version:
python bump_version.py
git commit . -m "Bump version"
.PHONY: release
release:
make bump_version
make dist
git tag $(version) -m "Release version $(version)"
git push origin $(version)
make pypi-release
.PHONY: tstv
tstv:
version2=$(shell python bump_version.py)
echo "version: $(version)"