From 5ba5553e5801b7a316fc2c864fa13630f4f00b79 Mon Sep 17 00:00:00 2001 From: Aleksei Stepanov Date: Tue, 29 Oct 2019 11:35:12 +0100 Subject: [PATCH] Python 3.8 setup.py fixes and package build * TODO: Fix asyncio tests Signed-off-by: Aleksei Stepanov --- setup.py | 2 +- tools/build-wheels.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6e7937d..47f6afc 100644 --- a/setup.py +++ b/setup.py @@ -192,7 +192,7 @@ def get_simple_vars_from_src( if sys.version_info[:2] < (3, 8): ast_data = (ast.Str, ast.Num, ast.List, ast.Set, ast.Dict, ast.Tuple, ast.Bytes, ast.NameConstant, ast.Ellipsis) else: - ast_data = ast.Constant + ast_data = (ast.Constant, ast.List, ast.Set, ast.Dict, ast.Tuple) tree = ast.parse(src) diff --git a/tools/build-wheels.sh b/tools/build-wheels.sh index 2eb46e9..3c16926 100755 --- a/tools/build-wheels.sh +++ b/tools/build-wheels.sh @@ -1,6 +1,6 @@ #!/bin/bash set -e -PYTHON_VERSIONS="cp36-cp36m cp37-cp37m" +PYTHON_VERSIONS="cp36-cp36m cp37-cp37m cp38-cp38" # Avoid creation of __pycache__/*.py[c|o] export PYTHONDONTWRITEBYTECODE=1