Package: src:libcloud
Severity: wishlist
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Please could you also build libcloud against python3.
I am working on preparing a future package the will need a python3 version of
libcloud
I have attached a patch, the builds the package fine for me in an unstable
chroot
Regards,
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBAgAGBQJTW/5cAAoJEMhyZNddc+xu2QMQAIQu72j7+jqtCMCQKiKWR3Mj
fkfTlgFXsQnS9/luFRs1meYN1mRb/q8LTmNBQ415BNqIXhxAndn43hmoFF0Qd4we
lbdS+oMGfAhCt4rD4TaojrP1cniRxuhniIIQliY647qIJwQEtB7cQQSUk+cUn0A3
QI86TT0R5r3/2lEHoGjCw+vocYEAoKN/vqTlRM7jCDxJugbOUrF1aMBvE8mm2vGH
zTt4CCWhpwd01DBjVAtPxtAsguHn8i7DDNrobRXe+T9jCb9+u3xA9WE3zRbevG6B
HGUHfM82fWba3r6hzCSG7zIEoL4T9DTrKUFCp7sHKIDDZnROIOq6bT1bCdKUHWd9
z4DGilc+MUiLwTOOy8Ek170lqhqA8YIZnMvQRO2hqu3qoyMKQl4J419sctxX8gm9
NvhiHp5p8GsVrSr7ldf/VVde3In4UHs+tCZaCYyk1pQyVJqHwziRZZcM+Zp1GdA+
XepkevEn6/MKaViHLvfeYYFpBrcE985J8LS6MIg+eVVSobgTL8FXmLPRp11LTwxV
FbN6WZnR49zMNPHc6iD0wt17KMcbBus2+cILPnI2ZmVfxB41dMJs7QYwIwUc/qiN
y02xR9EBsvy/bg65eKEyBfws5cBwqw/NY6Mh0qzICt++pDqJvEK8qaAFDlQdVq7k
5Rrw/HOSji+nkcc8FFeG
=TGL3
-----END PGP SIGNATURE-----
--- libcloud-0.14.1.orig/debian/control
+++ libcloud-0.14.1/debian/control
@@ -12,9 +12,15 @@
python-setuptools,
python-mock (>= 0.8.0),
python-epydoc,
- python-pydoctor
+ python-pydoctor,
+ python3-all,
+ python3-crypto (>= 2.6),
+ python3-simplejson,
+ python3-setuptools,
+ python3-mock (>= 0.8.0)
Standards-Version: 3.9.5
X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.0
Homepage: https://libcloud.apache.org/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/libcloud/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/libcloud/trunk/
@@ -50,3 +56,36 @@
libcloud was originally created by the folks over at Cloudkick, but has
since grown into an independent free software project licensed under
the Apache License (2.0).
+
+Package: python3-libcloud
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ python3-crypto (>= 2.6),
+ python3-simplejson
+Description: unified Python interface into the cloud
+ libcloud is a pure Python client library for interacting with many of the
+ popular cloud server providers using a unified API. It was created to make it
+ easy for developers to build products that work between any of the services
+ that it supports.
+ .
+ * Avoid vendor lock-in
+ * Use the same API to talk to many different providers
+ * More than 30 supported providers total
+ * Four main APIs: Compute, Storage, Load Balancers, DNS
+ * Supports Python 2.5, Python 2.6, Python 2.7, PyPy and Python 3
+ .
+ Resource you can manage with Libcloud are divided in the following categories:
+ .
+ * Cloud Servers and Block Storage - services such as Amazon EC2 and
+ Rackspace Cloud Servers (libcloud.compute.*)
+ * Cloud Object Storage and CDN - services such as Amazon S3 and
+ Rackspace CloudFiles (libcloud.storage.*)
+ * Load Balancers as a Service, LBaaS (libcloud.loadbalancer.*)
+ * DNS as a Service, DNSaaS (libcloud.dns.*)
+ .
+ libcloud was originally created by the folks over at Cloudkick, but has
+ since grown into an independent free software project licensed under
+ the Apache License (2.0).
+ .
+ This is the Python 3 version of the package.
--- libcloud-0.14.1.orig/debian/python3-libcloud.install
+++ libcloud-0.14.1/debian/python3-libcloud.install
@@ -0,0 +1 @@
+usr/lib/python3/*-packages/*
--- libcloud-0.14.1.orig/debian/python-libcloud.install
+++ libcloud-0.14.1/debian/python-libcloud.install
@@ -0,0 +1 @@
+usr/lib/python2.*/*-packages/*
--- libcloud-0.14.1.orig/debian/rules
+++ libcloud-0.14.1/debian/rules
@@ -1,13 +1,14 @@
#!/usr/bin/make -f
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
dh_auto_test
ln -s secrets.py-dist libcloud/test/secrets.py
for pyversion in $(shell pyversions -vr); do python$$pyversion setup.py test; done
+ for py3version in $(shell py3versions -vr); do python$$py3version setup.py test; done
touch $@
override_dh_clean:
@@ -15,3 +16,15 @@
rm -f test/secrets.py
rm -f libcloud/test/secrets.py
endif
+
+override_dh_auto_build:
+ dh_auto_build
+ set -ex; for python in $(shell py3versions -r); do \
+ $$python setup.py build; \
+ done;
+
+override_dh_auto_install:
+ dh_auto_install
+ set -ex; for python in $(shell py3versions -r); do \
+ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
+ done;
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team