-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump the pulp-cli requirement #95
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
git config user.email [email protected] | ||
- name: "Collect changes" | ||
run: | | ||
pip install GitPython packaging toml | ||
pip install GitPython packaging | ||
python3 .ci/scripts/collect_changes.py | ||
- name: "Create Pull Request" | ||
uses: "peter-evans/create-pull-request@v6" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
git config user.email [email protected] | ||
- name: "Install python dependencies" | ||
run: | | ||
pip install bump2version | ||
pip install bump-my-version~=0.20.0 | ||
- name: "Create Release Branch" | ||
run: | | ||
.ci/scripts/create_release_branch.sh | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
|
||
{# TOWNCRIER TEMPLATE #} | ||
{% for section, _ in sections.items() %} | ||
{% if section %}### {{section}} | ||
{%- set section_slug = "-" + section|replace(" ", "-")|replace("_", "-")|lower %} | ||
{% if section %}### {{section}} {: #{{versiondata.version}}{{section_slug}} } | ||
|
||
{% else %} | ||
{%- set section_slug = "" %} | ||
{% endif %} | ||
|
||
{% if sections[section] %} | ||
{% for category, val in definitions.items() if category in sections[section]%} | ||
#### {{ definitions[category]['name'] }} | ||
#### {{ definitions[category]['name'] }} {: #{{versiondata.version}}{{section_slug}}-{{category}} } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While being a good change, this may or may not lead to a one time hickup when collecting changelogs from previous branches. |
||
|
||
{% if definitions[category]['showcontent'] %} | ||
{% for text, values in sections[section][category].items() %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pulp-cli==0.20.0 | ||
pulp-glue==0.20.0 | ||
pulp-cli==0.23.1 | ||
pulp-glue==0.23.1 | ||
click==8.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.0.dev" | ||
__version__ = "0.4.0.dev" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,43 +9,50 @@ | |
PulpRemoteContext, | ||
PulpRepositoryContext, | ||
PulpRepositoryVersionContext, | ||
registered_repository_contexts, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
) | ||
|
||
|
||
class PulpOstreeCommitContentContext(PulpContentContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "commit" | ||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
ENTITY = _("commit content") | ||
ENTITIES = _("commit content") | ||
HREF = "ostree_ostree_commit_href" | ||
ID_PREFIX = "content_ostree_commits" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
Comment on lines
-21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
|
||
class PulpOstreeRefContentContext(PulpContentContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "ref" | ||
ENTITY = _("ref content") | ||
ENTITIES = _("ref content") | ||
HREF = "ostree_ostree_ref_href" | ||
ID_PREFIX = "content_ostree_refs" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
|
||
|
||
class PulpOstreeConfigContentContext(PulpContentContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "config" | ||
ENTITY = _("config content") | ||
ENTITIES = _("config content") | ||
HREF = "ostree_ostree_config_href" | ||
ID_PREFIX = "content_ostree_configs" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
|
||
|
||
class PulpOstreeDistributionContext(PulpEntityContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "ostree" | ||
ENTITY = _("ostree distribution") | ||
ENTITIES = _("ostree distributions") | ||
HREF = "ostree_ostree_distribution_href" | ||
ID_PREFIX = "distributions_ostree_ostree" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
|
||
def preprocess_body(self, body: EntityDefinition) -> EntityDefinition: | ||
body = super().preprocess_body(body) | ||
def preprocess_entity(self, body: EntityDefinition, partial: bool = False) -> EntityDefinition: | ||
body = super().preprocess_entity(body, partial) | ||
Comment on lines
+54
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
version = body.pop("version", None) | ||
if version is not None: | ||
repository_href = body.pop("repository") | ||
|
@@ -54,29 +61,35 @@ def preprocess_body(self, body: EntityDefinition) -> EntityDefinition: | |
|
||
|
||
class PulpOstreeRemoteContext(PulpRemoteContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "ostree" | ||
ENTITY = _("ostree remote") | ||
ENTITIES = _("ostree remotes") | ||
HREF = "ostree_ostree_remote_href" | ||
ID_PREFIX = "remotes_ostree_ostree" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
|
||
|
||
class PulpOstreeRepositoryVersionContext(PulpRepositoryVersionContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "ostree" | ||
HREF = "ostree_ostree_repository_version_href" | ||
ID_PREFIX = "repositories_ostree_ostree_versions" | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
|
||
|
||
class PulpOstreeRepositoryContext(PulpRepositoryContext): | ||
PLUGIN = "ostree" | ||
RESOURCE_TYPE = "ostree" | ||
HREF = "ostree_ostree_repository_href" | ||
ID_PREFIX = "repositories_ostree_ostree" | ||
IMPORT_ALL_ID: ClassVar[str] = "repositories_ostree_ostree_import_all" | ||
IMPORT_COMMITS_ID: ClassVar[str] = "repositories_ostree_ostree_import_commits" | ||
VERSION_CONTEXT = PulpOstreeRepositoryVersionContext | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", min="2.0.0")] | ||
NEEDS_PLUGINS = [PluginRequirement("ostree", specifier=">=2.0.0")] | ||
CAPABILITIES = { | ||
"sync": [PluginRequirement("ostree")], | ||
"import_all": [PluginRequirement("ostree", min="2.0.0")], | ||
"import_all": [PluginRequirement("ostree", specifier=">=2.0.0")], | ||
"import_commits": [PluginRequirement("ostree")], | ||
} | ||
|
||
|
@@ -110,6 +123,3 @@ def import_commits( | |
parameters={self.HREF: href}, | ||
body=body, | ||
) | ||
|
||
|
||
registered_repository_contexts["ostree:ostree"] = PulpOstreeRepositoryContext | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ classifiers = [ | |
"Typing :: Typed", | ||
] | ||
dependencies = [ | ||
"pulp-glue>=0.20.0,<0.26", | ||
"pulp-glue>=0.23.1,<0.26", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a breaking change. Make sure you do not backport, but release a new y with this. |
||
] | ||
|
||
[project.urls] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
from typing import Any | ||
|
||
import click | ||
from pulp_glue.common.i18n import get_translation | ||
from pulpcore.cli.common.generic import pulp_group | ||
|
||
from pulpcore.cli.ostree.distribution import distribution | ||
from pulpcore.cli.ostree.remote import remote | ||
from pulpcore.cli.ostree.repository import repository | ||
|
||
translation = get_translation(__package__) | ||
_ = translation.gettext | ||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. technically not needed, but I'm looking forward to the slovakian translation files. ;) |
||
|
||
__version__ = "0.4.0.dev" | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right dictionaries sorted by keys for stability...
(should be the same as before otherwise.)