diff --git a/VERSION b/VERSION deleted file mode 100644 index be94e6f53db6b394e5e7cc7ceb12115a81870306..0000000000000000000000000000000000000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.2.2 diff --git a/docs b/docs index c42c8525ee3a593ef7e63f7146b9cca2a7e0c7f7..47a1165d5558515d6df67fb20b3032172de56279 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit c42c8525ee3a593ef7e63f7146b9cca2a7e0c7f7 +Subproject commit 47a1165d5558515d6df67fb20b3032172de56279 diff --git a/nd2reader/__init__.py b/nd2reader/__init__.py index ef62aa187148681ea99b137173358027c1fa6d14..8354a4711320d1324e5628681b91a9682120ec66 100644 --- a/nd2reader/__init__.py +++ b/nd2reader/__init__.py @@ -2,9 +2,4 @@ from os import path from nd2reader.reader import ND2Reader from nd2reader.legacy import Nd2 -VERSION = '' -CURRENT_DIRECTORY = path.abspath(path.dirname(__file__)) -with open(path.join(CURRENT_DIRECTORY, '..', 'VERSION')) as version_file: - VERSION = version_file.read().strip() - -__version__ = VERSION +__version__ = '3.2.3' diff --git a/release.txt b/release.txt index f367970ec21d043ac00b037a719182b17f608075..f298668e465f30bf1bc9c2c5e3cb7e27dde72d80 100644 --- a/release.txt +++ b/release.txt @@ -1,4 +1,4 @@ -Update version in 'VERSION' file +Update version in 'nd2reader/__init__.py' file Rebuild sphinx documentation diff --git a/setup.py b/setup.py index 631f6f10225fd3160d6e54829418824aec41339e..7688e05cdf255ccc9aaaf3be2ad9832112d2c65c 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,6 @@ from os import path from setuptools import setup - -VERSION = '' -CURRENT_DIRECTORY = path.abspath(path.dirname(__file__)) -with open(path.join(CURRENT_DIRECTORY, 'VERSION')) as version_file: - VERSION = version_file.read().strip() +from nd2reader import __version__ as VERSION if __name__ == '__main__': setup( diff --git a/sphinx/conf.py b/sphinx/conf.py index 1a69a627ea35dc7943055a075a1ed9adf0360de4..7a27c2811b4f73bf6874abb1e70d8b5a40c4bdee 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -1,13 +1,8 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from os import path import sphinx_bootstrap_theme from recommonmark.parser import CommonMarkParser - -VERSION = '' -CURRENT_DIRECTORY = path.abspath(path.dirname(__file__)) -with open(path.join(CURRENT_DIRECTORY, '..', 'VERSION')) as version_file: - VERSION = version_file.read().strip() +from nd2reader import __version__ as VERSION # -- General configuration ------------------------------------------------