Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 5d3abdd

Browse files
authored
Add python_requires to generated setup.py (#294)
1 parent 1d04e9c commit 5d3abdd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)