Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit b0ed9bd

Browse files
Refactor version string
Fixes #163
1 parent 955d462 commit b0ed9bd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

inferno/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
from . import io
77
from . import trainers
88
from . import utils
9+
from .version import __version__
10+
911

1012
__all__ = ['extensions', 'io', 'trainers', 'utils']
1113

1214
__author__ = """Nasim Rahaman"""
1315
__email__ = 'nasim.rahaman@iwr.uni-heidelberg.de'
14-
__version__ = '0.3.1'

inferno/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.3.1'

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""The setup script."""
55

66
from setuptools import setup, find_packages
7+
from inferno import __version__
78

89
with open('README.rst') as readme_file:
910
readme = readme_file.read()
@@ -38,7 +39,7 @@
3839

3940
setup(
4041
name='inferno-pytorch',
41-
version='0.3.1',
42+
version=__version__,
4243
description="Inferno is a little library providing utilities and convenience functions/classes around PyTorch.",
4344
long_description=readme + '\n\n' + history,
4445
author="Nasim Rahaman",

0 commit comments

Comments
 (0)