forked from paulgb/runipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (59 loc) · 1.64 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
from distutils.version import LooseVersion
from setuptools import setup
import versioneer
using_ipy4 = False
try:
from IPython import __version__ as ipyv
using_ipy4 = (ipyv >= LooseVersion("4"))
except ImportError:
using_ipy4 = True
install_requires = [
'Jinja2>=2.7.2',
'Pygments>=1.6',
'ipython>=2.3.1',
'pyzmq>=14.1.0',
]
if using_ipy4:
install_requires.extend([
'ipykernel>=4.0.0',
'nbconvert>=4.0.0',
'nbformat>=4.0.0',
])
readme = ""
with open("README.rst") as readme_file:
readme = readme_file.read()
setup(
name='runipy',
version=versioneer.get_version(),
license="BSD 2-Clause",
description='Run IPython notebooks from the command line',
long_description=readme,
url='https://github.com/paulgb/runipy',
author='Paul Butler',
author_email='paulgb@gmail.com',
maintainer='John Kirkham',
maintainer_email='jakirkham@gmail.com',
platforms='any',
classifiers=[
'Environment :: Console',
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='ipython',
install_requires=install_requires,
packages=['runipy'],
entry_points={
'console_scripts': [
'runipy = runipy.main:main'
]
},
cmdclass=versioneer.get_cmdclass(),
test_suite="test_runipy",
zip_safe=True
)