-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (71 loc) · 3.56 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
#!/usr/bin/env python3
#_MIT License
#_
#_Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com)
#_
#_Permission is hereby granted, free of charge, to any person obtaining a copy
#_of this software and associated documentation files (the "Software"), to deal
#_in the Software without restriction, including without limitation the rights
#_to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#_copies of the Software, and to permit persons to whom the Software is
#_furnished to do so, subject to the following conditions:
#_
#_The above copyright notice and this permission notice shall be included in all
#_copies or substantial portions of the Software.
#_
#_THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#_IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#_FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#_AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#_LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#_OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#_SOFTWARE.
"""
Quizlight
---------
Quizlight is simple terminal-based program for test taking and creation. It is written in Python 3. It comes with a Python 3 test module, based on `The Python Tutorial <https://docs.python.org/3/tutorial/>`_ .
Options
```````
usage: quizlight.py [-h] [--version] [-d DIRECTORY] [--learn] [file]
positional arguments:
file set the module import file
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-d DIRECTORY set the module import directory
--learn turn on learning mode (immediate answer feedback)
Interface
`````````
Quizlight has a menu driven interface, based on the lightcli library. There are two modes: test mode, and edit mode. Test mode is for taking tests. Edit mode is for creating and editing tests.
Links
`````
* `Documentation <https://github.com/dogoncouch/quizlight/blob/master/README.md>`_
* `Changelog <https://github.com/dogoncouch/quizlight/blob/master/CHANGELOG.md>`_
"""
from setuptools import setup
from os.path import join
from sys import prefix
from quizlight import __version__
ourdata = [(join(prefix, 'share/man/man1'), ['doc/quizlight.1']),
(join(prefix, 'share/doc/quizlight'), ['README.md', 'LICENSE']),
(join(prefix, 'share/doc/quizlight/modules'), ['modules/python3.json'])]
setup(name = 'quizlight', version = str(__version__),
description = 'A simple, modular terminal-based quiz program',
long_description = __doc__,
author = 'Dan Persons', author_email = 'dpersonsdev@gmail.com',
url = 'https://github.com/dogoncouch/quizlight',
keywords = ['educational', 'education', 'quiz', 'testing',
'education-game', 'education-materials', 'python3',
'terminal-based', 'console-application', 'learning'],
packages = ['quizlight'],
entry_points = \
{ 'console_scripts': [ 'quizlight = quizlight.core:main' ]},
data_files = ourdata,
classifiers = ["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Topic :: Education :: Testing"])