Adds makefile, bumps version to 0.1.5

This commit is contained in:
Niru Maheswaranathan
2015-10-01 10:16:00 -07:00
parent 627cc32ac0
commit 7ca03c0fd6
8 changed files with 21 additions and 21 deletions

13
Makefile Normal file
View File

@@ -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__

View File

@@ -1,9 +0,0 @@
.. _api:
===
API
===
.. automodule:: tableprint
:members:

View File

@@ -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.

View File

View File

@@ -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

View File

@@ -1,8 +0,0 @@
==========
TablePrint
==========
`tableprint`_ is a library for printing out numerical data in Ascii formatted tables.
.. _tableprint: https://github.com/nirum/tableprint/

View File

@@ -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''',

View File

@@ -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='-'):
"""