project-callisto/callisto-core

View on GitHub
setup.py

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

from callisto_core import __version__ as version

from setuptools import find_packages, setup

if sys.argv[-1] == 'publish':
    try:
        import wheel
        print("Wheel version: ", wheel.__version__)
    except ImportError:
        print('Wheel library missing. Please run "pip install wheel"')
        sys.exit()
    os.system('python setup.py sdist upload')
    os.system('python setup.py bdist_wheel upload')
    sys.exit()

if sys.argv[-1] == 'tag':
    print("Tagging the version on github:")
    os.system("git tag -a %s -m 'version %s'" % (version, version))
    os.system("git push --tags")
    sys.exit()

try:
    import pypandoc
    long_description = open('README.md', 'rst').read() + open('docs/HISTORY.md', 'rst').read()
except BaseException:
    long_description = ''

license = open('LICENSE').read()

setup(
   name='callisto-core',
   version=version,
   description='Report intake, escrow, matching and secure delivery code for Callisto, an online reporting system for sexual assault.',
   long_description=long_description,
   license="AGPLv3",
   author='Project Callisto',
   author_email='tech@projectcallisto.org',
   url='https://github.com/project-callisto/callisto-core',
   packages=find_packages(),
   include_package_data=True,
   zip_safe=False,
   python_requires='>=3',
   install_requires=[
       'celery>=4.1.0',
       'django_celery_results>=1.0.1',
       'django',
       'django-nested-admin>=3',
       'django-polymorphic>=1.0',
       'django-ratelimit>=1.0',
       'django-widget-tweaks>=1.4',
       'django-decorator-include>=1',
       'gnupg>=2.3',
       'PyNaCl>=1.0',
       'pytz>=2017',
       'reportlab>=3.0',
       'requests',
       'six',
       'argon2_cffi',
   ],
)