python-twisted: Update to 21.2.0, redo patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
8c0777e3bb
commit
4b6e05d1fd
3 changed files with 39 additions and 52 deletions
|
@ -8,12 +8,11 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-twisted
|
PKG_NAME:=python-twisted
|
||||||
PKG_VERSION:=20.3.0
|
PKG_VERSION:=21.2.0
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PYPI_NAME:=Twisted
|
PYPI_NAME:=Twisted
|
||||||
PYPI_SOURCE_EXT:=tar.bz2
|
PKG_HASH:=77544a8945cf69b98d2946689bbe0c75de7d145cdf11f391dd487eae8fc95a12
|
||||||
PKG_HASH:=d72c55b5d56e176563b91d11952d13b01af8725c623e498db5507b6614fc1e10
|
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=libtirpc
|
PKG_BUILD_DEPENDS:=libtirpc
|
||||||
|
|
||||||
|
@ -33,13 +32,14 @@ define Package/python3-twisted
|
||||||
TITLE:=Asynchronous networking framework
|
TITLE:=Asynchronous networking framework
|
||||||
URL:=https://twistedmatrix.com/
|
URL:=https://twistedmatrix.com/
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+python3-light \
|
+python3 \
|
||||||
+python3-attrs \
|
+python3-attrs \
|
||||||
+python3-automat \
|
+python3-automat \
|
||||||
+python3-constantly \
|
+python3-constantly \
|
||||||
+python3-incremental \
|
+python3-incremental \
|
||||||
+python3-hyperlink \
|
+python3-hyperlink \
|
||||||
+python3-setuptools \
|
+python3-pkg-resources \
|
||||||
|
+python3-typing-extensions \
|
||||||
+python3-zope-interface
|
+python3-zope-interface
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -49,6 +49,10 @@ protocols. It contains a web server, numerous chat clients, chat servers,
|
||||||
mail servers, and more.
|
mail servers, and more.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
$(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
|
||||||
|
endef
|
||||||
|
|
||||||
define Py3Package/python3-twisted/filespec
|
define Py3Package/python3-twisted/filespec
|
||||||
+|$(PYTHON3_PKG_DIR)
|
+|$(PYTHON3_PKG_DIR)
|
||||||
-|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
|
-|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
--- a/src/twisted/python/_setup.py
|
--- a/setup.cfg
|
||||||
+++ b/src/twisted/python/_setup.py
|
+++ b/setup.cfg
|
||||||
@@ -151,7 +151,6 @@ _CONSOLE_SCRIPTS = [
|
@@ -98,7 +98,6 @@ console_scripts =
|
||||||
"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,37 +1,20 @@
|
||||||
--- a/src/twisted/python/_setup.py
|
--- a/setup.cfg
|
||||||
+++ b/src/twisted/python/_setup.py
|
+++ b/setup.cfg
|
||||||
@@ -177,11 +177,6 @@ class ConditionalExtension(Extension, ob
|
@@ -90,6 +90,9 @@ osx_platform =
|
||||||
# The C extensions used for Twisted.
|
|
||||||
_EXTENSIONS = [
|
|
||||||
ConditionalExtension(
|
|
||||||
- "twisted.test.raiser",
|
|
||||||
- sources=["src/twisted/test/raiser.c"],
|
|
||||||
- condition=lambda _: _isCPython),
|
|
||||||
-
|
|
||||||
- ConditionalExtension(
|
|
||||||
"twisted.internet.iocpreactor.iocpsupport",
|
|
||||||
sources=[
|
|
||||||
"src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c",
|
|
||||||
@@ -275,12 +270,11 @@ def getSetupArgs(extensions=_EXTENSIONS,
|
|
||||||
# PyHamcrest 1.10.0 is Python 3 only, but lacks package metadata that
|
|
||||||
# says so. This condition can be dropped when Twisted drops support for
|
|
||||||
# Python 2.7.
|
|
||||||
- "PyHamcrest >= 1.9.0, != 1.10.0",
|
|
||||||
"attrs >= 19.2.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
arguments.update(dict(
|
[options.packages.find]
|
||||||
- packages=find_packages("src"),
|
where = src
|
||||||
+ packages=find_packages("src", exclude=["*.test", "*.test.*"]),
|
+exclude =
|
||||||
use_incremental=True,
|
+ *.test
|
||||||
setup_requires=["incremental >= 16.10.1"],
|
+ *.test.*
|
||||||
install_requires=requirements,
|
|
||||||
@@ -290,7 +284,7 @@ def getSetupArgs(extensions=_EXTENSIONS,
|
[options.entry_points]
|
||||||
cmdclass=command_classes,
|
console_scripts =
|
||||||
include_package_data=True,
|
@@ -109,6 +112,7 @@ console_scripts =
|
||||||
exclude_package_data={
|
*.pxi
|
||||||
- "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat"],
|
*.pyx
|
||||||
+ "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat", "test/*"],
|
build.bat
|
||||||
},
|
+ test/*
|
||||||
zip_safe=False,
|
|
||||||
extras_require=_EXTRAS_REQUIRE,
|
[flake8]
|
||||||
|
disable-noqa = True
|
||||||
|
|
Loading…
Reference in a new issue