diff --git a/click_threading/__init__.py b/click_threading/__init__.py index 7d9eab6..3d022d0 100644 --- a/click_threading/__init__.py +++ b/click_threading/__init__.py @@ -21,7 +21,7 @@ try: except ImportError: from futures import Future as _Future -__version__ = '0.4.2' +__version__ = '0.4.3' _CTX_WORKER_KEY = __name__ + '.uiworker' diff --git a/docs/conf.py b/docs/conf.py index 9e2d488..48a8530 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,15 +25,8 @@ project = 'click_threading' with open(os.path.join(os.path.dirname(__file__), '../LICENSE')) as f: copyright = next(iter(f))[len('Copyright (c) '):] -try: - # The full version, including alpha/beta/rc tags. - release = pkg_resources.require(project)[0].version -except pkg_resources.DistributionNotFound: - print('To build the documentation, the distribution information of ' - '{} has to be available. Run "setup.py develop" to do ' - 'this.'.format(project)) - sys.exit(1) - +import click_threading +release = click_threading.__version__ version = '.'.join(release.split('.')[:2]) # The short X.Y version. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'