Browse Source

revert versions to the way they were since it broke publishing, added unit test to ensure they're in sync

feature/load_slices
Jim Rybarski 9 years ago
parent
commit
18e1add3c8
2 changed files with 9 additions and 4 deletions
  1. +4
    -3
      setup.py
  2. +5
    -1
      tests/version.py

+ 4
- 3
setup.py View File

@ -1,5 +1,6 @@
from setuptools import setup
from nd2reader import __version__
VERSION = '2.0.0'
if __name__ == '__main__':
setup(
@ -10,12 +11,12 @@ if __name__ == '__main__':
'six>=1.4, <2.0',
'xmltodict>=0.9.2, <1.0'
],
version=__version__,
version=VERSION,
description='A tool for reading ND2 files produced by NIS Elements',
author='Jim Rybarski',
author_email='jim@rybarski.com',
url='https://github.com/jimrybarski/nd2reader',
download_url='https://github.com/jimrybarski/nd2reader/tarball/%s' % __version__,
download_url='https://github.com/jimrybarski/nd2reader/tarball/%s' % VERSION,
keywords=['nd2', 'nikon', 'microscopy', 'NIS Elements'],
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',


+ 5
- 1
tests/version.py View File

@ -1,8 +1,12 @@
import nd2reader
import unittest
from setup import VERSION
class VersionTests(unittest.TestCase):
def test_versions_in_sync(self):
def test_module_version_type(self):
# just make sure the version number exists and is the type we expect
self.assertEqual(type(nd2reader.__version__), str)
def test_versions_in_sync(self):
self.assertEqual(nd2reader.__version__, VERSION)

Loading…
Cancel
Save