2 # -*- coding: utf-8 -*-
7 Copyright (c) 2014 Frédéric Massart - FMCorz.net
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 http://github.com/FMCorz/mdk
26 from setuptools
import setup
, find_packages
28 # Load version number.
29 execfile('mdk/version.py')
31 # Get the long description from the relevant file.
33 with
open(os
.path
.join(os
.path
.dirname(__file__
), 'README.rst')) as f
:
34 longDescription
= f
.read()
36 # Load the requirements.
38 with
open('requirements.txt') as f
:
39 requirements
= f
.readlines()
41 # Get the content of the scripts folder.
43 for f
in os
.listdir(os
.path
.join(os
.path
.dirname(__file__
), 'mdk', 'scripts')):
46 scripts
.append('scripts/%s' %
(f
))
51 description
='Moodle Development Kit',
52 long_description
=longDescription
,
55 url
='https://github.com/FMCorz/mdk',
56 author
='Frédéric Massart',
57 author_email
='fred@fmcorz.net',
59 'Development Status :: 6 - Mature',
60 'Intended Audience :: Developers',
61 'License :: OSI Approved :: MIT License',
62 'Natural Language :: English',
63 'Operating System :: MacOS',
64 'Operating System :: POSIX :: Linux',
65 'Programming Language :: Python :: 2.7',
67 'Topic :: Software Development',
70 keywords
='mdk moodle moodle-sdk',
72 packages
=find_packages(),
73 package_data
={'mdk': ['config-dist.json'] + scripts
},
74 install_requires
=requirements
,
75 include_package_data
=True,
79 'mdk = mdk.__main__:main'