add pip package build/upload, check version tags

This commit is contained in:
2021-03-04 11:47:15 +01:00
parent 0969d626b8
commit 0403f2bc64
7 changed files with 118 additions and 39 deletions

26
pip/makefile Normal file
View File

@@ -0,0 +1,26 @@
# --------------------------------------------------------------------------- #
SHELL := /bin/bash
publish: sdist upload
sdist: ../cython/py_imc_termite.pyx ../cython/imc_termite.pxd ../cython/py_imc_termite.cpp
cp -v $? ./
cp -v $(shell ls ../lib/imc_*.hpp) ./
tail -n $(($(cat README.md | wc -l)-10)) README.md > ./README.md
cp -v ../LICENSE ./
python3 setup.py sdist
upload:
python3 -m twine upload dist/$(shell ls -t dist/ | head -n1)
clean:
rm -rvf dist/
rm -rvf *.egg-info
rm -rvf build/
rm -rvf cython/
rm -vf *.pyx *.pxd
rm -vf *.cpp *.c *.hpp
rm -vf README.md LICENSE
# --------------------------------------------------------------------------- #