forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (45 loc) · 1.52 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
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
import setuptools
import label_studio
import sys
print(label_studio.package_name, label_studio.__version__)
# Readme
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
# Module dependencies
requirements, dependency_links = [], []
with open('deploy/requirements.txt') as f:
for line in f.read().splitlines():
if line.startswith('-e git+'):
dependency_links.append(line.replace('-e ', ''))
else:
requirements.append(line)
setuptools.setup(
name=label_studio.package_name,
version=label_studio.__version__,
author='Heartex',
description='Label Studio annotation tool',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/heartexlabs/label-studio',
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
install_requires=requirements,
dependency_links=dependency_links,
python_requires='>=3.6',
entry_points={
'console_scripts': [
'label-studio=label_studio.server:main',
],
},
extras_require={
'mysql': ['mysqlclient']
}
)