diff options
| author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-01 00:08:25 -0400 | 
|---|---|---|
| committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-01 00:52:22 -0400 | 
| commit | 6cd459bb1474488bd5f81dbe73a70b19e62ab0c3 (patch) | |
| tree | fba75e2ea885437d31fb3c7540e2bcbe52b57216 /setup.py | |
| parent | f826bc473a0c50fcf55f4e8609aa07622814f902 (diff) | |
[pkg] handle dependencies as extras
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 48 | 
1 files changed, 37 insertions, 11 deletions
| @@ -2,12 +2,38 @@  Setup file for leap.bitmask  """  from setuptools import setup, find_packages +  import versioneer -# This requirements list is curated by hand. Here we can specify ranges. -requirements =  [ -    "twisted", -    "colorama"] + +# This requirements list is curated by hand, and +# needs to be updated every time that requirements.pip +# changes. +# Note that here we can specify ranges. + +required = [ +    'twisted',  # 14.0.0 +    'zope.interface', +    'service-identity', +    'colorama', +    'srp', +    'leap.common', +] + +extras = { +    'mail': [ +        'leap.soledad.client', +        'gnupg', +    ], +    'gui': [ +        'PyQt', +    ], +    'all': [ +        'PyQt', +        'leap.soledad.client', +        'gnupg', +    ] +}  trove_classifiers = [ @@ -25,14 +51,13 @@ trove_classifiers = [      "Topic :: Utilities"  ] +VERSION = versioneer.get_version()  DOWNLOAD_BASE = ('https://github.com/leapcode/bitmask-dev/'                   'archive/%s.tar.gz') - -VERSION = versioneer.get_version()  DOWNLOAD_URL = DOWNLOAD_BASE % VERSION - +# Entry points  gui_launcher = 'bitmask=leap.bitmask.gui.app:start_app'  bitmask_cli = 'bitmaskctl=leap.bitmask.cli.bitmask_cli:main'  bitmaskd = 'bitmaskd=leap.bitmask.core.launcher:run_bitmaskd' @@ -41,7 +66,7 @@ bitmaskd = 'bitmaskd=leap.bitmask.core.launcher:run_bitmaskd'  setup(      name='leap.bitmask',      version=VERSION, -    cmdclass = versioneer.get_cmdclass(), +    cmdclass=versioneer.get_cmdclass(),      url='https://leap.se/',      download_url=DOWNLOAD_URL,      license='GPLv3+', @@ -51,16 +76,17 @@ setup(      maintainer_email='kali@leap.se',      description=("The Internet Encryption Toolkit: "                   "Encrypted Internet Proxy and Encrypted Mail."), -    long_description = open('README.rst').read(), +    long_description=open('README.rst').read(),      classifiers=trove_classifiers, -    namespace_packages=["leap"], +    namespace_packages=['leap'],      package_dir={'': 'src'},      package_data={'': ['*.pem']},      packages=find_packages('src'), -    install_requires=requirements,      include_package_data=True,      zip_safe=True,      entry_points={          'console_scripts': [gui_launcher, bitmask_cli, bitmaskd]      }, +    install_requires=required, +    extras_require=extras,  ) | 
