From d54aa7ac9b75110afb9b2f55dbb692ab37fe25fe Mon Sep 17 00:00:00 2001 From: Aliaksei Klimau Date: Mon, 27 Apr 2026 16:37:49 +0200 Subject: [PATCH] Bump up pulpcore lowerbounds to 3.105 to avoid exception errors. Assisted-by: Claude Sonnet 4.6 --- CHANGES/+fix_exception_init.bugfix | 1 + pulp_gem/app/exceptions.py | 5 +++++ pyproject.toml | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 CHANGES/+fix_exception_init.bugfix diff --git a/CHANGES/+fix_exception_init.bugfix b/CHANGES/+fix_exception_init.bugfix new file mode 100644 index 0000000..aa44268 --- /dev/null +++ b/CHANGES/+fix_exception_init.bugfix @@ -0,0 +1 @@ +Add __init__ to no-arg PulpException subclasses for pulpcore <3.103 compat. diff --git a/pulp_gem/app/exceptions.py b/pulp_gem/app/exceptions.py index 1bf745f..bee7e58 100644 --- a/pulp_gem/app/exceptions.py +++ b/pulp_gem/app/exceptions.py @@ -22,6 +22,7 @@ class RemoteConnectionError(PulpException): error_code = "GEM0002" def __init__(self, host): + super().__init__() self.host = host def __str__(self): @@ -38,6 +39,7 @@ class InvalidGemNameError(PulpException): error_code = "GEM0003" def __init__(self, name): + super().__init__() self.name = name def __str__(self): @@ -52,6 +54,7 @@ class InvalidRequirementError(PulpException): error_code = "GEM0004" def __init__(self, stmt): + super().__init__() self.stmt = stmt def __str__(self): @@ -66,6 +69,7 @@ class InvalidVersionStringError(PulpException): error_code = "GEM0005" def __init__(self, version): + super().__init__() self.version = version def __str__(self): @@ -82,6 +86,7 @@ class UnknownRubyClassError(PulpException): error_code = "GEM0006" def __init__(self, suffix): + super().__init__() self.suffix = suffix def __str__(self): diff --git a/pyproject.toml b/pyproject.toml index e891ba0..6f5005b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,8 +23,8 @@ classifiers=[ ] requires-python = ">=3.11" dependencies = [ - "pulpcore>=3.49.0,<3.115", - "pulp_glue_gem>=0.3.0,<0.6", + "pulpcore>=3.105.0,<3.115", + "pulp_glue_gem>=0.6.0,<0.7", "rubymarshal>=1.2.7,<1.3", ]