Added Python 3 support.

This commit is contained in:
Thomas Goirand
2015-09-12 08:02:30 +00:00
parent c5fdfe375c
commit fe83f1609f
3 changed files with 90 additions and 2 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
python-taskflow (1.17.0-3) experimental; urgency=medium
* Added Python3 support (Closes: #798018).
-- Thomas Goirand <zigo@debian.org> Sat, 12 Sep 2015 07:56:16 +0000
python-taskflow (1.17.0-2) experimental; urgency=medium
* Applied what's remaining as usefull in the Ubuntu patch (Closes: #791930).

70
debian/control vendored
View File

@@ -11,6 +11,7 @@ Build-Depends: debhelper (>= 9),
python-setuptools,
python-sphinx,
Build-Depends-Indep: alembic (>= 0.7.2),
python-alembic,
python-automaton,
python-cachetools,
python-concurrent.futures (>= 3.0),
@@ -42,6 +43,37 @@ Build-Depends-Indep: alembic (>= 0.7.2),
python-testtools (>= 1.4.0),
python-unittest2,
python-zake,
python3-alembic,
python3-automaton,
python3-cachetools,
python3-concurrent.futures (>= 3.0),
python3-contextlib2,
python3-coverage,
python3-debtcollector (>= 0.3.0),
python3-eventlet (>= 0.17.4),
python3-fasteners,
python3-futurist,
python3-jsonschema,
python3-kazoo (>= 2.2),
python3-kombu,
python3-mock (>= 1.3),
python3-monotonic (>= 0.1),
python3-mysqldb,
python3-networkx,
python3-oslo.serialization (>= 1.4.0),
python3-oslo.utils (>= 1.9.0),
python3-oslosphinx (>= 2.5.0),
python3-oslotest (>= 1.7.0),
python3-psycopg2,
python3-redis,
python3-six (>= 1.9.0),
python3-sqlalchemy (>= 0.9.7),
python3-stevedore (>= 1.5.0),
python3-subunit,
python3-testscenarios (>= 0.4),
python3-testtools (>= 1.4.0),
python3-unittest2,
python3-zake,
subunit,
testrepository,
Standards-Version: 3.9.6
@@ -78,7 +110,43 @@ Depends: alembic (>= 0.7.2),
${misc:Depends},
${python:Depends},
Recommends: ${python:Recommends},
Description: Taskflow structured state management library
Description: Taskflow structured state management library - Python 2.7
TaskFlow, is a library to do [jobs, tasks, flows] in a HA manner
using different backends to be used with OpenStack projects.
More information at http://wiki.openstack.org/wiki/TaskFlow
.
This package contains the Python 2.7 module.
Package: python3-taskflow
Architecture: all
Depends: alembic (>= 0.7.2),
python3-automaton,
python3-cachetools,
python3-concurrent.futures (>= 3.0),
python3-contextlib2,
python3-debtcollector (>= 0.3.0),
python3-eventlet (>= 0.17.4),
python3-fasteners,
python3-futurist,
python3-jsonschema,
python3-kazoo,
python3-kombu,
python3-monotonic (>= 0.1),
python3-mysqldb,
python3-networkx,
python3-oslo.serialization (>= 1.4.0),
python3-oslo.utils (>= 1.9.0),
python3-pbr (>= 1.3),
python3-psycopg2,
python3-six (>= 1.9.0),
python3-sqlalchemy (>= 0.9.7),
python3-stevedore (>= 1.5.0),
${misc:Depends},
${python3:Depends},
Recommends: ${python:Recommends},
Description: Taskflow structured state management library - Python 3.x
TaskFlow, is a library to do [jobs, tasks, flows] in a HA manner
using different backends to be used with OpenStack projects.
More information at http://wiki.openstack.org/wiki/TaskFlow
.
This package contains the Python 3.x module.

16
debian/rules vendored
View File

@@ -1,12 +1,26 @@
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT = git://github.com/openstack/taskflow.git
include /usr/share/openstack-pkg-tools/pkgos.make
export OSLO_PACKAGE_VERSION=$(VERSION)
%:
dh $@ --buildsystem=python_distutils --with python2
dh $@ --buildsystem=python_distutils --with python2,python3
override_dh_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-taskflow; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-taskflow; \
done
rm -f $(CURDIR)/debian/python*/usr/lib/python*/dist-packages/*.pth
override_dh_clean:
dh_clean -O--buildsystem=python_distutils