Skip to content

Commit

Permalink
Make the package version available at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-saeon committed Jun 6, 2018
1 parent 7c645d4 commit a0b25dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/metadata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# encoding: utf-8

import pkg_resources

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

0 comments on commit a0b25dd

Please sign in to comment.