* 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:
parent
1345f6e4c9
commit
5e93ed0706
@ -15,7 +15,7 @@ extensions = Extension(
|
||||
|
||||
setup(
|
||||
name="imc_termite",
|
||||
version='1.2.9',
|
||||
version='1.2.10',
|
||||
description='IMCtermite cython extension',
|
||||
author='Record Evolution GmbH',
|
||||
author_email='mario.fink@record-evolution.de',
|
||||
|
8
makefile
8
makefile
@ -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
|
||||
|
12
pip/makefile
12
pip/makefile
@ -2,15 +2,23 @@
|
||||
|
||||
SHELL := /bin/bash
|
||||
|
||||
publish: sdist upload
|
||||
publish-source: sdist upload
|
||||
publish-binary: bdist upload
|
||||
|
||||
sdist: ../cython/py_imc_termite.pyx ../cython/imc_termite.pxd ../cython/py_imc_termite.cpp
|
||||
prepdist: ../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 212 ../README.md > ./README.md
|
||||
cp -v ../LICENSE ./
|
||||
|
||||
sdist: prepdist
|
||||
python3 setup.py sdist
|
||||
|
||||
# TODO use manylinux wheel to avoid ERROR "unsupported platform tag 'linux_x86_64'"
|
||||
# see: - https://github.com/pypa/manylinux
|
||||
bdist: prepdist
|
||||
python3 setup.py bdist_wheel
|
||||
|
||||
# authentication:
|
||||
# - username: __token__
|
||||
# - password: <token value including pypi-prefix>
|
||||
|
@ -18,7 +18,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
||||
|
||||
setup(
|
||||
name="IMCtermite",
|
||||
version="1.2.9",
|
||||
version="1.2.10",
|
||||
author="Record Evolution GmbH",
|
||||
author_email="mario.fink@record-evolution.de",
|
||||
maintainer="Record Evolution GmbH",
|
||||
|
Loading…
x
Reference in New Issue
Block a user