forked from sphinx-gallery/sphinx-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.51 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
# -*- coding: utf-8 -*-
# Author: Óscar Nájera
# License: 3-clause BSD
"""
Installer Sphinx extension for gallery generator
"""
import codecs
import os
from setuptools import setup, find_packages
import sphinx_gallery
with codecs.open('README.rst', mode='r', encoding='utf-8') as f:
long_description = f.read()
# XXX : don't force requirements in setup.py as it tends to break
# people's setups
install_requires = []
if os.environ.get('READTHEDOCS', None) == 'True':
# So that we can build documentation using seaborn
install_requires = ['seaborn']
setup(
name="sphinx-gallery",
description="Sphinx extension to automatically generate an examples gallery",
long_description=long_description,
version=sphinx_gallery.__version__,
packages=find_packages(),
package_data={'sphinx_gallery': ['_static/gallery.css', '_static/no_image.png',
'_static/broken_example.png']},
scripts=['bin/copy_sphinxgallery.sh', 'bin/sphx_glr_python_to_jupyter.py'],
url="https://github.com/sphinx-gallery/sphinx-gallery",
author="Óscar Nájera",
author_email='najera.oscar@gmail.com',
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov'],
license='3-clause BSD',
classifiers=['Intended Audience :: Developers',
'Development Status :: 3 - Alpha',
'Framework :: Sphinx :: Extension',
'Programming Language :: Python',
],
)