File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from ._version import __version__
12from .hyperop import hyperop , bounded_hyperop
23
3- __all__ = ['hyperop' , 'bounded_hyperop' ]
4+ __all__ = ['hyperop' , 'bounded_hyperop' , '__version__' ]
Original file line number Diff line number Diff line change 1+ __version__ = "1.1"
Original file line number Diff line number Diff line change 1- import os
21from setuptools import setup
32
3+ # Load the version string
4+ exec (open ('hyperop/_version.py' ).read ())
5+
46setup (
57 name = "hyperop" ,
68 packages = ['hyperop' ],
7- version = "1.0" ,
9+ version = __version__ ,
810 download_url = 'https://github.com/thoppe/python-hyperoperators/tarball/1.0' ,
911 author = "Travis Hoppe" ,
1012 author_email = "travis.hoppe+hyperop@gmail.com" ,
Original file line number Diff line number Diff line change 22import itertools
33import math
44import operator
5+ import hyperop as hyperop_lib
56from hyperop import hyperop , bounded_hyperop
67
78testing_values = range (1 , 15 )
@@ -159,5 +160,11 @@ def test_special_case_a0(self):
159160 for n in range (4 , 15 ):
160161 assert H [n ](0 , b ) == (b % 2 == 0 )
161162
163+
164+ class CheckMeta (unittest .TestCase ):
165+
166+ def test_VersionNumberExists (self ):
167+ hyperop_lib .__version__
168+
162169if __name__ == '__main__' :
163170 unittest .main ()
You can’t perform that action at this time.
0 commit comments