python3-twisted: cleanup FILES and recipe in general

Changes are made to prepare upgrading Twisted to a newer version
in a later commit.

Summary of changes:

Remove python3-twisted-bin since there is no FILES defined for bin

Use PYTHON_SITEPACKAGES_DIR when refering to the site-packages directory

Remove ALOT of files from FILES list which no longer exist. Many of these
files were deprecated and removed a long time ago.

Removed redundant :append to FILES packages, they can simply be in the
first definition of it.

Signed-off-by: Guðni Már Gilbert <gudnimar@noxmedical.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Guðni Már Gilbert
2024-04-13 21:05:56 +00:00
committed by Khem Raj
parent 1731d7ca9c
commit c5ada8ea59
@@ -3,7 +3,6 @@ Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of p
(including HTTP, NNTP, IMAP, SSH, IRC, FTP, and others), and much more." (including HTTP, NNTP, IMAP, SSH, IRC, FTP, and others), and much more."
HOMEPAGE = "http://www.twistedmatrix.com" HOMEPAGE = "http://www.twistedmatrix.com"
#twisted/topfiles/NEWS:655: - Relicensed: Now under the MIT license, rather than LGPL.
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0f8d67f84b6e178c92d471011b2245fc" LIC_FILES_CHKSUM = "file://LICENSE;md5=0f8d67f84b6e178c92d471011b2245fc"
@@ -34,16 +33,11 @@ PACKAGES += "\
${PN}-core \ ${PN}-core \
" "
PACKAGES =+ "\
${PN}-bin \
"
DEPENDS += " \ DEPENDS += " \
python3-incremental-native \ python3-incremental-native \
" "
RDEPENDS:${PN} = "\ RDEPENDS:${PN} = "\
${PN}-bin \
${PN}-core \ ${PN}-core \
${PN}-conch \ ${PN}-conch \
${PN}-mail \ ${PN}-mail \
@@ -84,229 +78,124 @@ RDEPENDS:${PN}-pair += "${PN}-core"
FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*" FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*"
FILES:${PN}-test = " \ FILES:${PN}-test = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/test \ ${PYTHON_SITEPACKAGES_DIR}/twisted/test \
${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \ ${PYTHON_SITEPACKAGES_DIR}/twisted/*/test \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy/test/ \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/haproxy/test/ \
" "
FILES:${PN}-protocols = " \ FILES:${PN}-protocols = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/*.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/gps/ \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/gps/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/mice/ \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/mice/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/haproxy \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/haproxy \
${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/__pycache__/*pyc \
" "
FILES:${PN}-zsh = " \ FILES:${PN}-zsh = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \ ${PYTHON_SITEPACKAGES_DIR}/twisted/python/twisted-completion.zsh \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/twisted-completion.zsh \
" "
FILES:${PN}-conch = " \ FILES:${PN}-conch = " \
${bindir}/ckeygen \ ${bindir}/ckeygen \
${bindir}/tkconch \ ${bindir}/tkconch \
${bindir}/conch \ ${bindir}/conch \
${bindir}/conchftp \
${bindir}/cftp \ ${bindir}/cftp \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_conch.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/conch \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_conch*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/conch \
" "
FILES:${PN}-core = " \ FILES:${PN}-core = " \
${bindir}/manhole \ ${bindir}/twist \
${bindir}/mktap \
${bindir}/twistd \ ${bindir}/twistd \
${bindir}/tap2deb \
${bindir}/tap2rpm \
${bindir}/tapconvert \
${bindir}/tkmktap \
${bindir}/trial \ ${bindir}/trial \
${bindir}/easy_install* \
${bindir}/pyhtmlizer \ ${bindir}/pyhtmlizer \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.so \ ${PYTHON_SITEPACKAGES_DIR}/twisted/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/application \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/cred \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/enterprise \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/internet \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/persisted \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/scripts \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/spread \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/tap \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/trial \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \ ${PYTHON_SITEPACKAGES_DIR}/twisted/python/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/application \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \ ${PYTHON_SITEPACKAGES_DIR}/Twisted*egg-info \
${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \ ${PYTHON_SITEPACKAGES_DIR}/twisted/logger \
${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \ ${PYTHON_SITEPACKAGES_DIR}/twisted/_threads \
${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \ ${PYTHON_SITEPACKAGES_DIR}/twisted/positioning \
${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \ ${PYTHON_SITEPACKAGES_DIR}/twisted/py.typed \
${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \ ${PYTHON_SITEPACKAGES_DIR}/twisted/__pycache__/*pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\ ${PYTHON_SITEPACKAGES_DIR}/twisted/python/__pycache__/*pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python\ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/__init__*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/cred_anonymous*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/cred_file*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/cred_memory*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/cred_sshkeys*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/cred_unix*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_core*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_ftp*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_inet*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_portforward*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_reactors*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_socks*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_trial*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \
${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/topfiles \
${libdir}/${PYTHON_DIR}/site-packages/Twisted*egg-info \
${libdir}/${PYTHON_DIR}/site-packages/twisted/logger/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/_threads/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning/ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/py.typed \
" "
FILES:${PN}-mail = " \ FILES:${PN}-mail = " \
${bindir}/mailmail \ ${bindir}/mailmail \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_mail.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_mail*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/mail \
" "
FILES:${PN}-names = " \ FILES:${PN}-names = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_names.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/names \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_names*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/names \
" "
FILES:${PN}-news = " \ FILES:${PN}-news = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_news.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/news \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_news*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/news \
" "
FILES:${PN}-runner = " \ FILES:${PN}-runner = " \
${libdir}/site-packages/twisted/runner/portmap.so \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_runner.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_runner*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/runner \
" "
FILES:${PN}-web = " \ FILES:${PN}-web = " \
${bindir}/websetroot \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_web.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_web*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/web\ ${PYTHON_SITEPACKAGES_DIR}/twisted/web \
" "
FILES:${PN}-words = " \ FILES:${PN}-words = " \
${bindir}/im \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_words.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_words*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/words\ ${PYTHON_SITEPACKAGES_DIR}/twisted/words \
" "
FILES:${PN}-flow = " \ FILES:${PN}-flow = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_flow.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \" ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_flow*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/flow \
"
FILES:${PN}-pair = " \ FILES:${PN}-pair = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/twisted_pair.py* \
${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \ ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/__pycache__/twisted_pair*.pyc \
${PYTHON_SITEPACKAGES_DIR}/twisted/pair \
" "
FILES:${PN}-doc += " \ FILES:${PN}-doc += " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_pydoctortemplates/ \ ${PYTHON_SITEPACKAGES_DIR}/twisted/python/_pydoctortemplates \
" "
FILES:${PN}-core:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/__pycache__ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__pycache__/*pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/__init__*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/notestplugin*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/testplugin*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_ftp*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_inet*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_manhole*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_portforward*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_socks*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_telnet*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_trial*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_core*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_qtstub*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_reactors*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/cred*.pyc \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/dropin*.cache \
"
FILES:${PN}-names:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_names*.pyc \
"
FILES:${PN}-news:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_news*.pyc \
"
FILES:${PN}-protocols:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/__pycache__/*pyc \
"
FILES:${PN}-conch:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_conch*.pyc \
"
FILES:${PN}-lore:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_lore*.pyc \
"
FILES:${PN}-mail:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_mail*.pyc \
"
FILES:${PN}-web:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_web*.pyc \
"
FILES:${PN}-words:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_words*.pyc \
"
FILES:${PN}-flow:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_flow*.pyc \
"
FILES:${PN}-pair:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_pair*.pyc \
"
FILES:${PN}-runner:append = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__pycache__/twisted_runner*.pyc \
"