From fb82a20d6046192473361de6e872596098d0724e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 17 Aug 2023 08:34:21 -0700 Subject: [PATCH] aider: Add python_requires='>=3.9' to setup.py. # Aider chat conversation: USER: Add python_requires='>=3.8' ASSISTANT: To add the `python_requires='>=3.8'` to the `setup ^C KeyboardInterrupt USER: Add python_requires='>=3.9' ASSISTANT: To add the `python_requires='>=3.9'` to the `setup.py` file, we need to modify the `setup()` function call to include this new argument. Here is the *edit block* for this change: ```python setup.py <<<<<<< HEAD setup( name="aider-chat", version=__version__, packages=find_packages(), include_package_data=True, install_requires=requirements, entry_points={ "console_scripts": [ "aider = aider.main:main", ], }, description="aider is GPT powered coding in your terminal", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/paul-gauthier/aider", ) ======= setup( name="aider-chat", version=__version__, packages=find_packages(), include_package_data=True, install_requires=requirements, python_requires='>=3.9', entry_points={ "console_scripts": [ "aider = aider.main:main", ], }, description="aider is GPT powered coding in your terminal", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/paul-gauthier/aider", ) >>>>>>> updated ``` This change ensures that the package will not be installed on Python versions lower than 3.9. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 1f12a0b64..bc6efe6ca 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ setup( packages=find_packages(), include_package_data=True, install_requires=requirements, + python_requires='>=3.9', entry_points={ "console_scripts": [ "aider = aider.main:main",