Commits

Rune Halvorsen committed db8a3d8

Moved metadata out of meta module as it wasn't working like it
should. Fixes #2

Comments (0)

Files changed (4)

 
  * Fixed bug that rendered the lib uninstalleable with easy_install if there
    was no supported json module allready installed
+
+0.2.2
+
+ * Fixed bug #2. Installation failed if there were noe compatible json 
+   implementations installed, because the module was loaeded, and threw import
+   exception during the install process.

anyjson/__init__.py

-from metadata import *
+"""Wraps the best available JSON implementation available in a common
+interface"""
+
 import sys
 
-# explicitly pull in docstring from metadata. see comments there for why.
-__doc__ = metadata.__doc__
+__version__ = "0.2.2"
+__author__ = "Rune Halvorsen <runefh@gmail.com>"
+__homepage__ = "http://bitbucket.org/runeh/anyjson/"
+__docformat__ = "restructuredtext"
+
 implementation = None
 
 """

anyjson/metadata.py

-"""Wraps the best available JSON implementation available in a common
-interface"""
-
-# Note: This module is neccessary so we can load the metadata in setup.py
-# without risking that the module loading fails. It will fail if the user
-# has no json module installed, causing ImportError when importing anyjson
-
-__version__ = "0.2.1"
-__author__ = "Rune Halvorsen <runefh@gmail.com>"
-__homepage__ = "http://bitbucket.org/runeh/anyjson/"
-__docformat__ = "restructuredtext"
 from setuptools import setup, find_packages
 
-import anyjson.metadata as meta
-author, email = meta.__author__[:-1].split(' <')
+author = "Rune Halvorsen"
+email = "runefh@gmail.com"
+version = "0.2.2"
+desc = """Wraps the best available JSON implementation available in a common
+interface"""
 
 setup(name='anyjson',
-      version=meta.__version__,
-      description=meta.__doc__,
+      version=version,
+      description=desc,
       long_description=open("README").read(),
       classifiers=[
             'License :: OSI Approved :: BSD License',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.