summaryrefslogtreecommitdiff
path: root/client/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-08-23 13:36:38 +0200
committerKali Kaneko <kali@leap.se>2013-08-23 13:36:38 +0200
commitb42d461341de2aa7e2136d85f67ebbd12918b200 (patch)
treec6080cf0c88d1d889ba8371a670c8311fbba3c4e /client/setup.py
parent59f337a29202bb80287a31d6c5b942b74375f33f (diff)
packaging improvements
* add versioneer (patched for our particular repo config) * add parse_requirements to unify requirement handling
Diffstat (limited to 'client/setup.py')
-rw-r--r--client/setup.py39
1 files changed, 17 insertions, 22 deletions
diff --git a/client/setup.py b/client/setup.py
index 291c95fe..142922a4 100644
--- a/client/setup.py
+++ b/client/setup.py
@@ -14,26 +14,19 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+setup file for leap.soledad.client
+"""
+from setuptools import setup
+from setuptools import find_packages
+import versioneer
+versioneer.versionfile_source = 'src/leap/soledad/client/_version.py'
+versioneer.versionfile_build = 'leap/soledad/client/_version.py'
+versioneer.tag_prefix = '' # tags are like 1.2.0
+versioneer.parentdir_prefix = 'leap.soledad.client-'
-from setuptools import (
- setup,
- find_packages
-)
-
-
-install_requirements = [
- 'pysqlcipher',
- 'pysqlite', # TODO: this should not be a dep, see #2945
- 'simplejson',
- 'oauth', # this is not strictly needed by us, but we need it
- # until u1db adds it to its release as a dep.
- 'u1db',
- 'scrypt',
- 'pyxdg',
- 'pycryptopp',
- 'leap.soledad.common>=0.3.0',
-]
+from pkg import utils
trove_classifiers = (
@@ -50,10 +43,12 @@ trove_classifiers = (
"Topic :: Software Development :: Libraries :: Python Modules"
)
+# XXX add ref to docs
setup(
name='leap.soledad.client',
- version='0.3.0',
+ version=versioneer.get_version(),
+ cmdclass=versioneer.get_cmdclass(),
url='https://leap.se/',
license='GPLv3+',
description='Synchronization of locally encrypted data among devices.',
@@ -64,10 +59,10 @@ setup(
"securely shared among devices. It provides, to other parts of the "
"LEAP client, an API for data storage and sync."
),
+ classifiers=trove_classifiers,
namespace_packages=["leap", "leap.soledad"],
packages=find_packages('src'),
package_dir={'': 'src'},
- install_requires=install_requirements,
- classifiers=trove_classifiers,
- extras_require={'signaling': ['leap.common']},
+ install_requires=utils.parse_requirements(),
+ extras_require={'signaling': ['leap.common>=0.3.0']},
)