-
Notifications
You must be signed in to change notification settings - Fork 55
/
setup.py
executable file
·66 lines (59 loc) · 1.77 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/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='[email protected]',
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',
],
)