Skip to contentSkip to conversation

python-twisted: restore RDEPENDS on -news for py2

PATCH In review Mark Asselstine 1 participant 10 messages Dec 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/8 python-twisted: restore RDEPENDS on -news for py2

V1 of this series was incomplete. Thus following up with a V2 which includes additional cherry-picks from master. Cherry-pick commit IDs are listed in the temporary comment section of the individual commits.

When building images using rocko that include python-twisted you will get an error:
nothing provides python3-twisted-news needed by python3-twisted-17.9.0-r0.corei7_64

Basically upstream marked the -news plugin as unavailable in py3 (See src/twisted/python/_setup.py -- notPortedModules). This leaves the -news package empty, thus no RPM or similar is built and the dependency can't be satisfied. Backporting patches 1,3-8 fix this issue. Patch 1 is the main fix but also introduces missing dependencies, which are added in patches 3-8. However, the -news package is still available in py2 thus patch 2 re-adds this to the RDEPENDS of ${PN} (the super package which can be used if you don't want to select individual component packages).

Patch 2 should also be applied to master.

Mark

#1 lore raw

PATCH v2 1/8 python-twisted: clean-up the dependencies

From: Derek Straka <[email protected]>

---

Cherry-pick from master
e410b5c54373ce9539f2df9840e3d987f319ee6c

 meta-python/recipes-devtools/python/python-twisted.inc        | 4 ++--
 meta-python/recipes-devtools/python/python-twisted_17.9.0.bb  | 2 +-
 meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
meta-python/recipes-devtools/python/python-twisted.inc +2 -2
index 4bd4788..0dd584f 100644
@@ -41,16 +41,16 @@ PACKAGES =+ "\
 
 RDEPENDS_${PN} = "\
     ${PN}-bin \
+    ${PN}-core \
     ${PN}-conch \
     ${PN}-mail \
     ${PN}-names \
-    ${PN}-news \
     ${PN}-runner \
     ${PN}-web \
     ${PN}-words \
 "
 
-RDEPENDS_${PN}-core = "python-core python-zopeinterface python-contextlib"
+RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat"
 RDEPENDS_${PN}-test = "${PN}"
 RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
 RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +1 -1
index 3b45110..2be1709 100644
@@ -1,4 +1,4 @@
 inherit pypi setuptools
 require python-twisted.inc
 
-RDEPENDS_${PN}-core = "python-core python-zopeinterface python-contextlib"
+RDEPENDS_${PN}-core += "${PYTHON_PN}-contextlib"
meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb +1 -1
index 98016cc..d7533d8 100644
@@ -1,7 +1,7 @@
 inherit pypi setuptools3
 require python-twisted.inc
 
-RDEPENDS_${PN}-core = "python3-core python3-zopeinterface python3-lang"
+RDEPENDS_${PN}-core += "python3-lang"
 
 FILES_${PN}-core_append += " \
   ${libdir}/${PYTHON_DIR}/site-packages/twisted/__pycache__ \
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 2/8 python-twisted: restore RDEPENDS on -news for py2

In reply to Mark Asselstine

Although this plugin has not yet been ported to py3 it is available in py2. The previous commit isn't clear about what is being addressed but I assume it is:

nothing provides python3-twisted-news needed by python3-twisted-17.9.0-r0.corei7_64

For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.

---
 meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6 -0
index 2be1709..7fc8c65 100644
@@ -2,3 +2,9 @@ inherit pypi setuptools
 require python-twisted.inc
 
 RDEPENDS_${PN}-core += "${PYTHON_PN}-contextlib"
+
+# Not yet ported to py3 yet available in py2
+# See src/twisted/python/_setup.py -- notPortedModules
+RDEPENDS_${PN} += "\
+    ${PN}-news \
+    "
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 3/8 python-automat: add an initial recipe for version 0.6.0

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cherry-pick from master
2b6ae2d951df1050bf4fe0734ece750d0fef2faf

 meta-python/recipes-devtools/python/python-automat.inc   | 16 ++++++++++++++++
 .../recipes-devtools/python/python-automat_0.6.0.bb      |  2 ++
 .../recipes-devtools/python/python3-automat_0.6.0.bb     |  4 ++++
 3 files changed, 22 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-automat.inc
 create mode 100644 meta-python/recipes-devtools/python/python-automat_0.6.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-automat_0.6.0.bb
