scripts: add pkgdataui
PATCH 1/1 scripts: add pkgdataui
pkgdataui is a Python 3/GObject Introspection/GTK+ 3 tool to browse the pkgdata database at your leisure. By being graphical it is easier to explore and can follow links between packages.
This is very much a work in progress, so be gentle and patches are welcome.
--- scripts/pkgdataui.glade | 335 ++++++++++++++++++++++++++++++++++++++++ scripts/pkgdataui.py | 241 +++++++++++++++++++++++++++++ 2 files changed, 576 insertions(+) create mode 100644 scripts/pkgdataui.glade create mode 100755 scripts/pkgdataui.py
scripts/pkgdataui.glade new file +335 -0
@@ -0,0 +1,335 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.18.3 --> +<interface> + <requires lib="gtk+" version="3.12"/> + <object class="GtkListStore" id="file_store"> + <columns> + <!-- column-name Filename --> + <column type="gchararray"/> + <!-- column-name Size --> + <column type="glong"/> + </columns> + </object> + <object class="GtkListStore" id="package_store"> + <columns> + <!-- column-name Package --> + <column type="gchararray"/> + <!-- column-name Size --> + <column type="glong"/> + </columns> + </object> + <object class="GtkListStore" id="pkgdata_store"> + <columns> + <!-- column-name Name --> + <column type="gchararray"/> + <!-- column-name Path --> + <column type="gchararray"/> + </columns> + </object> + <object class="GtkListStore" id="recipe_store"> + <columns> + <!-- column-name Recipe --> + <column type="gchararray"/> + </columns> + </object> + <object class="GtkWindow" id="window"> + <property name="can_focus">False</property> + <property name="title" translatable="yes">Package Data Browser</property> + <property name="icon_name">accessories-dictionary</property> + <property name="has_resize_grip">True</property> + <child> + <object class="GtkBox" id="box1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_left">4</property> + <property name="margin_right">4</property> + <property name="margin_top">4</property> + <property name="margin_bottom">4</property> + <property name="orientation">vertical</property> + <property name="spacing">4</property> + <child> + <object class="GtkComboBox" id="pkgdata_combo"> + <property name="can_focus">False</property> + <property name="model">pkgdata_store</property> + <property name="id_column">1</property> + <child> + <object class="GtkCellRendererText" id="cellrenderertext5"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkPaned" id="paned1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="position">200</property> + <property name="position_set">True</property> + <child> + <object class="GtkScrolledWindow" id="scrolledwindow1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="shadow_type">in</property> + <property name="min_content_width">100</property> + <child> + <object class="GtkTreeView" id="recipe_view"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="model">recipe_store</property> + <property name="search_column">0</property> + <property name="fixed_height_mode">True</property> + <property name="show_expanders">False</property> + <child internal-child="selection"> + <object class="GtkTreeSelection" id="treeview-selection1"/> + </child> + <child> + <object class="GtkTreeViewColumn" id="treeviewcolumn1"> + <property name="sizing">fixed</property> + <property name="title" translatable="yes">Recipe</property> + <child> + <object class="GtkCellRendererText" id="cellrenderertext1"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="resize">False</property> + <property name="shrink">True</property> + </packing> + </child> + <child> + <object class="GtkPaned" id="paned2"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="position">200</property> + <property name="position_set">True</property> + <child> + <object class="GtkScrolledWindow" id="scrolledwindow2"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="shadow_type">in</property> + <property name="min_content_width">100</property> + <child> + <object class="GtkTreeView" id="package_view"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="model">package_store</property> + <property name="search_column">0</property> + <property name="show_expanders">False</property> + <child internal-child="selection"> + <object class="GtkTreeSelection" id="treeview-selection2"/> + </child> + <child> + <object class="GtkTreeViewColumn" id="package_name_column"> + <property name="resizable">True</property> + <property name="sizing">autosize</property> + <property name="title" translatable="yes">Package</property> + <property name="sort_column_id">0</property> + <child> + <object class="GtkCellRendererText" id="cellrenderertext2"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + </child> + <child> + <object class="GtkTreeViewColumn" id="package_size_column"> + <property name="resizable">True</property> + <property name="sizing">autosize</property> + <property name="title" translatable="yes">Size</property> + <property name="sort_column_id">1</property> + <child> + <object class="GtkCellRendererText" id="package_size_cell"/> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="resize">False</property> + <property name="shrink">True</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_left">4</property> + <property name="orientation">vertical</property> + <property name="spacing">4</property> + <child> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">label</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="depends_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">depends_label</property> + <property name="wrap">True</property> + <property name="track_visited_links">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="recommends_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">recs_label</property> + <property name="wrap">True</property> + <property name="track_visited_links">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="suggests_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">suggests_label</property> + <property name="wrap">True</property> + <property name="track_visited_links">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="provides_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">provides_label</property> + <property name="wrap">True</property> + <property name="track_visited_links">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">4</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="files_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">files_label</property> + <property name="ellipsize">end</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">5</property> + </packing> + </child> + <child> + <object class="GtkScrolledWindow" id="files_scrollview"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkTreeView" id="files_view"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="model">file_store</property> + <property name="rules_hint">True</property> + <property name="search_column">0</property> + <property name="show_expanders">False</property> + <child internal-child="selection"> + <object class="GtkTreeSelection" id="treeview-selection3"/> + </child> + <child> + <object class="GtkTreeViewColumn" id="file_name_column"> + <property name="title" translatable="yes">Name</property> + <property name="sort_indicator">True</property> + <property name="sort_column_id">0</property> + <child> + <object class="GtkCellRendererText" id="cellrenderertext3"> + <property name="background_rgba">rgba(0,0,0,0)</property> + </object> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + </child> + <child> + <object class="GtkTreeViewColumn" id="treeviewcolumn4"> + <property name="title" translatable="yes">Size</property> + <property name="sort_indicator">True</property> + <property name="sort_column_id">1</property> + <child> + <object class="GtkCellRendererText" id="cellrenderertext4"/> + <attributes> + <attribute name="text">1</attribute> + </attributes> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">6</property> + </packing> + </child> + </object> + <packing> + <property name="resize">True</property> + <property name="shrink">True</property> + </packing> + </child> + </object> + <packing> + <property name="resize">True</property> + <property name="shrink">True</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> +</interface>
scripts/pkgdataui.py new file +241 -0
241 lines not on this page · raw message
Signature · 1 line
2.20.1
✗ patchtest: failure for scripts: add pkgdataui (rev2)
== Series Details ==
Series: scripts: add pkgdataui (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/6752/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Errors in your Python code were encountered [test_pylint]
Suggested fix Correct the lines introduced by your patch
Output Please, fix the listed issues:
scripts/pkgdataui.py does not exist
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
Quoted 8 lines
-----Original Message-----
From: [email protected] <openembedded-core- [email protected]> On Behalf Of Ross Burton
Sent: den 10 december 2019 13:08
To: [email protected]
Subject: [OE-core] [PATCH] scripts: add pkgdatauipkgdataui is a Python 3/GObject Introspection/GTK+ 3 tool to browse the pkgdata
Would it make sense to rename it to oe-pkgdata-browser (based on the title it gives itself, and the existing oe-pkgadata-util tool)?
Quoted 4 lines
database at your leisure. By being graphical it is easier to explore and can follow links between packages.
This is very much a work in progress, so be gentle and patches are welcome.
I get the following errors when I run it (though the GUI comes up and seems to work):
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
Quoted 3 lines
Signed-off-by Ross Burton <[email protected]>--- scripts/pkgdataui.glade | 335 ++++++++++++++++++++++++++++++++++++++++
Can the .glade file be put somewhere else than in the scripts directory? Because as it is now, it shows up when using tab completion (with zsh).
Quoted 4 lines
scripts/pkgdataui.py | 241 +++++++++++++++++++++++++++++ 2 files changed, 576 insertions(+) create mode 100644 scripts/pkgdataui.glade create mode 100755 scripts/pkgdataui.py
//Peter
Quoted 4 lines · Peter Kjellerstedt
Quoted 1 line
pkgdataui is a Python 3/GObject Introspection/GTK+ 3 tool to browse the pkgdata
Would it make sense to rename it to oe-pkgdata-browser (based on the title it gives itself, and the existing oe-pkgadata-util tool)?
Makes sense.
Quoted 5 lines
I get the following errors when I run it (though the GUI comes up and seems to work):
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
That's your host system GTK+/Mesa, not pkgdataui.
Quoted 4 lines
Quoted 1 line
scripts/pkgdataui.glade | 335 ++++++++++++++++++++++++++++++++++++++++Can the .glade file be put somewhere else than in the scripts directory? Because as it is now, it shows up when using tab completion (with zsh).
Why is zsh showing it? It's not executable, and a glade file shouldn't be ran by anything.
Ross
Quoted 7 lines
-----Original Message-----
From: Ross Burton <[email protected]>
Sent: den 2 januari 2020 18:16
To: Peter Kjellerstedt <[email protected]>; openembedded- [email protected]
Subject: Re: [OE-core] [PATCH] scripts: add pkgdataui
Quoted 7 lines
Quoted 4 lines · Peter Kjellerstedt
Quoted 1 line
pkgdataui is a Python 3/GObject Introspection/GTK+ 3 tool to browse the pkgdata
Would it make sense to rename it to oe-pkgdata-browser (based on the title it gives itself, and the existing oe-pkgadata-util tool)?
Makes sense.
I have a patch set that changes this, and makes some other improvements. I'll send it next.
Quoted 7 lines
Quoted 5 lines
I get the following errors when I run it (though the GUI comes up and seems to work):
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
That's your host system GTK+/Mesa, not pkgdataui.
Hmm, ok. It seems to run without those errors now that I tried again, so I guess it was just something temporary.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
scripts/pkgdataui.glade | 335++++++++++++++++++++++++++++++++++++++++
Quoted 3 lines
Can the .glade file be put somewhere else than in the scripts directory? Because as it is now, it shows up when using tab completion (with zsh).
Why is zsh showing it? It's not executable, and a glade file shouldn't be ran by anything.
I have no idea. Anyway, if the script is renamed to a name without the .py suffix, it shouldn't matter anymore since the real script will then be shown before the .glade file.
Quoted 1 line
Ross
//Peter