diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..85f3233 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-castellan (0.2.0-1) unstable; urgency=medium + + * Initial release. (Closes: #XXXXXX) + + -- Thomas Goirand Tue, 08 Sep 2015 22:29:18 +0200 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..e35fd53 --- /dev/null +++ b/debian/control @@ -0,0 +1,107 @@ +Source: python-castellan +Section: python +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Thomas Goirand , +Build-Depends: debhelper (>= 9), + dh-python, + python-all, + python-pbr (>= 1.6), + python-setuptools, + python-sphinx, + python3-all, + python3-pbr (>= 1.6), + python3-setuptools, +Build-Depends-Indep: python-babel, + python-barbicanclient (>= 3.3.0), + python-cryptography (>= 1.0), + python-hacking (>= 0.10), + python-oslo.config (>= 2.3.0), + python-oslo.context (>= 0.2.0), + python-oslo.log (>= 1.8.0), + python-oslo.policy (>= 0.5.0), + python-oslo.serialization (>= 1.4.0), + python-oslo.utils (>= 2.0.0), + python-oslosphinx (>= 2.5.0), + python-oslotest (>= 1.10.0), + python-testscenarios, + python-testtools (>= 1.4.0), + python3-babel, + python3-barbicanclient (>= 3.3.0), + python3-cryptography (>= 1.0), + python3-oslo.config (>= 2.3.0), + python3-oslo.context (>= 0.2.0), + python3-oslo.log (>= 1.8.0), + python3-oslo.policy (>= 0.5.0), + python3-oslo.serialization (>= 1.4.0), + python3-oslo.utils (>= 2.0.0), + python3-oslotest (>= 1.10.0), + python3-subunit, + python3-testscenarios, + python3-testtools (>= 1.4.0), + subunit, + testrepository, +Standards-Version: 3.9.6 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-castellan.git +Vcs-Git: git://anonscm.debian.org/openstack/python-castellan.git +Homepage: http://www.openstack.org/ + +Package: python-castellan +Architecture: all +Depends: python-babel, + python-cryptography (>= 1.0), + python-oslo.config (>= 2.3.0), + python-oslo.context (>= 0.2.0), + python-oslo.log (>= 1.8.0), + python-oslo.policy (>= 0.3.1), + python-oslo.serialization (>= 1.4.0), + python-oslo.utils (>= 2.0.0), + python-pbr, + ${misc:Depends}, + ${python:Depends}, +Suggests: python-castellan-doc, +Description: generic key manager interface for OpenStack - Python 2.x + The Castellan module provides a generic key manager interface so that + OpenStack projects can use Barbican, but also have the flexibilty to choose an + alternative Key Manager as needed. This is helpful during development, for + example, where a simple implementation of the Key Manager Interface can be + used instead of having to spin up a Barbican instance. + . + This package contains the Python 2.x module. + +Package: python3-castellan +Architecture: all +Depends: python3-babel, + python3-cryptography (>= 1.0), + python3-oslo.config (>= 2.3.0), + python3-oslo.context (>= 0.2.0), + python3-oslo.log (>= 1.8.0), + python3-oslo.policy (>= 0.3.1), + python3-oslo.serialization (>= 1.4.0), + python3-oslo.utils (>= 2.0.0), + python3-pbr, + ${misc:Depends}, + ${python3:Depends}, +Suggests: python-castellan-doc, +Description: generic key manager interface for OpenStack - Python 3.x + The Castellan module provides a generic key manager interface so that + OpenStack projects can use Barbican, but also have the flexibilty to choose an + alternative Key Manager as needed. This is helpful during development, for + example, where a simple implementation of the Key Manager Interface can be + used instead of having to spin up a Barbican instance. + . + This package contains the Python 3.x module. + +Package: python-castellan-doc +Section: doc +Architecture: all +Depends: ${misc:Depends}, + ${sphinxdoc:Depends}, +Description: generic key manager interface for OpenStack - doc + The Castellan module provides a generic key manager interface so that + OpenStack projects can use Barbican, but also have the flexibilty to choose an + alternative Key Manager as needed. This is helpful during development, for + example, where a simple implementation of the Key Manager Interface can be + used instead of having to spin up a Barbican instance. + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d64f9ea --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: castellan +Source: http://www.openstack.org/ + +Files: debian/* +Copyright: (c) 2015, Thomas Goirand +License: Apache-2 + +Files: * +Copyright: (c) 2015, OpenStack Foundation +License: Apache-2 + +License: Apache-2 + 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-based systems the full text of the Apache version 2.0 license + can be found in /usr/share/common-licenses/Apache-2.0. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..10f9500 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,9 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = %(version)s +compression = xz + +[buildpackage] +export-dir = ../build-area/ + diff --git a/debian/python-castellan-doc.doc-base b/debian/python-castellan-doc.doc-base new file mode 100644 index 0000000..e3bdae0 --- /dev/null +++ b/debian/python-castellan-doc.doc-base @@ -0,0 +1,9 @@ +Document: python-castellan-doc +Title: castellan Documentation +Author: N/A +Abstract: Sphinx documentation for castellan +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-castellan-doc/html/index.html +Files: /usr/share/doc/python-castellan-doc/html/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b4b7c1c --- /dev/null +++ b/debian/rules @@ -0,0 +1,57 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) + +UPSTREAM_GIT = git://github.com/openstack/castellan.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc + +override_dh_auto_install: + set -e ; for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-castellan; \ + done + set -e ; for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-castellan; \ + done + rm -rf $(CURDIR)/debian/python*-castellan/usr/lib/python*/dist-packages/*.pth + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + @echo "===> Running tests" + set -e ; set -x ; for i in 2.7 $(PYTHON3S) ; do \ + PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ + echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ + rm -rf .testrepository ; \ + testr-python$$PYMAJOR init ; \ + TEMP_REZ=`mktemp -t` ; \ + PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ + rm -f $$TEMP_REZ ; \ + testr-python$$PYMAJOR slowest ; \ + done +endif + + +override_dh_sphinxdoc: + sphinx-build -b html doc/source debian/python-castellan-doc/usr/share/doc/python-castellan-doc/html + dh_sphinxdoc -O--buildsystem=python_distutils + + +override_dh_clean: + dh_clean -O--buildsystem=python_distutils + rm -rf build + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: +override_dh_installcron override_dh_installdebconf: +override_dh_installlogrotate override_dh_installgsettings: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..24bc562 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://pypi.python.org/packages/source/c/castellan castellan-(.*).tar.gz +