meta-python/recipes-devtools/python/python-automat.inc new file +16 -0
new file mode 100644
index 0000000..1ac5d3b
@@ -0,0 +1,16 @@
+DESCRIPTION = "Self-service finite-state machines for the programmer on the go"
+HOMEPAGE = "https://github.com/glyph/Automat"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ad213bcca81688e94593e5f60c87477"
+
+SRC_URI[md5sum] = "ad7bba58d262d8956d732330cb5ef53d"
+SRC_URI[sha256sum] = "3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8"
+
+PYPI_PACKAGE = "Automat"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\
+   ${PYTHON_PN}-attrs \
+   ${PYTHON_PN}-six \
+"
meta-python/recipes-devtools/python/python-automat_0.6.0.bb new file +2 -0
new file mode 100644
index 0000000..8ac8c9c
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-automat.inc
meta-python/recipes-devtools/python/python3-automat_0.6.0.bb new file +4 -0
new file mode 100644
index 0000000..0469e61
@@ -0,0 +1,4 @@
+inherit setuptools3
+require python-automat.inc
+
+RDEPENDS_${PN} += "${PYTHON_PN}-enum "
Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 4/8 python-constantly: add a recipe for version 15.1.0

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cherry-pick from master
b9e0b2abd1074f846bb3aef3670c0a461f6b1d00

                                                                                                                                                                                                                  meta-python/recipes-devtools/python/python-constantly.inc     | 11 +++++++++++
 .../recipes-devtools/python/python-constantly_15.1.0.bb       |  2 ++
 .../recipes-devtools/python/python3-constantly_15.1.0.bb      |  2 ++
 3 files changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-constantly.inc
 create mode 100644 meta-python/recipes-devtools/python/python-constantly_15.1.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-constantly_15.1.0.bb
meta-python/recipes-devtools/python/python-constantly.inc new file +11 -0
new file mode 100644
index 0000000..8153504
@@ -0,0 +1,11 @@
+DESCRIPTION = "Symbolic constants in Python"
+HOMEPAGE = "https://github.com/twisted/constantly"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e393e4ddd223e3a74982efa784f89fd7"
+
+SRC_URI[md5sum] = "f0762f083d83039758e53f8cf0086eef"
+SRC_URI[sha256sum] = "586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35"
+
+inherit pypi
+
+RDEPENDS_${PN} += "${PYTHON_PN}-json"
meta-python/recipes-devtools/python/python-constantly_15.1.0.bb new file +2 -0
new file mode 100644
index 0000000..29b15eb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-constantly.inc
meta-python/recipes-devtools/python/python3-constantly_15.1.0.bb new file +2 -0
new file mode 100644
index 0000000..3f66754
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-constantly.inc
Signature · 1 line
2.7.4
#5 lore raw

PATCH v2 5/8 python-incremental: add an initial recipe for version 17.5.0

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cerry-pick from master
63791edb3f69269fc6e0b83863e76f6a4a35965c

                                                                                                                                                                                                                  meta-python/recipes-devtools/python/python-incremental.inc | 14 ++++++++++++++
 .../recipes-devtools/python/python-incremental_17.5.0.bb   |  2 ++
 .../recipes-devtools/python/python3-incremental_17.5.0.bb  |  2 ++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-incremental.inc
 create mode 100644 meta-python/recipes-devtools/python/python-incremental_17.5.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-incremental_17.5.0.bb
