* 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:
44
python/makefile
Normal file
44
python/makefile
Normal 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
|
Reference in New Issue
Block a user