Changes to instance naming:
[mdk.git] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 """
5 Moodle Development Kit
6
7 Copyright (c) 2014 Frédéric Massart - FMCorz.net
8
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.
13
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.
18
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/>.
21
22 http://github.com/FMCorz/mdk
23 """
24
25 import os
26 from setuptools import setup, find_packages
27
28 # Load version number.
29 execfile('mdk/version.py')
30
31 # Get the long description from the relevant file.
32 longDescription = ''
33 with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
34 longDescription = f.read()
35
36 # Load the requirements.
37 requirements = []
38 with open('requirements.txt') as f:
39 requirements = f.readlines()
40
41 # Get the content of the scripts folder.
42 scripts = []
43 for f in os.listdir(os.path.join(os.path.dirname(__file__), 'mdk', 'scripts')):
44 if f == 'README.rst':
45 continue
46 scripts.append('scripts/%s' % (f))
47
48 setup(
49 name='moodle-sdk',
50 version=__version__,
51 description='Moodle Development Kit',
52 long_description=longDescription,
53 license='MIT',
54
55 url='https://github.com/FMCorz/mdk',
56 author='Frédéric Massart',
57 author_email='fred@fmcorz.net',
58 classifiers=[
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',
66 'Topic :: Education',
67 'Topic :: Software Development',
68 'Topic :: Utilities'
69 ],
70 keywords='mdk moodle moodle-sdk',
71
72 packages=find_packages(),
73 package_data={'mdk': ['config-dist.json'] + scripts},
74 install_requires=requirements,
75 include_package_data=True,
76
77 entry_points={
78 'console_scripts': [
79 'mdk = mdk.__main__:main'
80 ]
81 }
82 )