-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (70 loc) · 2.93 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
# VSenseBox - Python toolbox for visual sensing
# GNU General Public License v3 or later (GPLv3+)
# Copyright (C) 2024 UMONS-Numediart
from setuptools import find_packages, setup
def read_requirements():
with open("requirements/requirements.txt") as req_txt:
return [line for line in req_txt.read().splitlines()]
def get_version_string():
version_py = "vsensebox/__init__.py"
with open(version_py) as version_file:
for line in version_file.read().splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
def get_packages():
import yaml
from yaml.loader import SafeLoader
packages = find_packages()
package_data = {}
with open("setup_extra.yaml") as setup_extra:
extra_dict = yaml.load(setup_extra, Loader=SafeLoader)
packages = packages + extra_dict['extra_data']
packages = list(set(packages))
for p in packages: package_data.update({p: ["*"]})
return packages, package_data
def main_setup():
long_description = open("README.md", encoding="utf-8").read()
packages, package_data = get_packages()
setup(
name="vsensebox",
version=get_version_string(),
url="https://github.com/numediart/vsensebox",
license="GPL-3.0-or-later",
description="VSenseBox - Python toolbox for visual sensing.",
long_description=long_description,
long_description_content_type="text/markdown",
packages=packages,
package_data=package_data,
include_package_data=True,
author="Ratha SIV",
maintainer="rathaROG",
install_requires=read_requirements(),
keywords=['Toolbox', 'Detect', 'Track', 'Visual', 'Sense'],
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Software Development",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
],
)
if __name__ == "__main__":
main_setup()