* add github workflow for building wheels

* rename cython module for more consistency
* restructure python code
* proper python module setup
* bump major version 2.0.0
This commit is contained in:
2021-09-21 12:55:19 +02:00
parent 75e792b86c
commit e6315ee186
14 changed files with 227 additions and 10 deletions

44
python/makefile Normal file
View File

@@ -0,0 +1,44 @@
GITAG := $(shell git tag -l --sort=version:refname | tail -n1 | sed 's/^v//g')
setup:
echo $(GITAG) > VERSION
cat ../README.md | grep '^# IMCtermite' -A 50000 > ./README.md
cp -r ../lib ./
cp -v ../LICENSE ./
setup-clean:
rm -vf README.md VERSION LICENSE
rm -rf lib/
build: setup
python setup.py build
build-inplace: setup
python setup.py build_ext --inplace
build-sdist: setup
python setup.py sdist
build-bdist: setup
python setup.py bdist
build-clean:
python setup.py clean --all
rm -vf imctermite*.so imctermite*.cpp
rm -vf IMCtermite*.so IMCtermite*.cpp
rm -rvf dist/ IMCtermite.egg-info/
cibuildwheel-build: setup
cibuildwheel --platform linux
cibuildwheel-clean:
rm -rvf wheelhouse/
pypi-upload:
python -m twine upload dist/$(shell ls -t dist/ | head -n1)
clean: setup build-clean cibuildwheel-clean setup-clean
run-example:
PYTHONPATH=$(pwd) python examples/usage_files.py