From 64e8b3d3a79a518ac7b1415651e524d760c4c6ef Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 30 Oct 2023 08:52:25 -0700 Subject: [PATCH] aider: Updated python_requires field to limit the package to Python versions 3.9-3.11. # Aider chat conversation: USER: how can i limit this package to python python versions 3.9-3.11 ? ASSISTANT: To limit the package to Python versions 3.9 to 3.11, you need to modify the `python_requires` field in the `setup` function in the `setup.py` file. Here is the *SEARCH/REPLACE block* for the change: ```python setup.py <<<<<<< SEARCH python_requires=">=3.9", ======= python_requires=">=3.9,<=3.11", >>>>>>> REPLACE ``` This change will ensure that the package can only be installed on Python versions from 3.9 up to and including 3.11. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b616865c8..2f686b61b 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ setup( "aider": ["queries/*"], }, install_requires=requirements, - python_requires=">=3.9", + python_requires=">=3.9,<=3.11", entry_points={ "console_scripts": [ "aider = aider.main:main",