-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
70 lines (66 loc) · 2.14 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from setuptools import setup, find_packages
from os import path
AUTHOR = 'Jina AI'
AUTHOR_EMAIL = '[email protected]'
LICENSE = 'Apache 2.0'
GITHUB_URL = 'https://github.com/jina-ai/vectordb/'
DOWNLOAD_URL = 'https://github.com/jina-ai/vectordb/tags'
try:
pkg_name = 'vectordb'
libinfo_py = path.join(pkg_name, '__init__.py')
with open(libinfo_py, 'r', encoding='utf-8') as f:
libinfo_content = f.readlines()
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'
try:
with open('README.md', encoding='utf-8') as fp:
_long_description = fp.read()
except FileNotFoundError:
_long_description = ''
# Read the contents of requirements.txt
with open(path.join(path.dirname(__file__), 'requirements.txt'), 'r') as f:
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',
long_description=_long_description,
long_description_content_type='text/markdown',
author= AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
url=GITHUB_URL,
download_url=DOWNLOAD_URL,
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',
entry_points={
'console_scripts': [
'vectordb=vectordb.__main__:vectordb',
],
},
extras_require={
'test': [
'pytest',
'pytest-asyncio',
'pytest-repeat',
'flaky',
'pytest-timeout'
],
},
install_requires=requirements,
)