Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-core / stx-utilities / ceph / python-cephclient.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 PACKAGES += " python-cephclient"
17
18 RDEPENDS_ceph-manager += " \
19         python \
20         python-ipaddress \
21         python-six \
22         python-requests \
23         "
24
25 DESCRIPTION_python-cephclient = " \
26 A client library in Python for Ceph Mgr RESTful plugin providing REST API \
27 access to the cluster over an SSL-secured connection. Python API is compatible \
28 with the old Python Ceph client at \
29 https://github.com/dmsimard/python-cephclient that no longer works in Ceph \
30 mimic because Ceph REST API component was removed. \
31 "
32
33 do_configure_append() {
34         cd ${S}/ceph/python-cephclient/python-cephclient
35         rm -rf .pytest_cache
36         rm -rf python_cephclient.egg-info
37         rm -f requirements.txt
38         distutils_do_configure
39 }
40 do_compile_append() {
41         cd ${S}/ceph/python-cephclient/python-cephclient
42         distutils_do_compile
43 }
44
45 do_install_append() {
46         cd ${S}/ceph/python-cephclient/python-cephclient
47         distutils_do_install
48 }
49
50 FILES_python-cephclient = "  \
51         ${PYTHON_SITEPACKAGES_DIR}/cephclient \
52         ${PYTHON_SITEPACKAGES_DIR}/python_cephclient-13.2.2.0-py2.7.egg-info \
53         "
54 #       /usr/share/licenses/python-cephclient-13.2.2.0
55 #       /usr/share/licenses/python-cephclient-13.2.2.0/LICENSE
56