Resolved this issue locally with this patch which updates the spec file and setup.py to require a version 1.0.32 <= python-okaara < 1.0.36. I'm not opening a PR on this because I want to hear from others if this is the way to go. I don't think we need to port this to pulp/packaging[0] because I suspect we won't use okaara in Pulp3.
diff --git a/client_lib/setup.py b/client_lib/setup.py
index a697677..03732f8 100755
--- a/client_lib/setup.py
+++ b/client_lib/setup.py
@@ -9,5 +9,5 @@ setup(
packages=find_packages(exclude=['test']),
author='Pulp Team',
author_email='pulp-list@redhat.com',
- install_requires=['isodate>0.5.0', 'm2crypto', 'okaara>=1.0.32', 'setuptools']
+ install_requires=['isodate>0.5.0', 'm2crypto', 'okaara>=1.0.32,<1.0.36', 'setuptools']
)
diff --git a/pulp.spec b/pulp.spec
index 0350ee6..cd879d4 100644
--- a/pulp.spec
+++ b/pulp.spec
@@ -787,7 +787,7 @@ Summary: Pulp client extensions framework
Group: Development/Languages
Requires: m2crypto
Requires: python-%{name}-common = %{pulp_version}
-Requires: python-okaara >= 1.0.32
+Requires: python-okaara >= 1.0.32,python-okaara < 1.0.36
Requires: python-isodate >= 0.5.0-1.pulp
Requires: python-setuptools
Obsoletes: pulp-client-lib
This patch syntax was informed from these pages[1][2].
[0]: https://github.com/pulp/packaging
[1]: https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers
[2]: https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-specfile-syntax.html
Pins okaara dependency versions
The okaara 1.0.36 release is incompatible with Python 2.7. This Pins the versions to 1.0.32 <= okaara <= 1.0.35 which are compatible with Pulp. This range limit is made in the spec file and the setup.py requirements.
https://pulp.plan.io/issues/2464 closes #2464