Skip to content

Commit

Permalink
Switch fully to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Mar 13, 2023
1 parent a2bdd02 commit e519dfe
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
39 changes: 35 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"}]
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"]}
37 changes: 0 additions & 37 deletions setup.cfg

This file was deleted.

0 comments on commit e519dfe

Please sign in to comment.