-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (64 loc) · 2.13 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
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import datetime
import sys
import pkg_resources
import pathlib
from version import __version__
# Parse arguments
if "--nightly" in sys.argv:
nightly = True
sys.argv.remove("--nightly")
else:
nightly = False
# Settings
project_name = "hcai-datasets"
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")
# Adjustment for nightly build
if nightly:
project_name += "-nightly"
datestring = datetime.datetime.now().strftime("%Y%m%d%H%M")
curr_version = pkg_resources.parse_version(__version__)
__version__ = f"{curr_version.base_version}.dev{datestring}"
# Setup
setup(
name=project_name,
version=__version__,
description="!Alpha Version! - This repository contains the backend server for the nova annotation ui (https://github.com/hcmlab/nova)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/hcmlab/nova-server",
author="Dominik Schiller",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
],
packages=find_packages(),
include_package_data=True,
python_requires=">=3.6, <4",
install_requires=[
"pymongo==3.12",
"decord;platform_machine=='AMD64'",
"numba",
"pandas==1.4",
],
extras_require={
"torch": ["torch"],
"tf" : [ "tensorflow==2.7", "tensorflow-datasets==4.4.0"]
}
)