We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5ad35 commit 708c36fCopy full SHA for 708c36f
.travis.yml
@@ -7,4 +7,6 @@ python:
7
- "2.6"
8
- "2.5"
9
- "pypy"
10
+install:
11
+ - if [ "`python -c 'import sys; print(sys.version_info[0:2])'`" = "(2, 5)" ]; then pip install -r requirements.txt --use-mirrors; fi
12
script: make test
requirements.txt
@@ -0,0 +1 @@
1
+simplejson
setup.py
@@ -5,7 +5,12 @@
5
6
PROJ_METADATA = '%s.json' % PROJ_NAME
-import os, json, imp
+import os, imp
+try:
+ import json
+except ImportError:
+ import simplejson as json
13
+
14
here = os.path.abspath(os.path.dirname(__file__))
15
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read())
16
README = open(os.path.join(here, 'README.rst')).read()
0 commit comments