Hi Simon & Tristan (racing condition with same answer), On Mon, Jan 15, 2018 at 12:21:02PM +0000, Simon McVittie wrote: > On Mon, 15 Jan 2018 at 12:59:29 +0100, Andreas Tille wrote: > > E File > > "/build/python-aws-xray-sdk-0.95/.pybuild/pythonX.Y_2.7/build/tests/test_async_local_storage.py", > > line 10 > > E async def _test(): > > E ^ > > E SyntaxError: invalid syntax > > Looks like it needs python3 >= 3.5. > https://www.google.com/search?q=async%20def > > > python-aws-xray-sdk (0.95-1) wird eingerichtet ... > > File > > "/usr/lib/python2.7/dist-packages/aws_xray_sdk/core/async_context.py", line > > 14 > > def __init__(self, *args, loop=None, use_task_factory=True, **kwargs): > > ^ > > SyntaxError: invalid syntax > > That's Python 3 syntax too. https://www.python.org/dev/peps/pep-3102/
Setup.py of the package says: ... 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ... In the end we actually need this also for Python 2.7 since python-pandas is also 2.7 and Python 3 (and several reverse depends of python-pandas need 2.7 as well). Seems I need to open an issue on Github. Further question: It seems my packaging is broken since the test is only run on Python 2.7 (and is breaking there as you know). What am I missing to run the Python 3 tests? Kind regards Andreas. -- http://fam-tille.de