From fc4c6cf819cb28dc5dfcdd5f35f2a9586df2874d Mon Sep 17 00:00:00 2001 From: Pierre Rouanet Date: Fri, 29 Jul 2016 18:05:21 +0200 Subject: [PATCH] Prepare poppy_humanoid for pypot>=3 --- software/poppy_humanoid/_version.py | 2 +- software/poppy_humanoid/poppy_humanoid.py | 2 +- software/setup.py | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/software/poppy_humanoid/_version.py b/software/poppy_humanoid/_version.py index 7b344ec..0de3e70 100644 --- a/software/poppy_humanoid/_version.py +++ b/software/poppy_humanoid/_version.py @@ -1 +1 @@ -__version__ = '1.1.2' +__version__ = '1.2.0rc1' diff --git a/software/poppy_humanoid/poppy_humanoid.py b/software/poppy_humanoid/poppy_humanoid.py index c7d85cd..87de71d 100644 --- a/software/poppy_humanoid/poppy_humanoid.py +++ b/software/poppy_humanoid/poppy_humanoid.py @@ -4,7 +4,7 @@ from functools import partial -from poppy.creatures import AbstractPoppyCreature +from pypot.creatures import AbstractPoppyCreature from .primitives.safe import LimitTorque, TemperatureMonitor from .primitives.dance import SimpleBodyBeatMotion diff --git a/software/setup.py b/software/setup.py index 6fd32fe..bfd0de8 100644 --- a/software/setup.py +++ b/software/setup.py @@ -14,12 +14,19 @@ def version(): if sys.version_info >= (3,): extra['use_2to3'] = True +extra_packages = [] +try: + import poppy.creatures + + extra_packages.append('poppy-creature>=1.9') +except ImportError: + pass + setup(name='poppy-humanoid', version=version(), packages=find_packages(), - install_requires=['poppy-creature >= 1.8', - 'pypot >= 2.11'], + install_requires=['pypot >= 3.0.0a'] + extra_packages, include_package_data=True, exclude_package_data={'': ['README', '.gitignore']},