From 36b5d2a7acf0cdebcf11d6235fce466e3fa01844 Mon Sep 17 00:00:00 2001 From: Liam Deacon Date: Mon, 16 Oct 2017 14:33:52 +0100 Subject: [PATCH 1/3] Added setup.py For use with `pip install git+` --- setup.py | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..7ce9a9b --- /dev/null +++ b/setup.py @@ -0,0 +1,48 @@ +try: + from setuptools import setup +except ImportError: + from distutils.core import setup +import io +from os import path + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the relevant file +with io.open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +install_requires = [ + 'jupyter>=1.0.0', +] + +setup( + name='inumpy', + version='0.0.1', + description='Numpy extension for IPython', + long_description=long_description, + url='https://github.com/piti118/inumpy', + + # Author details + author='Piti Ongmongkolkul', + author_email='', + + # Choose your license + license='', + + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + 'Topic :: Text Processing :: Markup :: HTML', + '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', + ], + + # What does your project relate to? + keywords='ipython jupyter notebook numpy', + + py_modules=['inumpy'], + install_requires=install_requires, +) From 1ca0740d9002f12ec12f2657f74bb80c3dfcbd19 Mon Sep 17 00:00:00 2001 From: Liam Deacon Date: Mon, 16 Oct 2017 14:40:49 +0100 Subject: [PATCH 2/3] Updated for pip install --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index e3c4ee9..56cd838 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,17 @@ Numpy extension for IPython. Install ------- +``` +pip install inumpy +``` +or + +``` +pip install git+https://github.com/Lightslayer/inumpy # development +``` + +The following only works for Jupyter < 5.0: + ``` %install_ext https://raw.github.com/piti118/inumpy/master/inumpy.py ``` From 78c1f6f744924def96b67536c9791eca7b2de892 Mon Sep 17 00:00:00 2001 From: Liam Deacon Date: Thu, 8 Feb 2018 19:58:57 +0000 Subject: [PATCH 3/3] Created into package --- inumpy/__init__.py | 1 + inumpy.py => inumpy/inumpy.py | 0 2 files changed, 1 insertion(+) create mode 100644 inumpy/__init__.py rename inumpy.py => inumpy/inumpy.py (100%) diff --git a/inumpy/__init__.py b/inumpy/__init__.py new file mode 100644 index 0000000..aa82e03 --- /dev/null +++ b/inumpy/__init__.py @@ -0,0 +1 @@ +from inumpy import * diff --git a/inumpy.py b/inumpy/inumpy.py similarity index 100% rename from inumpy.py rename to inumpy/inumpy.py