-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
55 lines (48 loc) · 1.78 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("./clarifai/__init__.py") as f:
content = f.read()
_search_version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content)
assert _search_version
version = _search_version.group(1)
with open("requirements.txt", "r") as fh:
install_requires = fh.read().split('\n')
if install_requires and install_requires[-1] == '':
# Remove the last empty line
install_requires = install_requires[:-1]
packages = setuptools.find_namespace_packages(include=["clarifai*"])
setuptools.setup(
name="clarifai",
version=f"{version}",
author="Clarifai",
author_email="[email protected]",
description="Clarifai Python SDK",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Clarifai/clarifai-python",
packages=packages,
classifiers=[
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
license="Apache 2.0",
python_requires='>=3.8',
install_requires=install_requires,
extras_require={
'all': ["pycocotools==2.0.6"],
},
entry_points={
"console_scripts": ["clarifai = clarifai.cli.base:cli",],
},
include_package_data=True)