mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-04-21 05:36:33 +08:00
cmake : separate version string for python package
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
cmake_minimum_required (VERSION 3.0)
|
cmake_minimum_required (VERSION 3.0)
|
||||||
project(ggwave VERSION 0.2.0)
|
project(ggwave VERSION 0.2.0)
|
||||||
|
|
||||||
|
set(GGWAVE_VERSION_PYTHON 0.2.1)
|
||||||
|
|
||||||
# configure project version
|
# configure project version
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/README-tmpl.md ${CMAKE_SOURCE_DIR}/README.md @ONLY)
|
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)
|
configure_file(${CMAKE_SOURCE_DIR}/bindings/python/setup-tmpl.py ${CMAKE_SOURCE_DIR}/bindings/python/setup.py @ONLY)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ if (GGWAVE_SUPPORT_PYTHON)
|
|||||||
DEPENDS ${GGWAVE_SOURCES}
|
DEPENDS ${GGWAVE_SOURCES}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python
|
||||||
COMMAND make publish
|
COMMAND make publish
|
||||||
COMMENT "Publishing Python module v${PROJECT_VERSION}"
|
COMMENT "Publishing Python module v${GGWAVE_VERSION_PYTHON}"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ setup(
|
|||||||
name = "ggwave",
|
name = "ggwave",
|
||||||
description = "Tiny data-over-sound library.",
|
description = "Tiny data-over-sound library.",
|
||||||
long_description = long_description,
|
long_description = long_description,
|
||||||
version = "@PROJECT_VERSION@",
|
version = "@GGWAVE_VERSION_PYTHON@",
|
||||||
url = "https://github.com/ggerganov/ggwave",
|
url = "https://github.com/ggerganov/ggwave",
|
||||||
author = "Georgi Gerganov",
|
author = "Georgi Gerganov",
|
||||||
author_email = "ggerganov@gmail.com",
|
author_email = "ggerganov@gmail.com",
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ setup(
|
|||||||
name = "ggwave",
|
name = "ggwave",
|
||||||
description = "Tiny data-over-sound library.",
|
description = "Tiny data-over-sound library.",
|
||||||
long_description = long_description,
|
long_description = long_description,
|
||||||
version = "0.2.0",
|
version = "0.2.1",
|
||||||
url = "https://github.com/ggerganov/ggwave",
|
url = "https://github.com/ggerganov/ggwave",
|
||||||
author = "Georgi Gerganov",
|
author = "Georgi Gerganov",
|
||||||
author_email = "ggerganov@gmail.com",
|
author_email = "ggerganov@gmail.com",
|
||||||
|
|||||||
Reference in New Issue
Block a user