diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e02ce3a --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +*.pyc +.testrepository +.tox +*.egg-info +build/ +debian/files +debian/python-libraclient.debhelper.log +debian/python-libraclient.postinst.debhelper +debian/python-libraclient.prerm.debhelper +debian/python-libraclient.substvars +debian/python-libraclient/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..77b68f2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-libraclient (1.0-1) UNRELEASED; urgency=low + + * Initial release. + + -- Andrew Hutchings Thu, 03 Jan 2013 15:31:58 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a1c9a95 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: python-libraclient +Section: python +Priority: optional +Maintainer: Andrew Hutchings (LinuxJedi) +Build-Depends: debhelper (>=9), python-support (>=1.0), cdbs (>=0.4.111), python-all-dev, python-novaclient (>=2.9) +Build-Depends-Indep: python-sphinx (>=1.0), rst2pdf (>=0.16) +Standards-Version: 3.9.4 +Homepage: https://launchpad.net/libra + +Package: python-libraclient +Architecture: all +XB-Python-Version: ${python-Versions} +Depends: ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +Description: Client for an Openstack Load Balancer as a Service + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..68081c9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: python-libraclient +Source: https://launchpad.net/libra/ + +Files: * +Copyright: 2012 Hewlett-Packard Development Company, L.P. +License: Apache 2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache License 2.0 can + be found in "/usr/share/common-licenses/Apache-2.0" diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..3ad2293 --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.7- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d3830a9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2") + +%: + dh $@ ${WITH_PYTHON2} diff --git a/client/__init__.py b/libraclient/__init__.py similarity index 100% rename from client/__init__.py rename to libraclient/__init__.py diff --git a/client/client.py b/libraclient/client.py similarity index 100% rename from client/client.py rename to libraclient/client.py diff --git a/client/clientoptions.py b/libraclient/clientoptions.py similarity index 100% rename from client/clientoptions.py rename to libraclient/clientoptions.py diff --git a/client/libraapi.py b/libraclient/libraapi.py similarity index 100% rename from client/libraapi.py rename to libraclient/libraapi.py diff --git a/setup.py b/setup.py index 7fdff19..591678c 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ except Exception: setup_reqs = ['Sphinx'] -execfile('client/__init__.py') +execfile('libraclient/__init__.py') setuptools.setup( @@ -58,7 +58,7 @@ setuptools.setup( packages=setuptools.find_packages(exclude=["*.tests"]), entry_points={ 'console_scripts': [ - 'libra_client = client.client:main', + 'libra_client = libraclient.client:main', ] }, cmdclass=ci_cmdclass, diff --git a/tests/test_lbaas_client.py b/tests/test_lbaas_client.py index cdfeb69..a39a606 100644 --- a/tests/test_lbaas_client.py +++ b/tests/test_lbaas_client.py @@ -5,7 +5,7 @@ import sys import novaclient import testtools from StringIO import StringIO -from client.libraapi import LibraAPI +from libraclient.libraapi import LibraAPI class DummyArgs(object): """ Fake argparse response """ diff --git a/tox.ini b/tox.ini index 0f19f40..a6dcfcb 100644 --- a/tox.ini +++ b/tox.ini @@ -14,8 +14,8 @@ downloadcache = ~/cache/pip [testenv:pep8] deps = pep8 -commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*openstack/common*,*lib/python*,*egg client setup.py +commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*openstack/common*,*lib/python*,*egg libraclient setup.py [testenv:pyflakes] deps = pyflakes -commands = pyflakes client +commands = pyflakes libraclient