From 7ca03c0fd6099ac82d2058828a741b5cffab6954 Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Thu, 1 Oct 2015 10:16:00 -0700 Subject: [PATCH] Adds makefile, bumps version to 0.1.5 --- Makefile | 13 +++++++++++++ docs/api.rst | 9 --------- docs/conf.py | 5 +++-- docs/examples.rst | 0 docs/index.rst | 2 +- docs/quickstart.rst | 8 -------- setup.py | 3 ++- tableprint.py | 2 ++ 8 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 Makefile delete mode 100644 docs/api.rst delete mode 100644 docs/examples.rst delete mode 100644 docs/quickstart.rst diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43c5cc2 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: + python setup.py install + +develop: + python setup.py develop + +upload: + python setup.py sdist bdist_wininst upload + +clean: + rm -rf tableprint.egg-info + rm -f *.pyc + rm -rf __pycache__ diff --git a/docs/api.rst b/docs/api.rst deleted file mode 100644 index 90b80fb..0000000 --- a/docs/api.rst +++ /dev/null @@ -1,9 +0,0 @@ -.. _api: - -=== -API -=== - -.. automodule:: tableprint - :members: - diff --git a/docs/conf.py b/docs/conf.py index ec1164d..ebbdac5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,7 @@ import sys import os import shlex sys.path.append('..') +import tableprint # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -63,9 +64,9 @@ author = u'Niru Maheswaranathan' # built documents. # # The short X.Y version. -version = '0.1.4' +version = tableprint.__version__ # The full version, including alpha/beta/rc tags. -release = '0.1.4' +release = tableprint.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/examples.rst b/docs/examples.rst deleted file mode 100644 index e69de29..0000000 diff --git a/docs/index.rst b/docs/index.rst index d5367da..1b5fdd5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -8,7 +8,7 @@ Tableprint is a library for printing out numerical data in Ascii formatted table Installation ------------ -First, we need to install the module. We can do that using pip: +First, we need to install the module. We can do that using ``pip``: .. code-block:: bash diff --git a/docs/quickstart.rst b/docs/quickstart.rst deleted file mode 100644 index 5e455f3..0000000 --- a/docs/quickstart.rst +++ /dev/null @@ -1,8 +0,0 @@ -========== -TablePrint -========== - -`tableprint`_ is a library for printing out numerical data in Ascii formatted tables. - -.. _tableprint: https://github.com/nirum/tableprint/ - diff --git a/setup.py b/setup.py index 91499c0..9cfaa8e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup, find_packages +import tableprint setup( name='tableprint', @@ -6,7 +7,7 @@ setup( # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='0.1.4', + version=tableprint.__version__, description='Pretty ASCII printing of tabular data', long_description='''Formatted ASCII printing of tabular data''', diff --git a/tableprint.py b/tableprint.py index 98100ff..728f0ab 100644 --- a/tableprint.py +++ b/tableprint.py @@ -11,6 +11,8 @@ import numpy as np # exports __all__ = ['table', 'row', 'header', 'hr', 'humantime', 'frame'] +__version__ = '0.1.5' + def table(data, headers, format_spec='5g', column_width=10, outer_char='|', corner_char='+', line_char='-'): """