diff options
-rw-r--r-- | setup.py | 16 | ||||
-rw-r--r-- | src/leap/__init__.py | 1 | ||||
-rw-r--r-- | src/leap/soledad/backends/__init__.py | 13 |
3 files changed, 27 insertions, 3 deletions
@@ -1,4 +1,16 @@ -from distutils.core import setup +from setuptools import setup + + +requirements = [ + 'python-gnupg', + 'u1db', + 'oauth', + 'couchdb', + 'configparser', + # TODO: add a dependency for leap client + #'leap_client', +] + setup( name='leap.soledad', @@ -15,8 +27,10 @@ setup( "securely shared among devices. It provides, to other parts of the " "LEAP client, an API for data storage and sync." ), + namespace_packages=["leap"], packages=['leap', 'leap.soledad', 'leap.soledad.backends'], package_dir = {'': 'src'}, test_suite='leap.soledad.tests', + install_requires=requirements, ) diff --git a/src/leap/__init__.py b/src/leap/__init__.py new file mode 100644 index 00000000..de40ea7c --- /dev/null +++ b/src/leap/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/leap/soledad/backends/__init__.py b/src/leap/soledad/backends/__init__.py index 61438e8a..f5e2497a 100644 --- a/src/leap/soledad/backends/__init__.py +++ b/src/leap/soledad/backends/__init__.py @@ -2,8 +2,17 @@ Backends that extend U1DB functionality. """ -import objectstore +from leap.soledad.backends import ( + objectstore, + couch, + sqlcipher, + leap_backend, +) __all__ = [ - 'objectstore'] + 'objectstore', + 'couch', + 'sqlcipher', + 'leap_backend', +] |