2021-09-27 23:52:46 +08:00
|
|
|
#
|
2022-08-13 03:35:25 +08:00
|
|
|
# Copyright (C) 2018-2022 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
2021-09-27 23:52:46 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=python-websockets
|
2023-08-29 12:10:08 +08:00
|
|
|
PKG_VERSION:=11.0.3
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2021-09-27 23:52:46 +08:00
|
|
|
|
|
|
|
PYPI_NAME:=websockets
|
2023-08-29 12:10:08 +08:00
|
|
|
PKG_HASH:=88fc51d9a26b10fc331be344f1781224a375b78488fc343620184e95a4b27016
|
2021-09-27 23:52:46 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include ../pypi.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../python3-package.mk
|
|
|
|
|
|
|
|
define Package/python3-websockets
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2023-08-29 12:10:08 +08:00
|
|
|
TITLE:=Implementation of the WebSocket Protocol
|
|
|
|
URL:=https://github.com/aaugustin/websockets
|
|
|
|
DEPENDS:=+python3
|
2021-09-27 23:52:46 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python3-websockets/description
|
2023-08-29 12:10:08 +08:00
|
|
|
websockets is a library for building WebSocket servers and clients in
|
|
|
|
Python with a focus on correctness, simplicity, robustness, and
|
|
|
|
performance.
|
2021-09-27 23:52:46 +08:00
|
|
|
|
2023-08-29 12:10:08 +08:00
|
|
|
Built on top of asyncio, Python's standard asynchronous I/O framework,
|
|
|
|
the default implementation provides an elegant coroutine-based API.
|
2021-09-27 23:52:46 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-websockets))
|
|
|
|
$(eval $(call BuildPackage,python3-websockets))
|
|
|
|
$(eval $(call BuildPackage,python3-websockets-src))
|