* version 1.2.10

* makefile: versioning and tags: properly deal with multiple digits version tags
* setup.py: support both sdist and bdist pip wheels
This commit is contained in:
2021-09-01 10:58:42 +02:00
parent 1345f6e4c9
commit 5e93ed0706
4 changed files with 16 additions and 8 deletions

View File

@@ -20,10 +20,10 @@ CC = g++ -std=c++17
OPT = -O3 -Wall -Werror -Wunused-variable -Wsign-compare
# determine git version/commit and release tag
GTAG := $(shell git tag | tail -n1)
GTAG := $(shell git tag -l --sort=version:refname | tail -n1)
GHSH := $(shell git rev-parse HEAD | head -c8)
RTAG := v$(shell cat pip/setup.py | grep version | grep -oP "([0-9]\.){2}[0-9]")
CTAG := v$(shell cat cython/setup.py | grep version | grep -oP "([0-9]\.){2}[0-9]")
RTAG := v$(shell cat pip/setup.py | grep version | grep -oP "([0-9]\.){2}[0-9]{1,2}")
CTAG := v$(shell cat cython/setup.py | grep version | grep -oP "([0-9]\.){2}[0-9]{1,2}")
# define install location
INST := /usr/local/bin
@@ -99,7 +99,7 @@ cython-clean :
# pip
pip-release: check-vtag $(RTAG) cython-build
cd ./pip/ && make publish
cd ./pip/ && make publish-source
#-----------------------------------------------------------------------------#
# clean