forked from wechange-eg/cosinnus-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
153 lines (141 loc) · 5 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/usr/bin/env python
import os
import codecs
import sys
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 fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
# Compile the list of packages available, because setuptools doesn't have
# an easy way to do this. Taken from Django.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
pkgdir = 'cosinnus'
for dirpath, dirnames, filenames in os.walk(pkgdir):
# Ignore PEP 3147 cache dirs and those whose names start with '.'
dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
from cosinnus import get_version
setup(
name='cosinnus',
version=get_version(),
description='cosinnus core application',
long_description=read('README'),
author='Sinnwerkstatt Medienagentur GmbH Berlin',
author_email='[email protected]',
packages=find_packages(exclude=["tests"]),
data_files=data_files,
install_requires=[
# please mirror all changes in the requirements.txt for local installs!
'Django>=2.1.5,<2.2',
'MarkupSafe==0.23',
'Pillow==6.2.0',
'Celery==4.2.0',
'django-annoying==0.7.6',
'django-appconf==1.0.2',
'django-bootstrap3-datetimepicker-3==2.6.0',
'django-bootstrap3==11.0.0',
'django-classy-tags==0.8.0',
'django-cors-middleware==1.3.1',
'django-cron==0.5.0',
'django-embed-video==0.6',
'django-el-pagination==2.1.2',
'django-extra-views==0.6.3',
'django-filter==2.0.0',
'django-haystack==2.8.1',
'django-honeypot==0.6.0',
'django-mailbox==4.7.1',
'django-model-utils==1.5.0',
'django-mptt==0.8.7',
'django-oauth-toolkit==1.2.0',
'django-otp==0.5.2',
'django-phonenumber-field==1.1.0',
'django-polymorphic==0.7.2',
'django-rest-swagger==2.2.0',
'django-sekizai==0.10.0',
'django-simple-captcha==0.5.7',
'django-suit==0.2.26',
'django-taggit==0.23.0',
'django-widget-tweaks==1.3',
'djangorestframework==3.9.1',
'dnspython==1.15.0',
'easy-thumbnails==2.5',
'ecdsa==0.13.3',
'geopy==1.11.0',
'jsonfield==1.0.0',
'html5lib',
'html2text==2016.9.19',
'numpy==1.14.5',
'oauthlib==3.0.1',
'paramiko==2.4.2',
'pycrypto==2.6.1',
'redis==2.10.6',
'requests==2.20.0',
'requests-oauthlib==0.8.0',
'rocketchat-API==0.6.26',
'six==1.11.0',
'sqlparse==0.1.10',
'python-dateutil==2.4.1',
'urllib3==1.24.2',
'pytz==2018.5',
'python-memcached==1.59',
'qrcode==6.1',
'Unidecode==0.4.21',
# wagtail
'wagtail==2.3',
'django-compressor',
# requirements loaded in from github
'django-awesome-avatar',
'django-filer',
'django-multiform',
'django-djajax',
'django_select2',
'django-osm-field',
'markdown2',
'pydkim',
],
dependency_links=[
'git+git://github.com/wechange-eg/django-awesome-avatar.git@django2#egg=django-awesome-avatar',
'git+git://github.com/wechange-eg/django-filer.git@django2#egg=django-filer',
'git+git://github.com/wechange-eg/django-multiform.git@master#egg=django-multiform',
'git+git://github.com/saschan/django-djajax.git@django2#egg=django-djajax',
'git+git://github.com/wechange-eg/django-select2.git@django2#egg=django-select2',
'git+git://github.com/wechange-eg/django-osm-field.git@django2#egg=django-osm-field',
'git+git://github.com/wechange-eg/python-markdown2.git@master#egg=markdown2',
'git+git://github.com/wechange-eg/pydkim.git@master#egg=pydkim',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
zip_safe=False,
include_package_data=True
)