<filename>ckanext/metadata/__init__.py
# encoding: utf-8

import pkg_resources

__version__ = pkg_resources.require('ckanext-metadata')[0].version

<filename>ckanext/metadata/__init__.py
# encoding: utf-8

import pkg_resources

__version__ = pkg_resources.require('ckanext-metadata')[0].version

# encoding: utf-8