Baseline packaging

This commit is contained in:
James Page 2016-09-01 09:26:40 +01:00
parent d5e395cc35
commit af911a0af1
10 changed files with 223 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
python-cursive (0.1.1-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #)
-- James Page <james.page@ubuntu.com> Thu, 01 Sep 2016 09:24:31 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

99
debian/control vendored Normal file
View File

@ -0,0 +1,99 @@
Source: python-cursive
Section: python
Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Ivan Udovichenko <iudovichenko@mirantis.com>,
Build-Depends: debhelper (>= 9),
dh-python,
openstack-pkg-tools (>= 52~),
python-all,
python-pbr (>= 1.8),
python-setuptools,
python-sphinx,
python3-all,
python3-pbr (>= 1.8),
python3-setuptools,
python3-sphinx,
Build-Depends-Indep: python-coverage (>= 3.6),
python-hacking (>= 0.10.2),
python-netaddr (>= 0.7.12),
python-oslo.config (>= 1:3.14.0),
python-oslo.i18n (>= 2.1.0),
python-oslo.log (>= 1.14.0),
python-oslo.privsep (>= 1.9.0),
python-oslo.versionedobjects (>= 1.13.0),
python-oslosphinx (>= 2.5.0),
python-oslotest (>= 1:1.10.0),
python-reno,
python-six (>= 1.9.0),
python-stevedore (>= 1.16.0),
python-testscenarios (>= 0.4),
python-testtools (>= 1.4.0),
python3-coverage (>= 3.6),
python3-hacking (>= 0.10.2),
python3-netaddr (>= 0.7.12),
python3-oslo.config (>= 1:3.14.0),
python3-oslo.i18n (>= 2.1.0),
python3-oslo.log (>= 1.14.0),
python3-oslo.privsep (>= 1.9.0),
python3-oslo.versionedobjects (>= 1.13.0),
python3-oslosphinx (>= 2.5.0),
python3-oslotest (>= 1:1.10.0),
python3-six (>= 1.9.0),
python3-stevedore (>= 1.16.0),
python3-subunit (>= 0.0.18),
python3-testrepository (>= 0.0.18),
python3-testscenarios (>= 0.4),
python3-testtools (>= 1.4.0),
subunit (>= 0.0.18),
testrepository (>= 0.0.18),
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/openstack/python-cursive.git/
Vcs-Git: https://anonscm.debian.org/git/openstack/python-cursive.git
Homepage: https://github.com/openstack/cursive
Package: python-cursive
Architecture: all
Depends: python-netaddr (>= 0.7.12),
python-oslo.config (>= 1:3.14.0),
python-oslo.i18n (>= 2.1.0),
python-oslo.log (>= 1.14.0),
python-oslo.privsep (>= 1.9.0),
python-oslo.versionedobjects (>= 1.13.0),
python-six (>= 1.9.0),
python-stevedore (>= 1.16.0),
${misc:Depends},
${python:Depends},
Suggests: python-cursive-doc,
Description: Integration library between network and compute - Python 2.7
A library for plugging and unplugging virtual interfaces in OpenStack.
.
This package contains the Python 2.7 module.
Package: python3-cursive
Architecture: all
Depends: python3-netaddr (>= 0.7.12),
python3-oslo.config (>= 1:3.14.0),
python3-oslo.i18n (>= 2.1.0),
python3-oslo.log (>= 1.14.0),
python3-oslo.privsep (>= 1.9.0),
python3-oslo.versionedobjects (>= 1.13.0),
python3-six (>= 1.9.0),
python3-stevedore (>= 1.16.0),
${misc:Depends},
${python3:Depends},
Suggests: python-cursive-doc,
Description: Integration library between network and compute - Python 3.x
A library for plugging and unplugging virtual interfaces in OpenStack.
.
This package contains the Python 3.x module.
Package: python-cursive-doc
Section: doc
Architecture: all
Depends: ${misc:Depends},
${sphinxdoc:Depends},
Description: Integration library between network and compute - doc
A library for plugging and unplugging virtual interfaces in OpenStack.
.
This package contains the documentation.

35
debian/copyright vendored Normal file
View File

@ -0,0 +1,35 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cursive
Source: https://github.com/openstack/cursive
Files: *
Copyright: 2015, Jay Pipes
2010-2016, OpenStack Foundation
2011, Nicira Inc
2011, Midokura KK
2011, X.commerce, a business unit of eBay Inc
2010, United States Government
2013-2014, Hewlett-Packard Development Company, L.P
2014, IBM Corp
2016, Red Hat, Inc
License: Apache-2.0
Files: debian/*
Copyright: 2016, Canonical Ltd
License: Apache-2.0
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-based systems the full text of the Apache version 2.0 license
can be found in /usr/share/common-licenses/Apache-2.0.

9
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,9 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian/newton
upstream-tag = %(version)s
compression = xz
[buildpackage]
export-dir = ../build-area/

9
debian/python-cursive-doc.doc-base vendored Normal file
View File

@ -0,0 +1,9 @@
Document: python-cursive-doc
Title: cursive Documentation
Author: N/A
Abstract: Sphinx documentation for cursive
Section: Programming/Python
Format: HTML
Index: /usr/share/doc/python-cursive-doc/html/index.html
Files: /usr/share/doc/python-cursive-doc/html/*

59
debian/rules vendored Executable file
View File

@ -0,0 +1,59 @@
#!/usr/bin/make -f
UPSTREAM_GIT := https://github.com/openstack/cursive.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-cursive; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-cursive; \
done
rm -rf $(CURDIR)/debian/python*-cursive/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:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
python setup.py build_sphinx
cp -rf doc/build/html $(CURDIR)/debian/python-cursive-doc/usr/share/doc/python-cursive-doc
dh_sphinxdoc -O--buildsystem=python_distutils
endif
override_dh_clean:
dh_clean -O--buildsystem=python_distutils
rm -rf build
# Skip commands
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:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

4
debian/watch vendored Normal file
View File

@ -0,0 +1,4 @@
version=3
opts="uversionmangle=s/\.(b|rc)/~$1/" \
https://github.com/openstack/os-vif/tags .*/(\d[\d\.]+)\.tar\.gz