mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-05-10 10:57:39 +08:00
cmake : add pypi-publish target
This commit is contained in:
@@ -98,6 +98,23 @@ if (GGWAVE_SUPPORT_PYTHON)
|
|||||||
DEPENDS bindings/python/ggwave.bycython.cpp
|
DEPENDS bindings/python/ggwave.bycython.cpp
|
||||||
DEPENDS bindings/python/ggwave
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
[](https://github.com/ggerganov/ggwave/actions)
|
[](https://github.com/ggerganov/ggwave/actions)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
[![ggwave badge][changelog-badge]][changelog]
|
[![ggwave badge][changelog-badge]][changelog]
|
||||||

|
[](https://pypi.org/project/ggwave/)
|
||||||
|
|
||||||
Tiny data-over-sound library.
|
Tiny data-over-sound library.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user