Skip to content

Make plugin_template command uv compatible#1005

Merged
mdellweg merged 6 commits intopulp:mainfrom
mdellweg:cleanup
Feb 16, 2026
Merged

Make plugin_template command uv compatible#1005
mdellweg merged 6 commits intopulp:mainfrom
mdellweg:cleanup

Conversation

@mdellweg
Copy link
Member

@mdellweg mdellweg commented Feb 9, 2026

No description provided.

@mdellweg mdellweg force-pushed the cleanup branch 3 times, most recently from ea68805 to e09d695 Compare February 10, 2026 13:07
@mdellweg mdellweg marked this pull request as ready for review February 10, 2026 13:15
Copy link
Contributor

@gerrod3 gerrod3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reasoning to move to jamldump?


# generated with plugin_template
#
# After editing this file please always reapply the plugin template befor committing any changes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*before


if "github" in sections:
migrate_dummy(plugin_root_dir)
remove_deprecated_files(plugin_root_dir, sections)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're removing files now? That's cool. Edit NVM we already were, now the function is properly named.

plugin-template Outdated
config (dict): a dictionary containing a default template configuration for the plugin
"""
if plugin_app_label is None:
plugin_app_label = plugin_app_label or plugin_name.removeprefix("pulp").replace(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the or statement needs to be removed or you remove the previous if statement.

"""
session = requests_cache.CachedSession(".requests_cache", expire_after=timedelta(days=1))
session = requests_cache.CachedSession(
Path(__file__).parent / ".requests_cache", expire_after=timedelta(days=1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put it in the parent directory?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parent of file is the directory so this will land exactly here.

@mdellweg
Copy link
Member Author

jamldump is writing yaml in the style that we have (mostly) adopted in the other yml files here.
Specifically it quotes strings unconditionally to avoid most of the implicit type conversion issues.

@mdellweg mdellweg merged commit c371c4e into pulp:main Feb 16, 2026
11 checks passed
@mdellweg mdellweg deleted the cleanup branch February 16, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants