Use the datasette-connectors module for monkey patching datasette
authorJavier Sancho <jsf@jsancho.org>
Thu, 4 Oct 2018 10:45:03 +0000 (12:45 +0200)
committerJavier Sancho <jsf@jsancho.org>
Thu, 4 Oct 2018 10:45:03 +0000 (12:45 +0200)
setup.py
tests/fixtures.py

index 037d96b..0e9f1f9 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -28,10 +28,10 @@ setup(
         ],
     },
     install_requires=[
-        'datasette-core',
+        'datasette-connectors',
         'tables',
         'moz-sql-parser==1.3.18033',
         'mo-future==1.6.18072'
     ],
-    tests_require=['pytest']
+    tests_require=['pytest', 'aiohttp']
 )
index 417eb63..6093bda 100644 (file)
@@ -1,3 +1,6 @@
+from datasette_connectors import monkey; monkey.patch_datasette()
+from datasette_connectors import connectors; connectors.load()
+
 from datasette.app import Datasette
 import numpy as np
 import os