-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
119 lines (97 loc) · 3.21 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/env python
from __future__ import print_function
import codecs
import os
import re
from setuptools import setup, find_packages
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='oldp',
version=find_version('oldp', '__init__.py'),
url='https://github.com/openlegaldata/oldp',
license='MIT',
description='Open Legal Data Platform',
long_description=read('README.md'),
long_description_content_type='text/markdown',
author='Malte Ostendorff',
author_email='hello@openlegaldata.io',
packages=find_packages(),
install_requires=[
# Misc
'Pillow>=7.1.0',
'pypandoc',
'python-dateutil',
'requests==2.20.1',
'requests-toolbelt',
'whitenoise',
# Django
'dj-database-url==0.4.2',
'django==2.2.28',
'django-appconf==1.0.2',
'django-compressor==2.2',
'django-configurations==2.1',
'django-environ==0.4.4',
'django-mathfilters==0.4.0',
'django-tellme==0.6.5',
'django-widget-tweaks==1.4.1',
'django-crispy-forms==1.7.2',
'django-allauth==0.37.1',
'django-bootstrap-form==3.4',
'django-haystack==2.8.1',
'django-ckeditor==5.6.1',
'django-autocomplete-light==3.3.2',
# API
'djangorestframework==3.10.3',
'django-filter==2.0.0',
'drf-haystack==1.8.6',
'djangorestframework-xml==1.4.0',
'drf-yasg==1.17.1',
'drf-yasg[validation]==1.17.1',
'flex==6.13.1',
'swagger-spec-validator==2.4.1',
# Dev
'django-debug-toolbar==2.2.1',
# Database
'mysqlclient==1.3.13',
'elasticsearch==5.3.0',
'elasticsearch-dsl==5.3.0',
# Caching
'django-redis==4.9.0',
# UML chart
'django-extensions==2.0.7',
# Processing
'cssselect==1.0.0',
'lxml==4.6.2',
# Production
'gunicorn==19.9.0',
# Packages from dependency links
# ...
],
dependency_links=[
# Do not give link to git repository, but to a tarball (GitHub: /tarball/master)
'https://github.com/django-haystack/django-haystack/tarball/802b0f6f4b3b99314453261876a32bac2bbec94f#egg=django-haystack',
'https://github.com/openlegaldata/legal-reference-extraction/tarball/master#egg=legal-reference-extraction-1.0.0',
],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
zip_safe=False,
)