meta-python/recipes-devtools/python/python-incremental.inc new file +14 -0
new file mode 100644
index 0000000..3675458
@@ -0,0 +1,14 @@
+DESCRIPTION = "Incremental is a small library that versions your Python projects"
+HOMEPAGE = "https://github.com/twisted/incremental"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6ca9b07f08e2c72d48c74d363d1e0e15"
+
+SRC_URI[md5sum] = "602746e0d438e075a5a9e0678140bba2"
+SRC_URI[sha256sum] = "7b751696aaf36eebfab537e458929e194460051ccad279c72b755a167eebd4b3"
+
+inherit pypi
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-twisted \
+    ${PYTHON_PN}-click \
+"
meta-python/recipes-devtools/python/python-incremental_17.5.0.bb new file +2 -0
new file mode 100644
index 0000000..139ac0c
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-incremental.inc
meta-python/recipes-devtools/python/python3-incremental_17.5.0.bb new file +2 -0
new file mode 100644
index 0000000..0f04df4
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-incremental.inc
Signature · 1 line
2.7.4
#6 lore raw

PATCH v2 6/8 python-hyperlink: add a recipe for version 17.3.1

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cherry-pick from master
378b8a6a8aa65fae704e9ceddc3f2e2b07585953

                                                                                                                                                                                                                  .../recipes-devtools/python/python-hyperlink.inc        | 17 +++++++++++++++++
 .../recipes-devtools/python/python-hyperlink_17.3.1.bb  |  2 ++
 .../recipes-devtools/python/python3-hyperlink_17.3.1.bb |  4 ++++
 3 files changed, 23 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-hyperlink.inc
 create mode 100644 meta-python/recipes-devtools/python/python-hyperlink_17.3.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-hyperlink_17.3.1.bb
meta-python/recipes-devtools/python/python-hyperlink.inc new file +17 -0
new file mode 100644
index 0000000..2b5b0a0
@@ -0,0 +1,17 @@
+DESCRIPTION = "A featureful, correct URL for Python"
+HOMEPAGE = "https://github.com/python-hyper/hyperlink"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3893d4ed05dcc823f8ed685a9ea19bcb"
+
+SRC_URI[md5sum] = "eaccb9845b559817e838846669cbc68a"
+SRC_URI[sha256sum] = "bc4ffdbde9bdad204d507bd8f554f16bba82dd356f6130cb16f41422909c33bc"
+
+inherit pypi
+
+RDEPENDS_${PN} += "${PYTHON_PN}-stringold ${PYTHON_PN}-netclient"
+
+PACKAGES =. "${PN}-test "
+
+FILES_${PN}-test += " \
+        ${PYTHON_SITEPACKAGES_DIR}/hyperlinkt/test \
+"
meta-python/recipes-devtools/python/python-hyperlink_17.3.1.bb new file +2 -0
new file mode 100644
index 0000000..59a9a5c
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-hyperlink.inc
meta-python/recipes-devtools/python/python3-hyperlink_17.3.1.bb new file +4 -0
new file mode 100644
index 0000000..3d30af2
@@ -0,0 +1,4 @@
+inherit setuptools3
+require python-hyperlink.inc
+
+RDEPENDS_${PN} += "${PYTHON_PN}-selectors ${PYTHON_PN}-enum"
Signature · 1 line
2.7.4
#7 lore raw

PATCH v2 7/8 python-attrs: add an initial recipe for version 17.2.0

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cherry-pick from master
bd827cb9ff57b8e42768add8e8b206c95cd6aea2

                                                                                                                                                                                                                  meta-python/recipes-devtools/python/python-attrs.inc        | 9 +++++++++
 meta-python/recipes-devtools/python/python-attrs_17.2.0.bb  | 2 ++
 meta-python/recipes-devtools/python/python3-attrs_17.2.0.bb | 2 ++
 3 files changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-attrs.inc
 create mode 100644 meta-python/recipes-devtools/python/python-attrs_17.2.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-attrs_17.2.0.bb
