forked from Chilipp/sphinx-nbexamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (46 loc) · 1.74 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
from setuptools import setup, find_packages
import sys
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
def readme():
with open('README.rst') as f:
return f.read()
setup(name='sphinx-nbexamples',
version='0.3.0',
description=(
'Create an examples gallery with sphinx from Jupyter Notebooks'),
long_description=readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Documentation',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
],
keywords=('sphinx sphinx-gallery examples documentation notebook ipython'
' jupyter nbconvert nbsphinx'),
url='https://github.com/Chilipp/sphinx-nbexamples',
author='Philipp Sommer',
author_email='[email protected]',
license="GPLv2",
packages=find_packages(exclude=['docs', 'tests*', 'examples']),
package_data={'sphinx_nbexamples': ['sphinx_nbexamples/_static/*']},
include_package_data=True,
install_requires=[
'sphinx',
'ipython',
'nbconvert',
'Pillow',
'jupyter_client',
'ipykernel',
],
setup_requires=pytest_runner,
tests_require=['pytest'],
zip_safe=False)