-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
80 lines (71 loc) · 2.09 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
from glob import glob
import subprocess
from setuptools import find_packages, setup
REQUIRES = [
'Django>=3.2,<5.1',
'bleach',
'bleach-allowlist',
'crispy-bootstrap5',
'diff-match-patch',
'django-bakery>=0.13.0',
'django-crispy-forms',
'django-markitup>=4.0.0',
'django-registration-redux',
'django-reversion',
'django-select2',
'djangorestframework<3.15.2',
'drf-extensions>=0.5.0',
'icalendar>=6.0',
'jsonfield',
'markdown>=2.5',
'pillow',
'py3dns',
'pyLibravatar',
'pytz',
'requests',
]
SOURCES = []
with open('README.rst', 'r') as f:
long_description = f.read()
def compile_translations():
try:
subprocess.check_call(['./manage.py', 'compilemessages'])
except subprocess.CalledProcessError:
print("WARNING: cannot compile translations.")
return glob('wafer/locale/*/LC_MESSAGES/django.mo')
setup(
name="wafer",
version="0.16.2a",
url='http://github.com/CTPUG/wafer',
license='ISC',
description="A wafer-thin Django library for running small conferences.",
long_description=long_description,
long_description_content_type="text/x-rst",
author='CTPUG',
author_email='ctpug@googlegroups.com',
packages=find_packages(),
include_package_data=True,
install_requires=REQUIRES,
dependency_links=SOURCES,
data_files=[
('locale', compile_translations()),
],
setup_requires=[
# Add setuptools-git, so we get correct behaviour for
# include_package_data
'setuptools_git >= 1.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Framework :: Django',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
],
)