Skip to content

Commit

Permalink
Remove __version__ from django_browserid.__init__.
Browse files Browse the repository at this point in the history
Importing django_browserid from setup.py causes errors due to
dependencies on django.conf in files imported by __init__.
Since the only need for the import is the version number,
we can just embed that directly in setup.py and remove the import.
Fixes mozilla#31.
  • Loading branch information
Michael Kelly committed Feb 7, 2012
1 parent 05cb056 commit c733682
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions django_browserid/__init__.py
@@ -1,6 +1,2 @@
from django_browserid.auth import BrowserIDBackend
from django_browserid.base import get_audience, verify


VERSION = (0, 1)
__version__ = '.'.join(map(str, VERSION))
5 changes: 1 addition & 4 deletions setup.py
@@ -1,11 +1,8 @@
from setuptools import setup

import django_browserid


setup(
name='django-browserid',
version=django_browserid.__version__,
version='0.2',
packages=['django_browserid'],
author="Paul Osman",
author_email="paul@mozillafoundation.org",
Expand Down

0 comments on commit c733682

Please sign in to comment.