Skip to content

Commit

Permalink
Merge pull request #7 from thoppe/develop/auto_version
Browse files Browse the repository at this point in the history
Develop/auto version
  • Loading branch information
thoppe committed Feb 11, 2016
2 parents 2c70d14 + e299b7e commit c265183
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion hyperop/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._version import __version__
from .hyperop import hyperop, bounded_hyperop

__all__ = ['hyperop', 'bounded_hyperop']
__all__ = ['hyperop', 'bounded_hyperop', '__version__']
1 change: 1 addition & 0 deletions hyperop/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1"
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import os
from setuptools import setup

# Load the version string
exec(open('hyperop/_version.py').read())

setup(
name="hyperop",
packages=['hyperop'],
version="1.0",
download_url = 'https://github.com/thoppe/python-hyperoperators/tarball/1.0',
version=__version__,
download_url='https://github.com/thoppe/python-hyperoperators/tarball/1.0',
author="Travis Hoppe",
author_email="[email protected]",
description=(
"Hyperoperators (succession, addition, multiplication, exponentiation, tetration and higher) in python."),
license = "Creative Commons Attribution-ShareAlike 4.0 International License",
keywords = ["math","hyperoperators","uparrow","large-numbers",],
keywords = ["math", "hyperoperators", "uparrow", "large-numbers", ],
url="https://github.com/thoppe/python-hyperoperators",
test_suite="tests",
)
7 changes: 7 additions & 0 deletions tests/hyperop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import itertools
import math
import operator
import hyperop as hyperop_lib
from hyperop import hyperop, bounded_hyperop

testing_values = range(1, 15)
Expand Down Expand Up @@ -159,5 +160,11 @@ def test_special_case_a0(self):
for n in range(4, 15):
assert H[n](0, b) == (b % 2 == 0)


class CheckMeta(unittest.TestCase):

def test_VersionNumberExists(self):
hyperop_lib.__version__

if __name__ == '__main__':
unittest.main()

0 comments on commit c265183

Please sign in to comment.