python-twisted: fixup news plugin RDEPENDS
cover python-twisted: fixup news plugin RDEPENDS
The following two changes fix builds of python[3]-twisted. Patch 1/2 is a backport of e410b5c54373ce9539f2df9840e3d987f319ee6c from master. This patch addresses a failure which presents as:
nothing provides python3-twisted-news needed by python3-twisted-17.9.0-r0.corei7_64
This is caused by python3-twisted-news producing no installable package since it is empty. It is empty because upstream implemented a notPortedModules API which excludes part of the package which are yet to be ported to py3. Unfortunately the change in 1/2 breaks the py2 case. Thus the 2/2. Patch 2/2 should be applied to master as well.
Regards,
Mark
PATCH 1/2 python-twisted: clean-up the dependencies
From: Derek Straka <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
PATCH 2/2 python-twisted: restore RDEPENDS on -news for py2
In reply to Mark AsselstineAlthough 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
@@ -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
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
Quoted 39 lines · 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_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- 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
-1@@ -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 \ + " --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
Quoted 50 lines · Derek Straka
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
Quoted 33 lines · 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_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- 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
-1@@ -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 \ + " --2.7.4
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
Sure. I wasn't clear and even then I misread the 1/2 patch and thought I removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <[email protected]> wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
Quoted 12 lines · Derek Straka
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <[email protected]
Quoted 5 lines · wrote:
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.
Quoted 39 lines
Quoted 28 lines
corei7_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- 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
-1@@ -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 \ + " --2.7.4
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
Quoted 72 lines · Derek Straka
Sure. I wasn't clear and even then I misread the 1/2 patch and thought I removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <[email protected]> wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
Quoted 12 lines · Derek Straka
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <[email protected]
Quoted 5 lines · wrote:
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.
Quoted 28 lines
Quoted 28 lines
corei7_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- 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
-1@@ -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 \ + " --2.7.4
Quoted 11 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
Yeah. Agreed. These commits are me cleaning up the RDEPENDS to work with minimal python installs. Meta-python has been pretty bad about setting the dependencies. I just missed the news package. Thanks.
Quoted 82 lines · Mark Asselstine
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
Quoted 4 lines · Derek Straka
Sure. I wasn't clear and even then I misread the 1/2 patch and thought I removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <
Quoted 8 lines
wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Quoted 7 lines
Mark
Quoted 4 lines · Derek Straka
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <
Quoted 17 lines
Quoted 8 lines
Quoted 5 lines · wrote:
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.
Quoted 8 lines
Quoted 8 lines
corei7_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 6 insertions(+)(quoted diff) +0
-0twisted_17.9.0.bb
Quoted 33 lines
Quoted 17 lines
Quoted 17 lines
b/meta-python/recipes-devtools/python/python-twisted_17.9.0.bb index 2be1709..7fc8c65 100644
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6
-1@@ -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 \ + " --2.7.4
Quoted 11 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
I work with a lot of python recipes in meta-cloud-services and especially the openstack packages have a large number of dependencies. Find attached a basic script I have written to help parse requirements.txt files. It might help you out with this work.
Anyway, I will send out a V2 with the additional cherrypicks.
Quoted 89 lines · Derek Straka
Yeah. Agreed. These commits are me cleaning up the RDEPENDS to work with minimal python installs. Meta-python has been pretty bad about setting the dependencies. I just missed the news package. Thanks.
Quoted 40 lines · Mark Asselstine
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
Quoted 4 lines · Derek Straka
Sure. I wasn't clear and even then I misread the 1/2 patch and thought I removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <
Quoted 8 lines
wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Quoted 7 lines
Mark
Quoted 4 lines · Derek Straka
Is it actually required for core? I thought I went through and verified that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <
Quoted 14 lines
Quoted 8 lines
Quoted 5 lines · wrote:
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.
Quoted 5 lines
Quoted 5 lines
corei7_64For py2 this package is valid and so we should maintain the RDEPENDS, restore this RDEPENDS for py2.
Quoted 42 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signed-off-by Mark Asselstine <[email protected]>--- meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 6 insertions(+)(quoted diff) +0
-0twisted_17.9.0.bb
Quoted 33 lines
Quoted 17 lines
Quoted 17 lines
b/meta-python/recipes-devtools/python/python-twisted_17.9.0.bb index 2be1709..7fc8c65 100644
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6
-1@@ -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 \ + " --2.7.4
Quoted 11 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#!/usr/bin/python
import os
import re
import sys
import operator
import collections
from distutils.version import LooseVersion, StrictVersion
requires = sys.argv[1]
ops = {">=": operator.ge,
"<=": operator.le,
"==": operator.eq,
"!=": operator.ne,
"<": operator.lt,
">": operator.gt,
}def parse_version_info(line):
# remove any comment from the end of the line
stripped = line.split('#')[0] # get package name
pkg = re.split('>|<|=|!', stripped)[0].lower().strip()
if not re.match("^python-", pkg):
pkg = "python-%s" % pkg # get version string
raw_pkg = re.split('>|<|=|!', stripped)[0]
vstr = stripped.split(raw_pkg)[1:][0].strip()return (pkg,vstr)
def print_rdepends(deps):
print("RDEPENDS_${PN} += \" \\")
for dep in deps:
print(" %s \\" % dep)
print(" \"")def check_rdepends_versions(deps):
for dep in deps:
if not os.path.exists("tmp/work/core2-64-poky-linux/%s" % dep):
print("Unable to find '%s'" % dep)
return
found_ver = os.listdir("tmp/work/core2-64-poky-linux/%s/" % dep)[0] # Drop the PR
found_ver = found_ver.split('-')[:-1][0]
# Drop the '+git${SRCPV}'
found_ver = re.compile("\+git.*").split(found_ver)[0]
check = "OK";
req_ver = deps[dep]
for condition in req_ver.split(','):
condition = condition.strip()
m = re.match('^(>=|<=|!=|==|<|>)', condition)
if m:
operation = condition[:m.end()]
version = condition[m.end():].strip()
if not ops[operation](LooseVersion(found_ver) ,LooseVersion(version)):
check = "FAILED"
break
else:
check = "UNKNOWN"
break
print("%s %s <-> %s %s" % (dep, found_ver, req_ver, check))
def pkg_mapping(pkg):
mappings = {
'python-msgpack-python':'python-msgpack',
}
if pkg in mappings:
return mappings[pkg]
else:
return pkgdependencies = collections.OrderedDict()
with open(requires, 'r') as fin:
for line in fin:
if not line.startswith('#') and not line.strip() == "":
(pkg, vstr) = parse_version_info(line) pkg = pkg_mapping(pkg)
dependencies[pkg] = vstr
print_rdepends(dependencies) check_rdepends_versions(dependencies)
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
That would be useful. I'm working through automated tests that build every package into a minimal rootfs and then attempt to perform all of imports to make sure everything is available for use. I'm hoping to roll that out in the next couple of weeks. Thanks for catching this regression.
Quoted 113 lines · Mark Asselstine
I work with a lot of python recipes in meta-cloud-services and especially the openstack packages have a large number of dependencies. Find attached a basic script I have written to help parse requirements.txt files. It might help you out with this work.
Anyway, I will send out a V2 with the additional cherrypicks.
Quoted 1 line · Derek Straka
Yeah. Agreed. These commits are me cleaning up the RDEPENDS to work
with
Quoted 1 line
minimal python installs. Meta-python has been pretty bad about setting
the
Quoted 3 lines
dependencies. I just missed the news package. Thanks.
On Dec 15, 2017 2:22 PM, "Mark Asselstine" <
Quoted 7 lines
Quoted 5 lines · wrote:
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
On Fri, Dec 15, 2017 at 2:19 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Sure. I wasn't clear and even then I misread the 1/2 patch and
thought I
Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <
Quoted 11 lines
wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
On Fri, Dec 15, 2017 at 1:32 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Is it actually required for core? I thought I went through and
verified
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · wrote:
Although this plugin has not yet been ported to py3 it is available
in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
py2. The previous commit isn't clear about what is being addressed
but
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
I assume it is:
nothing provides python3-twisted-news needed by
python3-twisted-17.9.0-r0.
Quoted 3 lines
Quoted 3 lines
corei7_64For py2 this package is valid and so we should maintain the
RDEPENDS,
Quoted 49 lines
Quoted 44 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>--- meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 6 insertions(+)(quoted diff) +0
-0twisted_17.9.0.bb
Quoted 33 lines
Quoted 17 lines
Quoted 17 lines
b/meta-python/recipes-devtools/python/python-twisted_17.9.0.bb index 2be1709..7fc8c65 100644
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6
-1@@ -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 \ + " --2.7.4
Quoted 11 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
Quoted 9 lines · Derek Straka
That would be useful. I'm working through automated tests that build every package into a minimal rootfs and then attempt to perform all of imports to make sure everything is available for use. I'm hoping to roll that out in the next couple of weeks. Thanks for catching this regression.
The same type of testing is needed in OE-core. One would hope not, but then there is reality.
Quoted 121 lines
Quoted 113 lines · Mark Asselstine
I work with a lot of python recipes in meta-cloud-services and especially the openstack packages have a large number of dependencies. Find attached a basic script I have written to help parse requirements.txt files. It might help you out with this work.
Anyway, I will send out a V2 with the additional cherrypicks.
Quoted 2 lines · Derek Straka
Yeah. Agreed. These commits are me cleaning up the RDEPENDS to work
with
Quoted 1 line
minimal python installs. Meta-python has been pretty bad about setting
the
Quoted 3 lines
dependencies. I just missed the news package. Thanks.
On Dec 15, 2017 2:22 PM, "Mark Asselstine" <
Quoted 7 lines
Quoted 5 lines · wrote:
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
On Fri, Dec 15, 2017 at 2:19 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Sure. I wasn't clear and even then I misread the 1/2 patch and
thought I
Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <
Quoted 11 lines
wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
On Fri, Dec 15, 2017 at 1:32 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Is it actually required for core? I thought I went through and
verified
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · wrote:
Although this plugin has not yet been ported to py3 it is available
in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
py2. The previous commit isn't clear about what is being addressed
but
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
I assume it is:
nothing provides python3-twisted-news needed by
python3-twisted-17.9.0-r0.
Quoted 3 lines
Quoted 3 lines
corei7_64For py2 this package is valid and so we should maintain the
RDEPENDS,
Quoted 49 lines
Quoted 44 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>---
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 6 insertions(+)(quoted diff) +0
-0twisted_17.9.0.bb
Quoted 33 lines
Quoted 17 lines
Quoted 17 lines
b/meta-python/recipes-devtools/python/python-twisted_17.9.0.bb index 2be1709..7fc8c65 100644
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +0
-0@@ -2,3 +2,9 @@ inherit pypi setuptoolsrequire python-twisted.inc
RDEPENDS_${PN}-core += "${PYTHON_PN}-contextlib"
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6
-1+ +# Not yet ported to py3 yet available in py2 +# See src/twisted/python/_setup.py -- notPortedModules +RDEPENDS_${PN} += "\ + ${PN}-news \ + " --2.7.4
Quoted 11 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-python][rocko][PATCH 2/2] python-twisted: restore RDEPENDS on -news for py2
Quoted 11 lines · EST Tim Orling
Quoted 8 lines · Derek Straka
That would be useful. I'm working through automated tests that build every
package into a minimal rootfs and then attempt to perform all of imports to
make sure everything is available for use. I'm hoping to roll that out in the next couple of weeks. Thanks for catching this regression.The same type of testing is needed in OE-core. One would hope not, but then there is reality.
Tim,
Not sure if you are following the discussion on my other patch series (python- pyroute2). But yes, if there is an effort to force python recipes to list stdlibs this is the only valid approach as the python "vehicles" (setup.py, requirements.txt...) don't _ever_ list stdlibs. Even with an automated approach I am not enthusiastic about forcing the listing of required stdlibs for the sake of a few MB of space.
Mark
Quoted 141 lines
Quoted 141 lines
On Dec 15, 2017 2:35 PM, "Mark Asselstine" <[email protected]>
Quoted 138 lines · wrote:
I work with a lot of python recipes in meta-cloud-services and especially the openstack packages have a large number of dependencies. Find attached a basic script I have written to help parse requirements.txt files. It might help you out with this work.
Anyway, I will send out a V2 with the additional cherrypicks.
Quoted 2 lines · Derek Straka
Yeah. Agreed. These commits are me cleaning up the RDEPENDS to work
with
Quoted 1 line
minimal python installs. Meta-python has been pretty bad about setting
the
Quoted 3 lines
dependencies. I just missed the news package. Thanks.
On Dec 15, 2017 2:22 PM, "Mark Asselstine" <
Quoted 6 lines
Quoted 5 lines · wrote:
No problem. Unfortunately your commit log was thin on information so I had to make some assumptions as to what you were doing in the commit. I could have easily misinterpreted.
On Fri, Dec 15, 2017 at 2:19 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Sure. I wasn't clear and even then I misread the 1/2 patch and
thought I
Quoted 17 lines
Quoted 17 lines
Quoted 3 lines
removed news from core and not the base package RDEPENDS.
On Dec 15, 2017 2:08 PM, "Mark Asselstine" <
Quoted 11 lines
wrote:
The RDEPENDS are not for core, these are RDEPENDS_${PN}, ie. if you don't know what parts you want you install ${PN} and get everything. We can straighten this up though if my thoughts are incorrect. I have to send a V2 anyway as I was hasty and missed the cherrypick of a bunch of dependencies you added for automat and others.
Mark
On Fri, Dec 15, 2017 at 1:32 PM, Derek Straka <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Is it actually required for core? I thought I went through and
verified
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
that news was a stand alone module.
On Dec 15, 2017 12:46 PM, "Mark Asselstine" <
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
Although this plugin has not yet been ported to py3 it is available
in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
py2. The previous commit isn't clear about what is being addressed
but
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
I assume it is:
nothing provides python3-twisted-news needed by
python3-twisted-17.9.0-r0.
Quoted 3 lines
Quoted 3 lines
corei7_64For py2 this package is valid and so we should maintain the
RDEPENDS,
Quoted 54 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
restore this RDEPENDS for py2.
Signed-off-by Mark Asselstine <[email protected]>---
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb | 6Quoted 42 lines
++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 6 insertions(+)(quoted diff) +0
-0twisted_17.9.0.bb
Quoted 34 lines
Quoted 17 lines
Quoted 17 lines
b/meta-python/recipes-devtools/python/python-twisted_17.9.0.bb index 2be1709..7fc8c65 100644
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +0
-0@@ -2,3 +2,9 @@ inherit pypi setuptoolsrequire python-twisted.inc
RDEPENDS_${PN}-core += "${PYTHON_PN}-contextlib"
meta-python/recipes-devtools/python/python-twisted_17.9.0.bb +6
-1+ +# Not yet ported to py3 yet available in py2 +# See src/twisted/python/_setup.py -- notPortedModules +RDEPENDS_${PN} += "\ + ${PN}-news \ + " --2.7.4
Quoted 11 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel