mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Add setup.py file that reads requirements.txt for dependencies and sets up CLI script.
# Context: USER: make a setup.py for this project. it includes a cli script in main(). have setup.py read requirements.txt to get the install_requires ASSISTANT: To create a `setup.py` file for this project, we'll use the `setuptools` package. We'll also read the `requirements.txt` file to get the `install_requires` dependencies. Here's the change: ```python setup.py <<<<<<< ORIGINAL ======= from setuptools import setup, find_packages with open("requirements.txt") as f: requirements = f.read().splitlines() setup( name="aider", version="0.1.0", packages=find_packages(), install_requires=requirements, entry_points={ "console_scripts": [ "aider = aider.main:main", ], }, ) >>>>>>> UPDATED ``` This will create a `setup.py` file that reads the `requirements.txt` file for dependencies and sets up the CLI script for the `main()` function in `aider.main`.
This commit is contained in:
parent
e32fb7c033
commit
2333e62b6a
1 changed files with 16 additions and 0 deletions
16
setup.py
16
setup.py
|
@ -0,0 +1,16 @@
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
with open("requirements.txt") as f:
|
||||||
|
requirements = f.read().splitlines()
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="aider",
|
||||||
|
version="0.1.0",
|
||||||
|
packages=find_packages(),
|
||||||
|
install_requires=requirements,
|
||||||
|
entry_points={
|
||||||
|
"console_scripts": [
|
||||||
|
"aider = aider.main:main",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue