Skip to content

Commit 4be7757

Browse files
committed
Py 3.8 support updates
1 parent 79eabe7 commit 4be7757

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def _extension(modpath):
6262
if "win32" != sys.platform:
6363
REQUIRES_OPTIMIZATION.append(_extension("advanced_descriptors.__init__"))
6464

65+
# noinspection PyCallingNonCallable
6566
EXT_MODULES = (
6667
cythonize(
6768
REQUIRES_OPTIMIZATION,
@@ -173,7 +174,7 @@ def get_simple_vars_from_src(
173174
if sys.version_info[:2] < (3, 8):
174175
ast_data = (ast.Str, ast.Num, ast.List, ast.Set, ast.Dict, ast.Tuple, ast.Bytes, ast.NameConstant, ast.Ellipsis)
175176
else:
176-
ast_data = ast.Constant
177+
ast_data = (ast.Constant, ast.List, ast.Set, ast.Dict, ast.Tuple)
177178

178179
tree = ast.parse(src)
179180

tools/build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -e
3-
PYTHON_VERSIONS="cp36-cp36m cp37-cp37m"
3+
PYTHON_VERSIONS="cp36-cp36m cp37-cp37m cp38-cp38"
44

55
# Avoid creation of __pycache__/*.py[c|o]
66
export PYTHONDONTWRITEBYTECODE=1

0 commit comments

Comments
 (0)