All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
@ 2024-04-18  9:01 Guðni Már Gilbert
  2024-04-18 14:28 ` [oe] " Tim Orling
  2024-04-19 18:34 ` Alper Ak
  0 siblings, 2 replies; 8+ messages in thread
From: Guðni Már Gilbert @ 2024-04-18  9:01 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Guðni Már Gilbert

[-- Attachment #1: Type: text/plain, Size: 4533 bytes --]

Changelogs between 22.10.0 and 24.3.0 can be found here:

https://github.com/twisted/twisted/releases/tag/twisted-24.3.0
https://github.com/twisted/twisted/releases/tag/twisted-23.10.0
https://github.com/twisted/twisted/releases/tag/twisted-23.8.0

Summary of changes relevant for the Yocto build:
- Brings official support for Python 3.11 and 3.12, only Python 3.8 and above supported.
- python3-twisted-conch: python3-pyasn1 is no longer a runtime dependency (23.8.0)
- PYPI_PACKAGE name was changed from 'Twisted' to 'twisted' to make fetching work

Signed-off-by: Guðni Már Gilbert <gudnimar@noxmedical.com>
---
 ...twisted_22.10.0.bb => python3-twisted_24.3.0.bb} | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-twisted_22.10.0.bb => python3-twisted_24.3.0.bb} (93%)

diff --git a/meta-python/recipes-devtools/python/python3-twisted_22.10.0.bb b/meta-python/recipes-devtools/python/python3-twisted_24.3.0.bb
similarity index 93%
rename from meta-python/recipes-devtools/python/python3-twisted_22.10.0.bb
rename to meta-python/recipes-devtools/python/python3-twisted_24.3.0.bb
index 20b9ce254..be2246623 100644
--- a/meta-python/recipes-devtools/python/python3-twisted_22.10.0.bb
+++ b/meta-python/recipes-devtools/python/python3-twisted_24.3.0.bb
@@ -4,11 +4,11 @@ Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of p
 HOMEPAGE = "http://www.twistedmatrix.com"
 
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0f8d67f84b6e178c92d471011b2245fc"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c1c5d2c2493b848f83864bdedd67bbf5"
 
-SRC_URI[sha256sum] = "32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31"
+SRC_URI[sha256sum] = "6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae"
 
-PYPI_PACKAGE = "Twisted"
+PYPI_PACKAGE = "twisted"
 
 inherit pypi python_setuptools_build_meta
 
@@ -65,7 +65,7 @@ RDEPENDS:${PN}-core = "python3-appdirs \
                        python3-zopeinterface \
 "
 RDEPENDS:${PN}-test = "${PN}"
-RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-bcrypt python3-cryptography python3-pyasn1 python3-pickle"
+RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-bcrypt python3-cryptography python3-pickle"
 RDEPENDS:${PN}-mail = "${PN}-core ${PN}-protocols"
 RDEPENDS:${PN}-names = "${PN}-core"
 RDEPENDS:${PN}-news = "${PN}-core ${PN}-protocols"
@@ -75,8 +75,6 @@ RDEPENDS:${PN}-words += "${PN}-core"
 RDEPENDS:${PN}-flow += "${PN}-core"
 RDEPENDS:${PN}-pair += "${PN}-core"
 
-FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*"
-
 FILES:${PN}-test = " \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/test \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/*/test \
@@ -85,8 +83,6 @@ FILES:${PN}-test = " \
 
 FILES:${PN}-protocols = " \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/*.py* \
-    ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/gps/ \
-    ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/mice/ \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/haproxy \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/__pycache__/*pyc \
 "
@@ -124,7 +120,6 @@ FILES:${PN}-core = " \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/*.py* \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/python/*.py* \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/*.py* \
-    ${PYTHON_SITEPACKAGES_DIR}/Twisted*egg-info \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/logger \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/_threads \
     ${PYTHON_SITEPACKAGES_DIR}/twisted/positioning \
-- 
2.34.1

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.

