-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from setuptools import find_packages, setup
import re
from os import path
FILE_DIR = path.dirname(path.abspath(path.realpath(__file__)))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
install_requirement = f.readlines()
with open(path.join(FILE_DIR, 'lwe_plugin_provider_ai21', 'version.py')) as f:
version = re.match(r'^__version__ = "([\w\.]+)"$', f.read().strip())[1]
setup(
name="lwe-plugin-provider-ai21",
version=version,
author="Chad Phillips",
author_email="[email protected]",
description="LWE plugin: AI21 Provider plugin",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21",
packages=find_packages(),
install_requires=install_requirement,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
entry_points={
"lwe_plugins": [
"lwe_plugin_provider_ai21 = lwe_plugin_provider_ai21.plugin:ProviderAi21"
]
},
)