fix: replace setup.py with pyproject.toml

This commit is contained in:
QiMington 2024-11-15 14:15:55 +08:00
parent ed07ce1098
commit 1c1dcc0e18
2 changed files with 25 additions and 26 deletions

View File

@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools>=62.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dify-oapi"
version = "0.0.1"
description = "A package for interacting with the Dify Service-API"
authors = [
{name = "QiMington", email = "qimington@gmail.com"}
]
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.7"
dependencies = [
"pydantic>=1.10,<2.5",
"httpx>=0.24,<1.0"
]
keywords = ["dify", "nlp", "ai", "language-processing"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

View File

@ -1,26 +0,0 @@
from setuptools import setup
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="dify-oapi",
version="0.0.1",
author="Dify",
author_email="hello@dify.ai",
description="A package for interacting with the Dify Service-API",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/langgenius/dify",
license="MIT",
packages=["dify_oapi"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=["pydantic", "httpx"],
keywords="dify nlp ai language-processing",
include_package_data=True,
)