Bug 9564 - yocto-layer script should use argparse instead of optparse library
Summary: yocto-layer script should use argparse instead of optparse library
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.5
Assignee: Daniela Plascencia
QA Contact: oscar lopez arandas
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-02 17:04 UTC by Humberto Ibarra
Modified: 2017-11-03 18:52 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Humberto Ibarra 2016-05-02 17:04:27 UTC
Similar issue to the one described in #8321, only this applies to yocto-layer instead of yocto-bsp script.

optparse library is deprecated since 2.7, scripts should use argparse instead.
Comment 1 Leonardo Sandoval Gonzalez 2016-06-16 16:52:46 UTC
Humberto, optparse in python3 is still available so priority is a bit lower on this.
Comment 2 Leonardo Sandoval Gonzalez 2016-06-21 20:35:51 UTC
some related info on this transition https://docs.python.org/2/library/argparse.html#upgrading-optparse-code
Comment 3 Leonardo Sandoval Gonzalez 2016-06-23 19:54:32 UTC
My fault, moving it to M1 again. CCB should agree on any milestone movement.
Comment 4 Leonardo Sandoval Gonzalez 2017-01-25 20:29:22 UTC
This is not a priority right now so moving it to next release.
Comment 5 Daniela Plascencia 2017-11-03 18:52:08 UTC
The yocto-layer script, along with yocto-bsp and yocto-kernel, will be removed from public repositories soon as they are no longer maintained. The request was sent to the mailing list [1], meaning this issue is obsolete.

[1] https://lists.yoctoproject.org/pipermail/poky/2017-October/011135.html