-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
44 lines (37 loc) · 1.4 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
#!/usr/bin/env python3
from setuptools import setup, Command, find_packages
def readme():
with open('README.rst') as f:
return f.read()
def get_version(short=False):
with open('README.rst') as f:
for line in f:
if ':Version:' in line:
ver = line.split(':')[2].strip()
if short:
subver = ver.split('.')
return '%s.%s' % tuple(subver[:2])
else:
return ver
setup(name='py2nb',
version=get_version(),
description='py2nb: convert python scripts to jupyter notebooks',
long_description=readme(),
author='Will Handley',
author_email='[email protected]',
url='https://github.com/williamjameshandley/py2nb',
scripts=['py2nb', 'nb2py'],
install_requires=['nbformat'],
include_package_data=True,
license='GPL',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)