Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 1.23 KB
from setuptools import setup
version_dict = {}
exec(open("./torchbearer/version.py").read(), version_dict)
import sys
if sys.version_info[0] >= 3:
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
else:
long_description = 'A model training library for pytorch'
setup(
name='torchbearer',
version=version_dict['__version__'],
packages=['torchbearer', 'torchbearer.metrics', 'torchbearer.callbacks', 'torchbearer.callbacks.imaging', 'tests', 'tests.metrics', 'tests.callbacks', 'tests.callbacks.imaging'],
url='https://github.com/pytorchbearer/torchbearer',
download_url='https://github.com/pytorchbearer/torchbearer/archive/' + version_dict['__version__'] + '.tar.gz',
classifiers=[
"License :: OSI Approved :: MIT License"
],
author='Matt Painter',
author_email='mp2u16@ecs.soton.ac.uk',
description='A model training library for pytorch',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=['torch>=1.0.0', 'numpy', 'tqdm'],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
)
You can’t perform that action at this time.