aa94367086
Not using any of the existing python-cephclient package. (it's a new package sharing the same name). Released under Apache-2.0 license as part of StarlingX. Additional commits: - create session on first API request - add missing osd_remove function - add timeout when retrieving url and password - sanitize osd ID input - osd_crush_tree discards json output Story: 2003605 Task: 28860 Depends-On: I31fb9aac89c44bbce24939197446caa987d395cb Change-Id: I1952a12032bcd08d17786bd817d1e15ce36d5afd Signed-off-by: Daniel Badea <daniel.badea@windriver.com>
66 lines
1.5 KiB
RPMSpec
66 lines
1.5 KiB
RPMSpec
Summary: Handle Ceph API calls and provide status updates via alarms
|
|
Name: python-cephclient
|
|
Version: 13.2.2.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: https://github.com/openstack/stx-integ/tree/master/ceph/python-cephclient/python-cephclient'
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python
|
|
BuildRequires: python2-pip
|
|
BuildRequires: python2-wheel
|
|
|
|
Requires: python
|
|
Requires: python-ipaddress
|
|
Requires: python2-six
|
|
Requires: python2-requests
|
|
|
|
Provides: python-cephclient
|
|
|
|
%description
|
|
A client library in Python for Ceph Mgr RESTful plugin providing REST API
|
|
access to the cluster over an SSL-secured connection. Python API is compatible
|
|
with the old Python Ceph client at
|
|
https://github.com/dmsimard/python-cephclient that no longer works in Ceph
|
|
mimic because Ceph REST API component was removed.
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%autosetup -p 1 -n %{name}-%{version}
|
|
|
|
rm -rf .pytest_cache
|
|
rm -rf python_cephclient.egg-info
|
|
rm -f requirements.txt
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
%py2_build_wheel
|
|
|
|
%install
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
mkdir -p $RPM_BUILD_ROOT/wheels
|
|
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%{python2_sitelib}/cephclient
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
%package wheels
|
|
Summary: %{name} wheels
|
|
|
|
%description wheels
|
|
Contains python wheels for %{name}
|
|
|
|
%files wheels
|
|
/wheels/*
|