mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: replace setup.py with pyproject.toml
This commit is contained in:
parent
ed07ce1098
commit
1c1dcc0e18
25
sdks/python-client/pyproject.toml
Normal file
25
sdks/python-client/pyproject.toml
Normal 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",
|
||||
]
|
|
@ -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,
|
||||
)
|
Loading…
Reference in New Issue
Block a user