]> git.jsancho.org Git - datasette-pytables.git/commitdiff
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 037d96b6bbc298f6250446c7c31caa5eb1ba664e..0e9f1f92d6e76f4874d1aa9465d77f77f0294b7f 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 417eb630e723a51cbfa7f8c5567ad9298071e6e2..6093bda0ea7321d8dc7cf2e24df8dd71a919271b 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