-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
66 lines (59 loc) · 1.71 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
"""Build and install script for ttools."""
import os
import re
import setuptools
with open('ttools/version.py') as fid:
try:
__version__, = re.findall( '__version__ = "(.*)"', fid.read() )
except:
raise ValueError("could not find version number")
with open("README.rst", "r") as fh:
long_description = fh.read()
packages = setuptools.find_packages(exclude=["tests", "ttools.templates"])
docs_require = ["sphinx"]
tests_require = ["pytest"]
setuptools.setup(
name="torch-tools",
version=__version__,
entry_points={
'console_scripts': [
'ttools.im2vid = ttools.__main__:im2vid',
'ttools.resize = ttools.__main__:resize',
'ttools.new = ttools.__main__:new_project',
]
},
author="Michaël Gharbi",
author_email="mgharbi@adobe.com",
description="A library of helpers to train, evaluate and visualize deep nets with PyTorch.",
long_description=long_description,
url="https://github.com/mgharbi/ttools",
packages=packages,
include_package_data=True,
license="MIT",
install_requires=[
"torch",
"tqdm",
"numpy",
"torchvision",
"coloredlogs",
"visdom",
"pyaml",
"imageio",
"imageio-ffmpeg",
"jinja2",
"seaborn",
"sqlalchemy",
],
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
],
extras_require={
"docs": docs_require,
"tests": tests_require,
"dev": docs_require + tests_require,
}
)