gpt-4-0613· openai
from Coding-assistant chat logs from public GitHub repos
change the file to use poetry instead of setuptools
- User
change the file to use poetry instead of setuptools
- Assistant
To make this change we need to modify
pyproject.tomlto:- Replace the
[build-system]section to use poetry. - Update the
[project]section to use poetry's format. - Update the
dependenciessection to use poetry's format. - Update the
classifierssection to use poetry's format. - Update the
[project.scripts]section to use poetry's format.
Here are the SEARCH/REPLACE blocks:
pyproject.toml
toml<<<<<<< SEARCH [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" ======= [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"pyproject.toml
toml<<<<<<< SEARCH [project] name = "askGPT" version = "0.7.7" authors = [ { name="Meir Michanie", email="[email]" }, ] description = "askGPT is a simple command line tool for interacting with OpenAI's API." readme = "README.md" requires-python = ">=3.7" keywords = [ "openai", "gpt-3", "cli", "cmd2" ] ======= [tool.poetry] name = "askGPT" version = "0.7.7" description = "askGPT is a simple command line tool for interacting with OpenAI's API." authors = ["Meir Michanie <[email]>"] readme = "README.md" keywords = ["openai", "gpt-3", "cli", "cmd2"] python = ">=3.7"pyproject.toml
toml<<<<<<< SEARCH dependencies = [ 'openai', 'toml', 'click', 'rich', 'backoff' ] ======= [tool.poetry.dependencies] python = "^3.7" openai = "*" toml = "*" click = "*" rich = "*" backoff = "*"pyproject.toml
toml - Replace the