-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
88 lines (74 loc) · 2.44 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
import sys
from setuptools import setup
def read_file(fname):
"""
Read file and decode in py2k
"""
if sys.version_info < (3,):
return open(fname).read().decode("utf-8")
return open(fname).read()
dist_name = 'kolibri_instant_schools_plugin'
plugin_name = 'kolibri_instant_schools_plugin'
repo_url = 'https://github.com/fle-internal/kolibri-instant-schools-plugin'
readme = read_file('README.md')
doclink = """
Documentation
-------------
The full documentation is at."""
# Default description of the distributed package
description = (
"""Kolibri Plugin to provide specific functionality and branding for the Vodafone Instant Schools project"""
)
######################################
# STATIC AND DYNAMIC BUILD SPECIFICS #
######################################
def enable_log_to_stdout(logname):
"""Given a log name, outputs > INFO to stdout."""
log = logging.getLogger(logname)
log.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# create formatter
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
# add formatter to ch
ch.setFormatter(formatter)
# add ch to logger
log.addHandler(ch)
setup(
name=dist_name,
version="0.17.5",
description=description,
long_description="{readme}\n\n{doclink}".format(
readme=readme,
doclink=doclink
),
author='Learning Equality',
author_email='[email protected]',
url=repo_url,
packages=[
str(plugin_name), # https://github.com/pypa/setuptools/pull/597
],
package_dir={plugin_name: plugin_name},
install_requires=["twilio"],
include_package_data=True,
license='All Rights Reserved',
zip_safe=False,
keywords='kolibri',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: All Rights Reserved',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
],
)