2023-05-29 21:12:10 +08:00
|
|
|
from setuptools import setup, find_packages
|
2023-06-08 22:55:28 +08:00
|
|
|
from os import path
|
2023-09-18 20:31:45 +08:00
|
|
|
AUTHOR = 'Jina AI'
|
|
|
|
AUTHOR_EMAIL = 'hello@jina.ai'
|
|
|
|
LICENSE = 'Apache 2.0'
|
|
|
|
GITHUB_URL = 'https://github.com/jina-ai/vectordb/'
|
|
|
|
DOWNLOAD_URL = 'https://github.com/jina-ai/vectordb/tags'
|
2023-06-08 22:55:28 +08:00
|
|
|
try:
|
|
|
|
pkg_name = 'vectordb'
|
|
|
|
libinfo_py = path.join(pkg_name, '__init__.py')
|
2023-09-18 20:31:45 +08:00
|
|
|
with open(libinfo_py, 'r', encoding='utf-8') as f:
|
|
|
|
libinfo_content = f.readlines()
|
2023-06-08 22:55:28 +08:00
|
|
|
version_line = [l.strip() for l in libinfo_content if l.startswith('__version__')][
|
|
|
|
0
|
|
|
|
]
|
|
|
|
exec(version_line) # gives __version__
|
|
|
|
except FileNotFoundError:
|
|
|
|
__version__ = '0.0.0'
|
2023-05-29 21:12:10 +08:00
|
|
|
|
2023-07-10 18:26:15 +08:00
|
|
|
try:
|
|
|
|
with open('README.md', encoding='utf-8') as fp:
|
|
|
|
_long_description = fp.read()
|
|
|
|
except FileNotFoundError:
|
|
|
|
_long_description = ''
|
|
|
|
|
|
|
|
|
2023-05-29 21:12:10 +08:00
|
|
|
# Read the contents of requirements.txt
|
2023-07-14 04:18:16 +08:00
|
|
|
with open(path.join(path.dirname(__file__), 'requirements.txt'), 'r') as f:
|
2023-05-29 21:12:10 +08:00
|
|
|
requirements = f.read().splitlines()
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='vectordb',
|
|
|
|
version=__version__,
|
|
|
|
description='The Python VectorDB. Build your vector database from working as a library to scaling as a database in the cloud',
|
2023-07-10 18:26:15 +08:00
|
|
|
long_description=_long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2023-09-18 20:31:45 +08:00
|
|
|
author= AUTHOR,
|
|
|
|
author_email=AUTHOR_EMAIL,
|
|
|
|
license=LICENSE,
|
|
|
|
url=GITHUB_URL,
|
|
|
|
download_url=DOWNLOAD_URL,
|
2023-05-29 21:12:10 +08:00
|
|
|
packages=find_packages(),
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: 3.10',
|
|
|
|
'Programming Language :: Python :: 3.11',
|
|
|
|
],
|
|
|
|
python_requires='>=3.7',
|
2023-06-15 23:53:59 +08:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2023-06-19 17:25:44 +08:00
|
|
|
'vectordb=vectordb.__main__:vectordb',
|
2023-06-15 23:53:59 +08:00
|
|
|
],
|
|
|
|
},
|
2023-05-29 21:12:10 +08:00
|
|
|
extras_require={
|
|
|
|
'test': [
|
|
|
|
'pytest',
|
|
|
|
'pytest-asyncio',
|
2023-06-22 15:29:06 +08:00
|
|
|
'pytest-repeat',
|
|
|
|
'flaky',
|
|
|
|
'pytest-timeout'
|
2023-05-29 21:12:10 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
install_requires=requirements,
|
|
|
|
)
|