-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (52 loc) · 1.65 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
import re
import io
from setuptools import setup, find_packages
def get_version():
__version__ = re.search(
r'__VERSION__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open('sacreeos/__init__.py', encoding='utf_8_sig').read()
).group(1)
return __version__
def get_description():
__version__ = re.search(
r'__DESCRIPTION__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open('sacreeos/__init__.py', encoding='utf_8_sig').read()
).group(1)
return __version__
def get_long_description():
with open('README.md') as f:
long_description = f.read()
return long_description
setup(
name='sacreeos',
version=get_version(),
description=get_description(),
long_description_content_type='text/markdown',
long_description=get_long_description(),
url='https://github.com/jchenghu/sacreeos',
author='Jia Cheng Hu',
author_email='jia.jiachenghu@gmail.com',
license='Apache License 2.0',
python_requires='>=3.7',
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: C++',
'Programming Language :: Python :: 3 :: Only',
],
keywords=['self-critical sequence training, computer vision, image captioning, evaluation'],
packages=find_packages(),
install_requires=[
'torch',
'numpy',
'typing'
],
entry_points={
'console_scripts': [
'sacreeos = sacreeos.sacreeos:main'
],
}
)