meta-python/recipes-devtools/python/python-attrs.inc new file +9 -0
new file mode 100644
index 0000000..85073e9
@@ -0,0 +1,9 @@
+DESCRIPTION = "Classes Without Boilerplate"
+HOMEPAGE = "http://www.attrs.org/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff"
+
+SRC_URI[md5sum] = "3b7136a570f3ff8a4ff42e7360073f9f"
+SRC_URI[sha256sum] = "5d4d1b99f94d69338f485984127e4473b3ab9e20f43821b0e546cc3b2302fd11"
+
+inherit pypi
meta-python/recipes-devtools/python/python-attrs_17.2.0.bb new file +2 -0
new file mode 100644
index 0000000..a6fdf15
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-attrs.inc
meta-python/recipes-devtools/python/python3-attrs_17.2.0.bb new file +2 -0
new file mode 100644
index 0000000..c34693f
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-attrs.inc
Signature · 1 line
2.7.4
#8 lore raw

PATCH v2 8/8 python-attrs: update to version 17.3.0

In reply to Mark Asselstine

From: Derek Straka <[email protected]>

---

Cherry-pick from master
87618f32736c1ee5f29e7458973b75c5b0b124f7

                                                                                                                                                                                                                  meta-python/recipes-devtools/python/python-attrs.inc                  | 4 ++--
 .../python/{python-attrs_17.2.0.bb => python-attrs_17.3.0.bb}         | 0
 .../python/{python3-attrs_17.2.0.bb => python3-attrs_17.3.0.bb}       | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python-attrs_17.2.0.bb => python-attrs_17.3.0.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-attrs_17.2.0.bb => python3-attrs_17.3.0.bb} (100%)
meta-python/recipes-devtools/python/python-attrs.inc +2 -2
index 85073e9..edde79e 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.attrs.org/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff"
 
-SRC_URI[md5sum] = "3b7136a570f3ff8a4ff42e7360073f9f"
-SRC_URI[sha256sum] = "5d4d1b99f94d69338f485984127e4473b3ab9e20f43821b0e546cc3b2302fd11"
+SRC_URI[md5sum] = "4314f784ca3174d91956da9828248960"
+SRC_URI[sha256sum] = "c78f53e32d7cf36d8597c8a2c7e3c0ad210f97b9509e152e4c37fa80869f823c"
 
 inherit pypi
meta-python/recipes-devtools/python/python-attrs_17.3.0.bb renamed from meta-python/recipes-devtools/python/python-attrs_17.2.0.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-attrs_17.2.0.bb
rename to meta-python/recipes-devtools/python/python-attrs_17.3.0.bb
meta-python/recipes-devtools/python/python3-attrs_17.3.0.bb renamed from meta-python/recipes-devtools/python/python3-attrs_17.2.0.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-attrs_17.2.0.bb
rename to meta-python/recipes-devtools/python/python3-attrs_17.3.0.bb
Signature · 1 line
2.7.4
#9 lore raw
In reply to Mark Asselstine

Sorry, this should be 0/8. And apologies for anyone viewing these on gmail, it seems to have merged things with my V1 series. Patches 1 and 2 from the V1 are the same here if you are trying to decipher the gmail mess.

Mark

Quoted 27 lines · Mark Asselstine

V1 of this series was incomplete. Thus following up with a V2 which includes additional cherry-picks from master. Cherry-pick commit IDs are listed in the temporary comment section of the individual commits.

When building images using rocko that include python-twisted you will get an error:
nothing provides python3-twisted-news needed by python3-twisted-17.9.0-r0.corei7_64

Basically upstream marked the -news plugin as unavailable in py3 (See src/twisted/python/_setup.py -- notPortedModules). This leaves the -news package empty, thus no RPM or similar is built and the dependency can't be satisfied. Backporting patches 1,3-8 fix this issue. Patch 1 is the main fix but also introduces missing dependencies, which are added in patches 3-8. However, the -news package is still available in py2 thus patch 2 re-adds this to the RDEPENDS of ${PN} (the super package which can be used if you don't want to select individual component packages).

Patch 2 should also be applied to master.

Mark
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel