From 7c235b3f2cb912388e7053721a2c684b21e7d88a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 23 Jan 2021 14:47:17 +0200 Subject: [PATCH] cmake : add pypi-publish target --- CMakeLists.txt | 17 +++++++++++++++++ README.md.tmpl | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab7cf7a..7564505 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,23 @@ if (GGWAVE_SUPPORT_PYTHON) DEPENDS bindings/python/ggwave.bycython.cpp DEPENDS bindings/python/ggwave ) + + add_custom_command( + OUTPUT ${CMAKE_SOURCE_DIR}/bindings/python/dist + DEPENDS ${CMAKE_SOURCE_DIR}/bindings/python/Makefile + DEPENDS ${CMAKE_SOURCE_DIR}/bindings/python/ggwave.pyx + DEPENDS ${CMAKE_SOURCE_DIR}/bindings/python/cggwave.pxd + DEPENDS ${CMAKE_SOURCE_DIR}/bindings/python/setup.py + DEPENDS ${GGWAVE_SOURCES} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bindings/python + COMMAND make publish + COMMENT "Publishing Python module v${PROJECT_VERSION}" + VERBATIM + ) + + add_custom_target(pypi-publish + DEPENDS bindings/python/dist + ) endif() diff --git a/README.md.tmpl b/README.md.tmpl index 4669f06..b940a48 100644 --- a/README.md.tmpl +++ b/README.md.tmpl @@ -3,7 +3,7 @@ [![Actions Status](https://github.com/ggerganov/ggwave/workflows/CI/badge.svg)](https://github.com/ggerganov/ggwave/actions) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![ggwave badge][changelog-badge]][changelog] -![pypi](https://img.shields.io/pypi/v/ggwave.svg) +[![pypi](https://img.shields.io/pypi/v/ggwave.svg)](https://pypi.org/project/ggwave/) Tiny data-over-sound library.