-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c0065
commit 00a5d1a
Showing
3 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
build/ | ||
dist/ | ||
*.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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'], | ||
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', | ||
], | ||
) |