diff options
author | drebs <drebs@leap.se> | 2013-03-10 15:58:15 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-03-10 16:04:23 -0300 |
commit | c3d9baca863cb1ea48e79f6100a4d0af08ca7da6 (patch) | |
tree | aedc0c12ea7835596f2bf12cccb5b401bf2938e2 | |
parent | a6939bbd6b48608547da4ca23c5c8cc2fa73b550 (diff) |
Add namespace package.
-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', +] |