Switch to pyproject.toml
This commit is contained in:
parent
1e04769e9d
commit
80428e1bbf
|
@ -6,6 +6,7 @@ import json
|
|||
import sys
|
||||
import gptc
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="General Purpose Text Classifier", prog="gptc"
|
||||
)
|
||||
|
@ -51,3 +52,7 @@ else:
|
|||
print(classifier.classify(text))
|
||||
else:
|
||||
print(json.dumps(classifier.confidence(text)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
29
pyproject.toml
Normal file
29
pyproject.toml
Normal file
|
@ -0,0 +1,29 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=61.0.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "gptc"
|
||||
version = "2.0.0"
|
||||
description = "General-purpose text classifier"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}]
|
||||
license = { file = "LICENSE" }
|
||||
classifiers = [
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = []
|
||||
requires-python = ">=3.7"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://git.kj7rrv.com/kj7rrv/gptc"
|
||||
|
||||
[project.scripts]
|
||||
gptc = "gptc.__main__:main"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["gptc"]
|
17
setup.py
17
setup.py
|
@ -1,17 +0,0 @@
|
|||
import setuptools
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
setuptools.setup(
|
||||
name="gptc",
|
||||
version="2.0.0",
|
||||
description="General-purpose text classifier",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
packages=setuptools.find_packages(),
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
python_requires=">=3.6",
|
||||
)
|
Loading…
Reference in New Issue
Block a user