Commits

Matthew Schinckel committed 9e5e9b6

Cleaner version number referencing.

  • Participants
  • Parent commits cfd89a4

Comments (0)

Files changed (2)

File hypermedia/__init__.py

-import os
-__version__ = open(os.path.join(os.path.dirname(__file__), 'VERSION')).read().strip()
+from os.path import join, dirname
+__version__ = open(join(dirname(__file__), 'VERSION')).read().strip()
+
+# Don't import anything into here that will break setup.py
+import hypermedia
 from setuptools import setup
 
 setup(
      name="django-hypermedia",
-     version=open('hypermedia/VERSION').read().strip(),
+     version=hypermedia.__version__,
      description="Form-based Hypermedia API tools",
      url="https://bitbucket.org/schinckel/django-hypermedia/",
      author="Matthew Schinckel",