mirror of
https://github.com/KevinMidboe/tableprint.git
synced 2025-10-29 09:50:17 +00:00
Adds makefile, bumps version to 0.1.5
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal 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__
|
||||
@@ -1,9 +0,0 @@
|
||||
.. _api:
|
||||
|
||||
===
|
||||
API
|
||||
===
|
||||
|
||||
.. automodule:: tableprint
|
||||
:members:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
==========
|
||||
TablePrint
|
||||
==========
|
||||
|
||||
`tableprint`_ is a library for printing out numerical data in Ascii formatted tables.
|
||||
|
||||
.. _tableprint: https://github.com/nirum/tableprint/
|
||||
|
||||
3
setup.py
3
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''',
|
||||
|
||||
@@ -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='-'):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user