1
0
2015-12-08 07:57:24 +00:00
committed by Git OBS Bridge
commit bb6bbc540e
5 changed files with 142 additions and 0 deletions

110
python-openstacksdk.spec Normal file
View File

@@ -0,0 +1,110 @@
#
# spec file for package python-openstacksdk
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-openstacksdk
Version: 0.7.1
Release: 0
Summary: An SDK for building applications to work with OpenStack
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source: https://pypi.python.org/packages/source/o/openstacksdk/openstacksdk-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-fixtures
BuildRequires: python-keystoneauth1
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-os-client-config
BuildRequires: python-oslo.utils
BuildRequires: python-pbr >= 1.8
BuildRequires: python-setuptools
BuildRequires: python-testtools
Requires: python-keystoneauth1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
OpenStack Python SDK
====================
The ``python-openstacksdk`` is a collection of libraries for building
applications to work with OpenStack clouds. The project aims to provide
a consistent and complete set of interactions with OpenStack's many
services, along with complete documentation, examples, and tools.
This SDK is under active development, and in the interests of providing
a high-quality interface, the APIs provided in this release may differ
from those provided in future release.
Usage
-----
The following example simply connects to an OpenStack cloud and lists
the containers in the Object Store service.::
from openstack import connection
conn = connection.Connection(auth_url="http://openstack:5000/v3",
project_name="big_project",
username="SDK_user",
password="Super5ecretPassw0rd")
for container in conn.object_store.containers():
print(container.name)
Documentation
-------------
Documentation is available at
http://python-openstacksdk.readthedocs.org/en/latest/
Requirements
------------
* Python 2.7, Python 3.3+
* pbr
* requests
* six
* stevedore
* oslo.utils
License
-------
Apache 2.0
%prep
%setup -q -n openstacksdk-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
#nosetests
%files
%defattr(-,root,root,-)
%doc LICENSE ChangeLog README.rst AUTHORS
%{python_sitelib}/*
%changelog