[-- Attachment #2: Type: text/html, Size: 5134 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-18  9:01 [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0 Guðni Már Gilbert
@ 2024-04-18 14:28 ` Tim Orling
  2024-04-18 21:37   ` Guðni Már Gilbert
  2024-04-19 18:34 ` Alper Ak
  1 sibling, 1 reply; 8+ messages in thread
From: Tim Orling @ 2024-04-18 14:28 UTC (permalink / raw)
  To: gudnimar; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 4872 bytes --]

On Thu, Apr 18, 2024 at 2:01 AM Guðni Már Gilbert via lists.openembedded.org
<gudnimar=noxmedical.com@lists.openembedded.org> wrote:

> Changelogs between 22.10.0 and 24.3.0 can be found here:
>
> https://github.com/twisted/twisted/releases/tag/twisted-24.3.0
> https://github.com/twisted/twisted/releases/tag/twisted-23.10.0
> https://github.com/twisted/twisted/releases/tag/twisted-23.8.0
>
> Summary of changes relevant for the Yocto build:
> - Brings official support for Python 3.11 and 3.12, only Python 3.8 and
> above supported.
> - python3-twisted-conch: python3-pyasn1 is no longer a runtime dependency
> (23.8.0)
> - PYPI_PACKAGE name was changed from 'Twisted' to 'twisted' to make
> fetching work
>
> Signed-off-by: Guðni Már Gilbert <gudnimar@noxmedical.com>
> ---
> ...twisted_22.10.0.bb => python3-twisted_24.3.0.bb} | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
> rename meta-python/recipes-devtools/python/{python3-twisted_22.10.0.bb =>
> python3-twisted_24.3.0.bb} (93%)
>
> diff --git a/meta-python/recipes-devtools/python/
> python3-twisted_22.10.0.bb b/meta-python/recipes-devtools/python/
> python3-twisted_24.3.0.bb
> similarity index 93%
> rename from meta-python/recipes-devtools/python/python3-twisted_22.10.0.bb
> rename to meta-python/recipes-devtools/python/python3-twisted_24.3.0.bb
> index 20b9ce254..be2246623 100644
> --- a/meta-python/recipes-devtools/python/python3-twisted_22.10.0.bb
> +++ b/meta-python/recipes-devtools/python/python3-twisted_24.3.0.bb
> @@ -4,11 +4,11 @@ Twisted supports TCP, UDP, SSL/TLS, multicast, Unix
> sockets, a large number of p
> HOMEPAGE = "http://www.twistedmatrix.com"
>
> LICENSE = "MIT"
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=0f8d67f84b6e178c92d471011b2245fc"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=c1c5d2c2493b848f83864bdedd67bbf5"
>
> -SRC_URI[sha256sum] =
> "32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31"
> +SRC_URI[sha256sum] =
> "6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae"
>
> -PYPI_PACKAGE = "Twisted"
> +PYPI_PACKAGE = "twisted"
>

This is the default, so not explicitly needed. The capitalized name was
previously needed to match the tarball file name.


>
> inherit pypi python_setuptools_build_meta
>
> @@ -65,7 +65,7 @@ RDEPENDS:${PN}-core = "python3-appdirs \
> python3-zopeinterface \
> "
> RDEPENDS:${PN}-test = "${PN}"
> -RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-bcrypt
> python3-cryptography python3-pyasn1 python3-pickle"
> +RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-bcrypt
> python3-cryptography python3-pickle"
> RDEPENDS:${PN}-mail = "${PN}-core ${PN}-protocols"
> RDEPENDS:${PN}-names = "${PN}-core"
> RDEPENDS:${PN}-news = "${PN}-core ${PN}-protocols"
> @@ -75,8 +75,6 @@ RDEPENDS:${PN}-words += "${PN}-core"
> RDEPENDS:${PN}-flow += "${PN}-core"
> RDEPENDS:${PN}-pair += "${PN}-core"
>
> -FILES:${PN} =
> "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*"
> -
> FILES:${PN}-test = " \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/test \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/*/test \
> @@ -85,8 +83,6 @@ FILES:${PN}-test = " \
>
> FILES:${PN}-protocols = " \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/*.py* \
> - ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/gps/ \
> - ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/mice/ \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/haproxy \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/protocols/__pycache__/*pyc \
> "
> @@ -124,7 +120,6 @@ FILES:${PN}-core = " \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/*.py* \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/python/*.py* \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/plugins/*.py* \
> - ${PYTHON_SITEPACKAGES_DIR}/Twisted*egg-info \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/logger \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/_threads \
> ${PYTHON_SITEPACKAGES_DIR}/twisted/positioning \
> --
> 2.34.1
>
>
> Warning: Copyright Nox Health. This communication is confidential and may
> contain privileged information. By the use of email over the Internet or
> other communication systems, Nox Health is not waiving either
> confidentiality of, or legal privilege in, the content of the email and of
> any attachments. If the recipient of this message is not the intended
> addressee, please call Nox Health immediately by calling (+1) 888.505.0280
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#110049):
> https://lists.openembedded.org/g/openembedded-devel/message/110049
> Mute This Topic: https://lists.openembedded.org/mt/105594516/924729
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 7643 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-18 14:28 ` [oe] " Tim Orling
@ 2024-04-18 21:37   ` Guðni Már Gilbert
  2024-04-18 23:32     ` [oe] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Guðni Már Gilbert @ 2024-04-18 21:37 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

Hi Tim, good to know :)

I see this patch has already made it to master-next branch, I can remove the PYPI_PACKAGE line in a future patch after I have built it locally to verify.

I'm hoping to backport this upgrade to Scarthgap as well so the latest LTS is not ~2 years out of date.

