Add debian packaging to client
Change-Id: Idde1a8b54c3c7d1456d32c17b3d143f2aef1f699
This commit is contained in:
parent
a861024bed
commit
ccb882ffee
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@ -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/
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
python-libraclient (1.0-1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Andrew Hutchings <andrew@linuxjedi.co.uk> Thu, 03 Jan 2013 15:31:58 +0000
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
9
|
16
debian/control
vendored
Normal file
16
debian/control
vendored
Normal file
@ -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
|
||||
|
21
debian/copyright
vendored
Normal file
21
debian/copyright
vendored
Normal file
@ -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"
|
1
debian/pyversions
vendored
Normal file
1
debian/pyversions
vendored
Normal file
@ -0,0 +1 @@
|
||||
2.7-
|
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
|
||||
|
||||
%:
|
||||
dh $@ ${WITH_PYTHON2}
|
4
setup.py
4
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,
|
||||
|
@ -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 """
|
||||
|
4
tox.ini
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user