This repository was archived by the owner on Jun 15, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (39 loc) · 1.25 KB
/
setup.py
File metadata and controls
43 lines (39 loc) · 1.25 KB
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
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version='1.1.2'
cmdclass = {}
command_options = {}
install_requires = []
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
command_options['build_sphinx'] = {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
except ImportError:
pass
if sys.version_info[0] == 2:
install_requires.append('kitchen')
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Iliana Weller',
author_email='ilianaw@buttslol.net',
url='https://github.com/ilianaw/python-simplemediawiki',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
install_requires=install_requires,
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)