I'm sure I will contribute more for the twisted recipe if I find any further improvements/cleanup. I believe we can split twisted-core into more independent packages, but I will take my time with those changes before submitting them so it may take a while.

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-18 21:37   ` Guðni Már Gilbert
@ 2024-04-18 23:32     ` Khem Raj
  2024-04-19  8:05       ` Guðni Már Gilbert
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2024-04-18 23:32 UTC (permalink / raw)
  To: gudnimar; +Cc: openembedded-devel

On Thu, Apr 18, 2024 at 2:38 PM Guðni Már Gilbert via
lists.openembedded.org
<gudnimar=noxmedical.com@lists.openembedded.org> wrote:
>
> Hi Tim, good to know :)
>
> I see this patch has already made it to master-next branch, I can remove the PYPI_PACKAGE line in a future patch after I have built it locally to verify.

master-next is staging many patches and is always in flux and
primarily meant for CI, so please send a v2 of this with the feedback
addressed.

>
> I'm hoping to backport this upgrade to Scarthgap as well so the latest LTS is not ~2 years out of date.
>
> I'm sure I will contribute more for the twisted recipe if I find any further improvements/cleanup. I believe we can split twisted-core into more independent packages, but I will take my time with those changes before submitting them so it may take a while.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#110055): https://lists.openembedded.org/g/openembedded-devel/message/110055
> Mute This Topic: https://lists.openembedded.org/mt/105594516/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-18 23:32     ` [oe] " Khem Raj
@ 2024-04-19  8:05       ` Guðni Már Gilbert
  2024-04-19 17:26         ` [oe] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Guðni Már Gilbert @ 2024-04-19  8:05 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

On Thu, Apr 18, 2024 at 11:33 PM, Khem Raj wrote:

> 
> master-next is staging many patches and is always in flux and
> primarily meant for CI, so please send a v2 of this with the feedback
> addressed.

Hi Khem,
Thank you for the reply, I did not know this. I will then submit a new patch. I'm currently travelling but will post the patch likely next Monday. :)

[-- Attachment #2: Type: text/html, Size: 401 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-19  8:05       ` Guðni Már Gilbert
@ 2024-04-19 17:26         ` Khem Raj
  0 siblings, 0 replies; 8+ messages in thread
From: Khem Raj @ 2024-04-19 17:26 UTC (permalink / raw)
  To: gudnimar; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

On Fri, Apr 19, 2024 at 1:05 AM Guðni Már Gilbert via lists.openembedded.org
<gudnimar=noxmedical.com@lists.openembedded.org> wrote:

> On Thu, Apr 18, 2024 at 11:33 PM, Khem Raj wrote:
>
> master-next is staging many patches and is always in flux and
> primarily meant for CI, so please send a v2 of this with the feedback
> addressed.
>
> Hi Khem,
> Thank you for the reply, I did not know this. I will then submit a new
> patch. I'm currently travelling but will post the patch likely next Monday.
> :)


That is fine


> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#110057):
> https://lists.openembedded.org/g/openembedded-devel/message/110057
> Mute This Topic: https://lists.openembedded.org/mt/105594516/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2004 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-18  9:01 [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0 Guðni Már Gilbert
  2024-04-18 14:28 ` [oe] " Tim Orling
@ 2024-04-19 18:34 ` Alper Ak
  2024-04-19 19:49   ` Guðni Már Gilbert
  1 sibling, 1 reply; 8+ messages in thread
From: Alper Ak @ 2024-04-19 18:34 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

Hi Gilbert,

First of all, thank you for your patch.

When sending the V2 patch, it would be great if you could also check the build-backend and dependencies because these seem to have changed.

https://github.com/twisted/twisted/blob/2e59e1fb322bc4b20009443f2252ecc6d7c79f80/pyproject.toml#L7

Best Regards

[-- Attachment #2: Type: text/html, Size: 350 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0
  2024-04-19 18:34 ` Alper Ak
@ 2024-04-19 19:49   ` Guðni Már Gilbert
  0 siblings, 0 replies; 8+ messages in thread
From: Guðni Már Gilbert @ 2024-04-19 19:49 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

On Fri, Apr 19, 2024 at 06:34 PM, Alper Ak wrote:

> 
> Hi Gilbert,
> 
> First of all, thank you for your patch.
> 
> When sending the V2 patch, it would be great if you could also check the
> build-backend and dependencies because these seem to have changed.
> 
> https://github.com/twisted/twisted/blob/2e59e1fb322bc4b20009443f2252ecc6d7c79f80/pyproject.toml#L7
> 
> 
> Best Regards

Thank you Alper, good catch!

TODO list I have so far for patch V2:
* Remove explicit PYPI_PACKAGE and rely on default name "twisted"
* Change python_setuptools_build_meta to python_hatchling
* Change HOMEPAGE from "http://www.twistedmatrix.com" to "https://twisted.org"
* Move python3-pyhamcrest from python3-twisted-core to only python3-twisted-test (changed in Twisted 21.2.0)

[-- Attachment #2: Type: text/html, Size: 848 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-19 19:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18  9:01 [meta-python][PATCH] python3-twisted: upgrade 22.10.0 -> 24.3.0 Guðni Már Gilbert
2024-04-18 14:28 ` [oe] " Tim Orling
2024-04-18 21:37   ` Guðni Már Gilbert
2024-04-18 23:32     ` [oe] " Khem Raj
2024-04-19  8:05       ` Guðni Már Gilbert
2024-04-19 17:26         ` [oe] " Khem Raj
2024-04-19 18:34 ` Alper Ak
2024-04-19 19:49   ` Guðni Már Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.