-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
89 lines (81 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from setuptools import find_packages, setup
# package metadata
_description = 'SDK for Hubble API at Jina AI.'
_setup_requires = ['setuptools>=18.0', 'wheel']
_python_requires = '>=3.7.0'
_author = 'Jina AI'
_email = 'hello@jina.ai'
_keywords = (
'jina neural-search neural-network deep-learning pretraining '
'fine-tuning pretrained-models triplet-loss metric-learning '
'siamese-network few-shot-learning'
)
_url = 'https://github.com/jina-ai/jina-hubble-sdk/'
_download_url = 'https://github.com/jina-ai/jina-hubble-sdk/tags'
_classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Environment :: Console',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
_project_urls = {
'Source': 'https://github.com/jina-ai/jina-hubble-sdk/',
'Tracker': 'https://github.com/jina-ai/jina-hubble-sdk/issues',
}
_license = 'Apache 2.0'
_package_exclude = ['*.tests', '*.tests.*', 'tests.*', 'tests']
# package requirements
try:
with open('requirements.txt', 'r') as f:
_main_deps = f.readlines()
except FileNotFoundError:
_main_deps = []
try:
with open('requirements-dev.txt', 'r') as f:
_extra_deps = {'full': f.read().splitlines()}
_extra_deps['full'].remove('-r requirements.txt')
_extra_deps['full'].extend(_main_deps)
except FileNotFoundError:
_extra_deps = {}
# package long description
try:
with open('README.md', encoding='utf8') as fp:
_long_description = fp.read()
except FileNotFoundError:
_long_description = ''
if __name__ == '__main__':
setup(
name='jina-hubble-sdk',
packages=find_packages(exclude=_package_exclude),
include_package_data=True,
description=_description,
author=_author,
author_email=_email,
url=_url,
license=_license,
download_url=_download_url,
long_description=_long_description,
long_description_content_type='text/markdown',
zip_safe=False,
setup_requires=_setup_requires,
install_requires=_main_deps,
extras_require=_extra_deps,
python_requires=_python_requires,
classifiers=_classifiers,
project_urls=_project_urls,
keywords=_keywords,
entry_points={
'console_scripts': [
'jina-auth=hubble.__main__:main',
'jina-hub=hubble.executor.__main__:main',
'docker-credential-jina-hubble=hubble.dockerauth:main',
],
},
)