Skip to content

Commit e36cde0

Browse files
authored
Add python_requires to generated setup.py (#294)
1 parent a3a462a commit e36cde0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/gapic-generator/gapic/templates/setup.py.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ setuptools.setup(
2121
'grpcio >= 1.10.0',
2222
'proto-plus >= 0.4.0',
2323
),
24+
python_requires='>={% if opts.lazy_import %}3.7{% else %}3.5{% endif %}',{# Lazy import requires module-level getattr #}
2425
setup_requires=[
2526
'libcst >= 0.2.5',
2627
],

0 commit comments

Comments
 (0)