This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
executable file
·67 lines (62 loc) · 2.08 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errno = tox.cmdline()
sys.exit(errno)
setup(
name='sphinxcontrib-images',
version='0.8.0',
url='https://github.com/spinus/sphinxcontrib-images',
download_url='https://pypi.python.org/pypi/sphinxcontrib-images',
license='Apache 2',
author=u'Tomasz Czyż',
author_email='[email protected]',
description='Sphinx "images" extension',
long_description=codecs.open('README.rst', encoding="utf8").read(),
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Topic :: Documentation',
],
entry_points={
'console_scripts':[
'sphinxcontrib-images=sphinxcontrib.images:main',
],
'sphinxcontrib.images.backend':[
'LightBox2 = sphinxcontrib_images_lightbox2:LightBox2',
'FakeBackend = sphinxcontrib_images_lightbox2:LightBox2',
]
},
platforms='any',
packages=find_packages(),
include_package_data=True,
setup_requires=['wheel'],
install_requires=['sphinx>=1.1.3,<2',
'requests>2.2,<3'],
tests_require=['tox==3.2.1'],
cmdclass = {'test': Tox},
namespace_packages=['sphinxcontrib'],
)