mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
aider: Updated the setup.py
to use the README.md
as the long description source.
# Context: USER: update the `setup.py` to use README.md as the long description source ASSISTANT: To update the `setup.py` to use the `README.md` as the long description source, follow these steps: 1. Read the contents of the `README.md` file and store it in a variable. 2. Add the `long_description` and `long_description_content_type` arguments to the `setup()` function. Here's the updated `setup.py`: ```python setup.py <<<<<<< ORIGINAL from setuptools import find_packages, setup with open("requirements.txt") as f: requirements = f.read().splitlines() setup( name="aider-chat", version="0.5.0", packages=find_packages(), install_requires=requirements, entry_points={ "console_scripts": [ "aider = aider.main:main", ], }, ) ======= from setuptools import find_packages, setup with open("requirements.txt") as f: requirements = f.read().splitlines() with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setup( name="aider-chat", version="0.5.0", packages=find_packages(), install_requires=requirements, entry_points={ "console_scripts": [ "aider = aider.main:main", ], }, long_description=long_description, long_description_content_type="text/markdown", ) >>>>>>> UPDATED ```
This commit is contained in:
parent
d65e782e80
commit
ece1cdd557
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
@ -3,6 +3,9 @@ from setuptools import find_packages, setup
|
|||
with open("requirements.txt") as f:
|
||||
requirements = f.read().splitlines()
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name="aider-chat",
|
||||
version="0.5.0",
|
||||
|
@ -13,4 +16,6 @@ setup(
|
|||
"aider = aider.main:main",
|
||||
],
|
||||
},
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue