cmake : separate version string for python package

This commit is contained in:
Georgi Gerganov
2021-02-21 00:55:55 +02:00
parent bf4be2a4f4
commit 311442f01c
4 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
cmake_minimum_required (VERSION 3.0)
project(ggwave VERSION 0.2.0)
set(GGWAVE_VERSION_PYTHON 0.2.1)
# configure project version
configure_file(${CMAKE_SOURCE_DIR}/README-tmpl.md ${CMAKE_SOURCE_DIR}/README.md @ONLY)
configure_file(${CMAKE_SOURCE_DIR}/bindings/python/setup-tmpl.py ${CMAKE_SOURCE_DIR}/bindings/python/setup.py @ONLY)

View File

@@ -49,7 +49,7 @@ if (GGWAVE_SUPPORT_PYTHON)
DEPENDS ${GGWAVE_SOURCES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python
COMMAND make publish
COMMENT "Publishing Python module v${PROJECT_VERSION}"
COMMENT "Publishing Python module v${GGWAVE_VERSION_PYTHON}"
VERBATIM
)

View File

@@ -30,7 +30,7 @@ setup(
name = "ggwave",
description = "Tiny data-over-sound library.",
long_description = long_description,
version = "@PROJECT_VERSION@",
version = "@GGWAVE_VERSION_PYTHON@",
url = "https://github.com/ggerganov/ggwave",
author = "Georgi Gerganov",
author_email = "ggerganov@gmail.com",

View File

@@ -30,7 +30,7 @@ setup(
name = "ggwave",
description = "Tiny data-over-sound library.",
long_description = long_description,
version = "0.2.0",
version = "0.2.1",
url = "https://github.com/ggerganov/ggwave",
author = "Georgi Gerganov",
author_email = "ggerganov@gmail.com",