Added Python 3 support.
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
|||||||
|
python-neutronclient (1:3.1.0-3) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Added Python 3 support.
|
||||||
|
|
||||||
|
-- Thomas Goirand <zigo@debian.org> Thu, 14 Jan 2016 06:15:45 +0000
|
||||||
|
|
||||||
python-neutronclient (1:3.1.0-2) unstable; urgency=medium
|
python-neutronclient (1:3.1.0-2) unstable; urgency=medium
|
||||||
|
|
||||||
* Uploading to unstable.
|
* Uploading to unstable.
|
||||||
|
|||||||
55
debian/control
vendored
55
debian/control
vendored
@@ -2,7 +2,7 @@ Source: python-neutronclient
|
|||||||
Section: python
|
Section: python
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
|
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
|
||||||
Uploaders: Thomas Goirand <zigo@debian.org>
|
Uploaders: Thomas Goirand <zigo@debian.org>,
|
||||||
Build-Depends: debhelper (>= 9),
|
Build-Depends: debhelper (>= 9),
|
||||||
dh-python,
|
dh-python,
|
||||||
openstack-pkg-tools,
|
openstack-pkg-tools,
|
||||||
@@ -10,8 +10,10 @@ Build-Depends: debhelper (>= 9),
|
|||||||
python-pbr (>= 1.8),
|
python-pbr (>= 1.8),
|
||||||
python-setuptools,
|
python-setuptools,
|
||||||
python-sphinx,
|
python-sphinx,
|
||||||
Build-Depends-Indep: cliff-tablib,
|
python3-all,
|
||||||
python-babel,
|
python3-pbr (>= 1.8),
|
||||||
|
python3-setuptools,
|
||||||
|
Build-Depends-Indep: python-babel,
|
||||||
python-cliff (>= 1.14.0),
|
python-cliff (>= 1.14.0),
|
||||||
python-coverage,
|
python-coverage,
|
||||||
python-fixtures (>= 1.3.1),
|
python-fixtures (>= 1.3.1),
|
||||||
@@ -32,6 +34,26 @@ Build-Depends-Indep: cliff-tablib,
|
|||||||
python-six (>= 1.9.0),
|
python-six (>= 1.9.0),
|
||||||
python-tempest-lib (>= 0.8.0),
|
python-tempest-lib (>= 0.8.0),
|
||||||
python-testtools (>= 1.4.0),
|
python-testtools (>= 1.4.0),
|
||||||
|
python3-babel,
|
||||||
|
python3-cliff (>= 1.14.0),
|
||||||
|
python3-coverage,
|
||||||
|
python3-fixtures (>= 1.3.1),
|
||||||
|
python3-iso8601 (>= 0.1.9),
|
||||||
|
python3-keystoneclient (>= 1:1.6.0),
|
||||||
|
python3-mock (>= 1.3),
|
||||||
|
python3-mox3,
|
||||||
|
python3-netaddr (>= 0.7.12),
|
||||||
|
python3-oslo.i18n (>= 1.5.0),
|
||||||
|
python3-oslo.serialization (>= 1.4.0),
|
||||||
|
python3-oslo.utils (>= 2.0.0),
|
||||||
|
python3-oslotest (>= 1.10.0),
|
||||||
|
python3-requests (>= 2.5.2),
|
||||||
|
python3-requests-mock (>= 0.6.0),
|
||||||
|
python3-simplejson,
|
||||||
|
python3-six (>= 1.9.0),
|
||||||
|
python3-subunit,
|
||||||
|
python3-tempest-lib (>= 0.8.0),
|
||||||
|
python3-testtools (>= 1.4.0),
|
||||||
subunit,
|
subunit,
|
||||||
testrepository,
|
testrepository,
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
@@ -55,10 +77,33 @@ Depends: python-babel,
|
|||||||
python-six (>= 1.9.0),
|
python-six (>= 1.9.0),
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
${python:Depends},
|
${python:Depends},
|
||||||
Description: client API library for Neutron
|
Description: client API library for Neutron - Python 2.7
|
||||||
Neutron provides an API to dynamically request and configure virtual networks.
|
Neutron provides an API to dynamically request and configure virtual networks.
|
||||||
These networks connect "interfaces" from other OpenStack services (e.g., vNICs
|
These networks connect "interfaces" from other OpenStack services (e.g., vNICs
|
||||||
from Nova VMs). The Neutron API supports extensions to provide advanced network
|
from Nova VMs). The Neutron API supports extensions to provide advanced network
|
||||||
capabilities (e.g., QoS, ACLs, network monitoring, etc).
|
capabilities (e.g., QoS, ACLs, network monitoring, etc).
|
||||||
.
|
.
|
||||||
This package provides the client agent.
|
This package provides the client and Python 2.7 module.
|
||||||
|
|
||||||
|
Package: python3-neutronclient
|
||||||
|
Architecture: all
|
||||||
|
Depends: python3-babel,
|
||||||
|
python3-cliff (>= 1.14.0),
|
||||||
|
python3-iso8601,
|
||||||
|
python3-keystoneclient (>= 1:1.6.0),
|
||||||
|
python3-netaddr (>= 0.7.12),
|
||||||
|
python3-oslo.i18n (>= 1.5.0),
|
||||||
|
python3-oslo.serialization (>= 1.4.0),
|
||||||
|
python3-oslo.utils (>= 2.0.0),
|
||||||
|
python3-requests (>= 2.5.2),
|
||||||
|
python3-simplejson (>= 2.2.0),
|
||||||
|
python3-six (>= 1.9.0),
|
||||||
|
${misc:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
Description: client API library for Neutron - Python 3.x
|
||||||
|
Neutron provides an API to dynamically request and configure virtual networks.
|
||||||
|
These networks connect "interfaces" from other OpenStack services (e.g., vNICs
|
||||||
|
from Nova VMs). The Neutron API supports extensions to provide advanced network
|
||||||
|
capabilities (e.g., QoS, ACLs, network monitoring, etc).
|
||||||
|
.
|
||||||
|
This package provides the client and Python 3.x module.
|
||||||
|
|||||||
43
debian/rules
vendored
43
debian/rules
vendored
@@ -1,25 +1,40 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
PYTHONS:=$(shell pyversions -vr)
|
||||||
|
PYTHON3S:=$(shell py3versions -vr)
|
||||||
|
|
||||||
include /usr/share/openstack-pkg-tools/pkgos.make
|
include /usr/share/openstack-pkg-tools/pkgos.make
|
||||||
export OSLO_PACKAGE_VERSION=$(VERSION)
|
export OSLO_PACKAGE_VERSION=$(VERSION)
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --buildsystem=python_distutils --with python2
|
dh $@ --buildsystem=python_distutils --with python2,python3
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install -O--buildsystem=python_distutils
|
set -e ; for pyvers in $(PYTHONS); do \
|
||||||
install -D -m 0644 tools/neutron.bash_completion $(CURDIR)/debian/python-neutronclient/usr/share/bash-completion/completions/neutron
|
python$$pyvers setup.py install --install-layout=deb \
|
||||||
|
--root $(CURDIR)/debian/python-neutronclient; \
|
||||||
|
done
|
||||||
|
set -e ; for pyvers in $(PYTHON3S); do \
|
||||||
|
python$$pyvers setup.py install --install-layout=deb \
|
||||||
|
--root $(CURDIR)/debian/python3-neutronclient; \
|
||||||
|
done
|
||||||
|
rm -f $(CURDIR)/debian/python*/usr/lib/python*/dist-packages/*.pth
|
||||||
|
install -D -m 0644 tools/neutron.bash_completion $(CURDIR)/debian/python-neutronclient-doc/usr/share/bash-completion/completions/neutron
|
||||||
|
|
||||||
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
rm -rf .testrepository
|
@echo "===> Running tests"
|
||||||
testr init
|
set -e ; set -x ; for i in 2.7 $(PYTHON3S) ; do \
|
||||||
set -e ; \
|
PYMAJOR=`echo $$i | cut -d'.' -f1` ; \
|
||||||
|
echo "===> Testing with python$$i (python$$PYMAJOR)" ; \
|
||||||
|
rm -rf .testrepository ; \
|
||||||
|
testr-python$$PYMAJOR init ; \
|
||||||
TEMP_REZ=`mktemp -t` ; \
|
TEMP_REZ=`mktemp -t` ; \
|
||||||
PYTHONPATH=$(CURDIR) testr run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
|
PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
|
||||||
cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
|
cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
|
||||||
rm -f $$TEMP_REZ ;
|
rm -f $$TEMP_REZ ; \
|
||||||
testr slowest
|
testr-python$$PYMAJOR slowest ; \
|
||||||
|
done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
@@ -31,3 +46,13 @@ override_dh_auto_clean:
|
|||||||
# sphinx-build -b man doc/source doc/man
|
# sphinx-build -b man doc/source doc/man
|
||||||
# dh_installman -O--buildsystem=python_distutils
|
# dh_installman -O--buildsystem=python_distutils
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user