Skip to content

Commit 649d82f

Browse files
craymichaelfacebook-github-bot
authored andcommitted
Reduce redundant major.minor specification in setup.py (#1500)
Summary: Pull Request resolved: #1500 Reduce redundant major.minor specification in setup.py by reusing required major/minor variables Reviewed By: cyrjano Differential Revision: D69695278 fbshipit-source-id: b8949dd844fe78d85d848db811db488e945935f1
1 parent 0e70a12 commit 649d82f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ def get_package_files(root, subdirs):
152152
],
153153
long_description=long_description,
154154
long_description_content_type="text/markdown",
155-
python_requires=">=3.9",
155+
python_requires=">={required_major}.{required_minor}".format(
156+
required_minor=REQUIRED_MINOR,
157+
required_major=REQUIRED_MAJOR,
158+
),
156159
install_requires=[
157160
"matplotlib",
158161
"numpy<2.0",

0 commit comments

Comments
 (0)