diff --git a/astor/VERSION b/astor/VERSION
diff --git a/astor/__init__.py b/astor/__init__.py
index 3b02983..8dfcdb1 100644
--- astor/__init__.py.orig
from .code_gen import SourceGenerator, to_source # NOQA
from .op_util import symbol_data # NOQA
from .tree_walk import TreeWalk # NOQA
+ROOT = os.path.dirname(__file__)
+with open(os.path.join(ROOT, 'VERSION')) as version_file:
+ __version__ = version_file.read().strip
parse_file = code_to_ast.parse_file
diff --git a/setup.cfg b/setup.cfg
index 1baf6fc..a43634f 100644
description = Read/rewrite/write Python ASTs
long_description = file:README.rst
+version = file: astor/VERSION
author_email = pmaupin@gmail.com
@@ -40,7 +41,7 @@ test_suite = nose.collector
diff --git a/setup.py b/setup.py
index 4a111b5..6068493 100644
from setuptools import setup
-from setuptools.config import read_configuration
-from setuputils import find_version
- return os.path.join(os.path.dirname(__file__), *paths)
-config = read_configuration(here('setup.cfg'))
-config['metadata']['version'] = find_version(here('astor', '__init__.py'))
-config['options'].update(config['metadata'])
-setup(**config['options'])