Skip to content
Browse files

Remove db related dependencies

  • Loading branch information...
1 parent 6f31064 commit a76ab869ebf11d84a295b81a67df8dfcf32e8172 @hfaran committed Dec 27, 2013
Showing with 11 additions and 5 deletions.
  1. +0 −3 requirements.txt
  2. +11 −2 tornado_json/db.py
View
3 requirements.txt
@@ -1,5 +1,2 @@
-MySQL-python>=1.2.4
tornado>=3.1.1
-dataset>=0.3.14
-torndb>=0.1
jsonschema>=2.3.0
View
13 tornado_json/db.py
@@ -1,5 +1,14 @@
-import torndb
-import dataset
+try:
+ import torndb
+ import dataset
+except ImportError as e:
+ print (
+ "Install `torndb` and `dataset` packages from pip to use the"
+ " tornado_json.db module. These modules are not listed as dependencies"
+ " during installation as this module is considered non-essential to"
+ " Tornado-JSON as a whole."
+ )
+ raise e
class MySQLConnection(object):

0 comments on commit a76ab86

Please sign in to comment.
Something went wrong with that request. Please try again.