-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·63 lines (57 loc) · 1.84 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
from os import path
from setuptools import setup, find_namespace_packages
_long_description = open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding='utf8').read()
def _load_requirements(filename):
req = []
with open(filename) as fr:
for line in fr.readlines():
if '#' in line:
line = line[:line.index('#')]
if '-f' in line:
continue
line = line.strip()
if not line:
continue
req += [line]
return req
setup(
name='Vision',
description='Vision Segmentation and Classification',
long_description=_long_description,
author='Daniel Dagnino',
author_email='ddagnino@gmail.com',
classifiers=[
'Development Status :: Beta',
'Intended Audience :: Job Interviewer',
'Topic :: Software Development :: Build Tools',
'License :: Proprietary',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
python_requires='>=3.10.4',
install_requires=[],
extras_require={
'pytest': _load_requirements('requirements.txt'),
'train': _load_requirements('requirements.txt'),
'infer': _load_requirements('requirements.txt'),
},
keywords='Vision Segmentation Classification',
package_dir={"": "."},
packages=find_namespace_packages(where="."),
# use_scm_version=True,
use_scm_version={
'version_scheme': 'post-release',
'local_scheme': 'node-and-date',
"relative_to": __file__,
"root": "..",
},
# setup_requires=['setuptools_scm'],
entry_points={
'console_scripts': [
'train = vision.cli.train:main',
'inference = vision.cli.inference:main',
]
},
package_data={'': ['*/*.json']},
include_package_data=True
)