mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00

# Aider chat conversation: USER: the regex in `setup.py` is supposed to remove the list of links that appears right below the image in README. but it doesn't remove the links to aider.chat urls, just the internal anchor links. fix that. ASSISTANT: To fix the regular expression in `setup.py` to remove all links, not just the internal anchor links, we need to modify the `setup.py` file. Here's the change: ```python setup.py <<<<<<< ORIGINAL long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description) long_description = re.sub(r"\n- \[.*\]\(#.*\)", "", long_description) ======= long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description) long_description = re.sub(r"\n- \[.*\]\(.*\)", "", long_description) >>>>>>> UPDATED ``` This change will ensure that all links, including those to `aider.chat` URLs, are removed from the `long_description`.
30 lines
857 B
Python
30 lines
857 B
Python
import re
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
with open("requirements.txt") as f:
|
|
requirements = f.read().splitlines()
|
|
|
|
from aider import __version__
|
|
|
|
with open("README.md", "r", encoding="utf-8") as f:
|
|
long_description = f.read()
|
|
long_description = re.sub(r"\n!\[.*\]\(.*\)", "", long_description)
|
|
long_description = re.sub(r"\n- \[.*\]\(.*\)", "", long_description)
|
|
|
|
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",
|
|
)
|