forked from alexandonian/pretorched-x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (36 loc) · 1.45 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
from __future__ import print_function, division, absolute_import
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
about = {}
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'pretorched', '__version__.py'), encoding='utf-8') as f:
exec(f.read(), about)
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
url=about['__url__'], # Optional
name=about['__title__'], # Required
author=about['__author__'], # Optional
version=about['__version__'], # Required
keywords=about['__keywords__'], # Optional
author_email=about['__email__'], # Optional
description=about['__description__'], # Required
long_description=long_description, # Optional
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
install_requires=['torch', 'torchvision', 'munch'], # Optional
packages=find_packages(exclude=['data', 'examples']), # Required
)