This allows use of `pip install -r requirements.txt` by users who prefer that way of trying out the package, while not affecting my typical usage. This does create a dependency on a beta feature of setuptools, so it could be fragile. Closes: #5
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
# SPDX-FileCopyrightText: 2021 Jeff Epler
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
[build-system]
|
|
requires = [
|
|
"setuptools>=68.2.2",
|
|
"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"]
|
|
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"], content-type="text/markdown"}
|
|
dependencies = {file = "requirements.txt"}
|