From e00bbb8c7ec961b6798904ef9bcbde368993608d Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Tue, 28 Jul 2015 13:37:30 -0700 Subject: [PATCH] Removed README.md dependency in setup.py --- setup.py | 14 +++----------- tableprint.py | 8 ++++---- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/setup.py b/setup.py index eab8a73..8a89fdc 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,4 @@ -from setuptools import setup, find_packages # Always prefer setuptools over distutils -from codecs import open # To use a consistent encoding -from os import path - -here = path.abspath(path.dirname(__file__)) - -# Get the long description from the relevant file -with open(path.join(here, 'README.md'), encoding='utf-8') as f: - long_description = f.read() +from setuptools import setup, find_packages setup( name='tableprint', @@ -17,7 +9,7 @@ setup( version='0.1.2', description='Pretty ASCII printing of tabular data', - long_description=long_description, + long_description='''Formatted ASCII printing of tabular data''', # The project's main homepage. url='https://github.com/nirum/tableprint', @@ -65,7 +57,7 @@ setup( # project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html - install_requires=['pandas'], + install_requires=['numpy'], # List additional groups of dependencies here (e.g. development dependencies). # You can install these using the following syntax, for example: diff --git a/tableprint.py b/tableprint.py index a860632..585ec64 100644 --- a/tableprint.py +++ b/tableprint.py @@ -10,13 +10,13 @@ import numpy as np __all__ = ['table', 'row', 'header', 'frame'] -def frame(df, options=None): +def frame(dataframe, options=None): """ Print an ASCII table using the given pandas DataFrame Parameters ---------- - df : DataFrame + dataframe : DataFrame A pandas DataFrame with consisting of the table to print options : dict @@ -31,7 +31,7 @@ def frame(df, options=None): """ - table(np.array(df), list(df.columns), options) + table(np.array(dataframe), list(df.columns), options) def table(data, headers, options=None): @@ -200,4 +200,4 @@ def hr(ncols, column_width=10, corner_char='+', line_char='-'): hrstr = corner_char.join([('{:%s^%i}' % (line_char, column_width+2)).format('') for _ in range(ncols)]) - return corner_char + hrstr[1:-1] + corner_char \ No newline at end of file + return corner_char + hrstr[1:-1] + corner_char