Skip to content
Snippets Groups Projects
Commit 18e1add3 authored by Jim Rybarski's avatar Jim Rybarski
Browse files

revert versions to the way they were since it broke publishing, added unit...

revert versions to the way they were since it broke publishing, added unit test to ensure they're in sync
parent cd4feea3
No related branches found
No related tags found
No related merge requests found
from setuptools import setup from setuptools import setup
from nd2reader import __version__
VERSION = '2.0.0'
if __name__ == '__main__': if __name__ == '__main__':
setup( setup(
...@@ -10,12 +11,12 @@ if __name__ == '__main__': ...@@ -10,12 +11,12 @@ if __name__ == '__main__':
'six>=1.4, <2.0', 'six>=1.4, <2.0',
'xmltodict>=0.9.2, <1.0' 'xmltodict>=0.9.2, <1.0'
], ],
version=__version__, version=VERSION,
description='A tool for reading ND2 files produced by NIS Elements', description='A tool for reading ND2 files produced by NIS Elements',
author='Jim Rybarski', author='Jim Rybarski',
author_email='jim@rybarski.com', author_email='jim@rybarski.com',
url='https://github.com/jimrybarski/nd2reader', 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'], keywords=['nd2', 'nikon', 'microscopy', 'NIS Elements'],
classifiers=['Development Status :: 5 - Production/Stable', classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research', 'Intended Audience :: Science/Research',
......
import nd2reader import nd2reader
import unittest import unittest
from setup import VERSION
class VersionTests(unittest.TestCase): 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 # just make sure the version number exists and is the type we expect
self.assertEqual(type(nd2reader.__version__), str) self.assertEqual(type(nd2reader.__version__), str)
def test_versions_in_sync(self):
self.assertEqual(nd2reader.__version__, VERSION)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment