Yocto Project Discussions
 help / color / mirror / Atom feed
From: Tim Orling <ticotimo@gmail.com>
To: yocto@lists.yoctoproject.org
Subject: [layerindex-web][PATCH 0/5] Add support for classes-global and classes-recipe
Date: Mon, 22 Jan 2024 20:15:17 -0800	[thread overview]
Message-ID: <cover.1705982792.git.tim.orling@konsulko.com> (raw)

Previously, only the 'classes' path was searched, but we should also be searching
'classes-global' and 'classes-recipe' since:
  bitbake f33ce7e7
    'BBHandler/cooker: Implement recipe and global classes'
and
  oe-core f5c12800
    'classes: Update classes to match new bitbake class scope functionality'

This requires changes not only in models.py, but also in recipeparse.py, update_layer.py
and views.py.

While we are at it, add "Global" and "Recipe" 'badges' next to the class names in the
appropriate class view templates.

[YOCTO #15238]

The following changes since commit 83378f2f9c881505027220a98514bcb933d82682:

  global: deprecated pkg_resources parse_version (2024-01-22 16:08:37 -0800)

are available in the Git repository at:

  https://github.com/moto-timo/layerindex-web timo/classes-global-recipe
  https://github.com/moto-timo/layerindex-web/tree/timo/classes-global-recipe

Tim Orling (5):
  layerindex/models: add BBClassRecipe BBClassGlobal
  layerindex/recipeparse.py: extend bbclass regex
  layerindex/views: add classes-recipe,-global
  templates: add bbclasstype badge
  layerindex/update_layer.py: enable classes-global,-recipe

 ...obal_bbclassrecipe_bbclass_bbclass_type.py | 41 ++++++++++++++++++
 layerindex/models.py                          | 43 ++++++++++++++++++-
 layerindex/recipeparse.py                     |  4 +-
 layerindex/update_layer.py                    | 19 ++++++--
 layerindex/views.py                           |  3 +-
 templates/layerindex/classes.html             |  5 ++-
 templates/layerindex/detail.html              |  5 ++-
 7 files changed, 111 insertions(+), 9 deletions(-)
 create mode 100644 layerindex/migrations/0048_bbclassglobal_bbclassrecipe_bbclass_bbclass_type.py

-- 
2.34.1



             reply	other threads:[~2024-01-23  4:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-23  4:15 Tim Orling [this message]
2024-01-23  4:15 ` [layerindex-web][PATCH 1/5] layerindex/models: add BBClassRecipe BBClassGlobal Tim Orling
2024-01-23  4:15 ` [layerindex-web][PATCH 2/5] layerindex/recipeparse.py: extend bbclass regex Tim Orling
2024-01-23  4:15 ` [layerindex-web][PATCH 3/5] layerindex/views: add classes-recipe,-global Tim Orling
2024-01-23  4:15 ` [layerindex-web][PATCH 4/5] templates: add bbclasstype badge Tim Orling
2024-01-23  4:15 ` [layerindex-web][PATCH 5/5] layerindex/update_layer.py: enable classes-global,-recipe Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1705982792.git.tim.orling@konsulko.com \
    --to=ticotimo@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox