forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (52 loc) · 2.02 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
"""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
# python 3.9 warning
if sys.version_info[0] == 3 and sys.version_info[1] >= 9:
print()
print('~========================================================~')
print('| Your python version is %i.%i and Label Studio has a |' % (sys.version_info[0], sys.version_info[1]))
print('| lot of installation problems with this Python version. |')
print('| Please use Python 3.6 - 3.8 to avoid problems with |')
print('| your installation. |')
print('~========================================================~')
print()
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',
author_email="[email protected]",
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 :: MIT 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',
],
}
)