Removed README.md dependency in setup.py

This commit is contained in:
Niru Maheswaranathan
2015-07-28 13:37:30 -07:00
parent bcf83e31d6
commit e00bbb8c7e
2 changed files with 7 additions and 15 deletions

View File

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

View File

@@ -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
return corner_char + hrstr[1:-1] + corner_char