Ready 2.0.0.dev1 release.
#!/usr/bin/env python
-import sys
from setuptools import setup, find_packages
-# Bump pyglet/__init__.py version as well.
-VERSION = '2.0.0'
+
+# Parse version number from pyglet/__init__.py:
+with open('pyglet/__init__.py') as f:
+ info = {}
+ for line in f.readlines():
+ if line.startswith('version'):
+ exec(line, info)
+ break
def create_package_list(base_package):
@@ -13,7 +18,7 @@ def create_package_list(base_package):
setup_info = dict(
# Metadata
name='pyglet',
- version=VERSION,
+ version=info['version'],
author='Alex Holkner',
author_email='Alex.Holkner@gmail.com',
url='http://pyglet.readthedocs.org/en/latest/',
