python-twisted: Update to 23.8.0, rework patches
The package changed to the hatchling build backend. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
e429c11b04
commit
00841f9873
4 changed files with 30 additions and 40 deletions
|
@ -9,11 +9,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-twisted
|
PKG_NAME:=python-twisted
|
||||||
PKG_VERSION:=22.10.0
|
PKG_VERSION:=23.8.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=Twisted
|
PYPI_NAME:=Twisted
|
||||||
PKG_HASH:=32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31
|
PYPI_SOURCE_NAME:=twisted
|
||||||
|
PKG_HASH:=3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=libtirpc
|
PKG_BUILD_DEPENDS:=libtirpc
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
|
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=python-incremental/host
|
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-fancy-pypi-readme/host python-incremental/host
|
||||||
|
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -45,8 +46,6 @@ define Package/python3-twisted
|
||||||
+python3-hyperlink \
|
+python3-hyperlink \
|
||||||
+python3-idna \
|
+python3-idna \
|
||||||
+python3-incremental \
|
+python3-incremental \
|
||||||
+python3-pkg-resources \
|
|
||||||
+python3-pyasn1 \
|
|
||||||
+python3-pyopenssl \
|
+python3-pyopenssl \
|
||||||
+python3-service-identity \
|
+python3-service-identity \
|
||||||
+python3-typing-extensions \
|
+python3-typing-extensions \
|
||||||
|
@ -55,12 +54,8 @@ endef
|
||||||
|
|
||||||
define Package/python3-twisted/description
|
define Package/python3-twisted/description
|
||||||
Twisted is a networking engine written in Python, supporting numerous
|
Twisted is a networking engine written in Python, supporting numerous
|
||||||
protocols. It contains a web server, numerous chat clients, chat servers,
|
protocols. It contains a web server, numerous chat clients, chat
|
||||||
mail servers, and more.
|
servers, mail servers, and more.
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
$(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Py3Package/python3-twisted/filespec
|
define Py3Package/python3-twisted/filespec
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
--- a/setup.cfg
|
--- a/pyproject.toml
|
||||||
+++ b/setup.cfg
|
+++ b/pyproject.toml
|
||||||
@@ -115,7 +115,6 @@ console_scripts =
|
@@ -150,7 +150,6 @@ ckeygen = "twisted.conch.scripts.ckeygen
|
||||||
conch = twisted.conch.scripts.conch:run
|
conch = "twisted.conch.scripts.conch:run"
|
||||||
mailmail = twisted.mail.scripts.mailmail:run
|
mailmail = "twisted.mail.scripts.mailmail:run"
|
||||||
pyhtmlizer = twisted.scripts.htmlizer:run
|
pyhtmlizer = "twisted.scripts.htmlizer:run"
|
||||||
- tkconch = twisted.conch.scripts.tkconch:run
|
-tkconch = "twisted.conch.scripts.tkconch:run"
|
||||||
trial = twisted.scripts.trial:run
|
trial = "twisted.scripts.trial:run"
|
||||||
twist = twisted.application.twist._twist:Twist.main
|
twist = "twisted.application.twist._twist:Twist.main"
|
||||||
twistd = twisted.scripts.twistd:run
|
twistd = "twisted.scripts.twistd:run"
|
||||||
--- a/src/twisted/python/twisted-completion.zsh
|
--- a/src/twisted/python/twisted-completion.zsh
|
||||||
+++ b/src/twisted/python/twisted-completion.zsh
|
+++ b/src/twisted/python/twisted-completion.zsh
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
|
|
|
@ -1,20 +1,10 @@
|
||||||
--- a/setup.cfg
|
--- a/pyproject.toml
|
||||||
+++ b/setup.cfg
|
+++ b/pyproject.toml
|
||||||
@@ -107,6 +107,9 @@ mypy =
|
@@ -194,6 +194,7 @@ exclude = [
|
||||||
|
"*.pxi",
|
||||||
|
"*.pyx",
|
||||||
|
"build.bat",
|
||||||
|
+ "test",
|
||||||
|
]
|
||||||
|
|
||||||
[options.packages.find]
|
[tool.hatch.build.targets.sdist]
|
||||||
where = src
|
|
||||||
+exclude =
|
|
||||||
+ *.test
|
|
||||||
+ *.test.*
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
console_scripts =
|
|
||||||
@@ -126,6 +129,7 @@ console_scripts =
|
|
||||||
*.pxi
|
|
||||||
*.pyx
|
|
||||||
build.bat
|
|
||||||
+ test/*
|
|
||||||
|
|
||||||
[flake8]
|
|
||||||
disable-noqa = True
|
|
||||||
|
|
5
lang/python/python-twisted/test.sh
Normal file
5
lang/python/python-twisted/test.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ "$1" = python3-twisted ] || exit 0
|
||||||
|
|
||||||
|
python3 -c 'from twisted.internet import reactor'
|
Loading…
Reference in a new issue