-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (58 loc) · 1.99 KB
/
setup.py
File metadata and controls
67 lines (58 loc) · 1.99 KB
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
import os
import re
from setuptools import find_packages
from setuptools import setup
def get_version():
with open(
os.path.join(os.path.dirname(__file__), "src", "superannotate", "__init__.py")
) as f:
init = f.read()
version_re = re.compile(
r"""__version__ = ["']((\d+)\.(\d+)\.(\d+)((dev(\d+))?(b(\d+))?))['"]"""
)
return version_re.search(init).group(1)
sdk_version = get_version()
requirements = []
with open("requirements.txt") as f:
requirements.extend(f.read().splitlines())
with open("README.rst") as f:
long_description = f.read()
setup(
name="superannotate",
version=sdk_version,
package_dir={"": "src"},
packages=find_packages(where="src"),
package_data={
"superannotate.lib.app.server": ["*.txt", "*.sh", "*.rst", "Dockerfile"],
"superannotate.lib.app.server.templates": ["*.html"],
"superannotate.lib.app.server.deployment": ["*.ini", "*.sh"],
},
description="Python SDK to SuperAnnotate platform",
license="MIT",
author="SuperAnnotate AI",
author_email="support@superannotate.com",
url="https://github.com/superannotateai/superannotate-python-sdk",
long_description=long_description,
long_description_content_type="text/x-rst",
install_requires=requirements,
setup_requires=["wheel"],
entry_points={
"console_scripts": [
"superannotatecli = superannotate.lib.app.bin.superannotate:main"
]
},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
],
project_urls={
"Documentation": "https://superannotate.readthedocs.io/en/stable/",
},
python_requires=">=3.10",
include_package_data=True,
)