cmake : add pypi-publish target

This commit is contained in:
Georgi Gerganov
2021-01-23 14:47:17 +02:00
parent 3f690868a4
commit 7c235b3f2c
2 changed files with 18 additions and 1 deletions

View File

@@ -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()

View File

@@ -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.