diff --git a/README.md b/README.md index c76e1ef..8956ab9 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Put your OpenAI API key in the platform configuration directory for chap, e.g., ## Sessions & Commandline Parameters -Details of session handling & commandline arguments are in flux. For now, the deprecated `chap-ask`, `chap-render` and `chap-tui` are still supported but they will be removed in the future. +Details of session handling & commandline arguments are in flux. By default, a new session is created. It is saved to the user's state directory (e.g., `~/.local/state/chap` on linux/unix systems). diff --git a/pyproject.toml b/pyproject.toml index e8764ee..a69c6ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,16 +4,47 @@ [build-system] requires = [ + "setuptools>=61", + "setuptools_scm[toml]>=6.0", +] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +package-dir = {"" = "src"} + +[tool.setuptools.packages.find] +where = ["src"] + +[project] +name="chap" +authors = [{name = "Jeff Epler", email = "jepler@gmail.com"}] +description = "Interact with the OpenAI ChatGPT API (and other text generators)" +dynamic = ["readme","version"] +dependencies = [ "click", "dataclasses_json", "httpx", "lorem-text", "platformdirs", - "setuptools>=45", - "setuptools_scm[toml]>=6.0", "textual", - "wheel", + "websockets", ] -build-backend = "setuptools.build_meta" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: Implementation :: PyPy", + "Programming Language :: Python :: Implementation :: CPython", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +[project.urls] +homepage = "https://github.com/jepler/chap" +repository = "https://github.com/jepler/chap" + +[project.scripts] +chap = "chap.__main__:main" + [tool.setuptools_scm] write_to = "src/chap/__version__.py" +[tool.setuptools.dynamic] +readme = {file = ["README.md"]} diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 03e5769..0000000 --- a/setup.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# SPDX-FileCopyrightText: 2023 Jeff Epler -# -# SPDX-License-Identifier: MIT - -[metadata] -name = chap -author = Jeff Epler -author_email = jepler@gmail.com -description = Interact with the OpenAI ChatGPT API -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/jepler/chap -classifiers = - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: Implementation :: PyPy - Programming Language :: Python :: Implementation :: CPython - License :: OSI Approved :: MIT License - Operating System :: OS Independent - -[options] -package_dir = - =src -packages = chap -python_requires = >=3.9 -[options.entry_points] -console_scripts = - chap = chap.__main__:main - chap-cli = chap.commands.cli:main - chap-tui = chap.commands.tui:main - chap-render = chap.commands.render:main - -[options.package_data] -#chap = py.typed - -chap = - *.css