forked from sklam/py2nb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (47 loc) · 1.53 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
from ast import parse
name = 'py2jn'
# See http://stackoverflow.com/questions/2058802
with open('py2jn/__init__.py') as f:
version = parse(next(filter(
lambda line: line.startswith('__version__'),
f))).body[0].value.s
packages = [name]
longdesc = \
"""
py2jn is a small utility for converting Python scripts into Jupyter
Notebooks and convert module-level multiline (triple quote) string
literals into markdown cells.
"""
setup(
name = name,
version = version,
packages = packages,
description = 'py2jn: convert Python script to Jupyter Notebook',
long_description = longdesc,
keywords = ['Jupyter Notebook'],
platforms = 'Any',
license = 'BSD',
url = 'https://github.com/bwohlberg/py2jn',
author = 'Siu Kwan Lam',
author_email = None,
maintainer = 'Brendt Wohlberg',
maintainer_email = 'brendt@ieee.org',
setup_requires = [],
tests_require = ['pytest', 'pytest-runner'],
install_requires = ['nbformat'],
extras_require = {
'tests': ['pytest', 'pytest-runner']},
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
],
zip_safe = True
)