diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-05-02 02:36:52 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-05-02 02:36:52 +0000 |
commit | 3f738f7e7f2fb50b835eb181a61c943dae960703 (patch) | |
tree | 91080643e7743b0d660607306059e8e0926c4105 | |
parent | 9dd5c608efd7ba64ce80961d84eac5cb9299c429 (diff) | |
download | python-prettytable-3f738f7e7f2fb50b835eb181a61c943dae960703.tar.gz |
Copied trunk to 0.6 branch and updated non-source files in preparation for 0.6.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@55 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | CHANGELOG | 45 | ||||
-rw-r--r-- | COPYING | 3 | ||||
-rw-r--r-- | src/setup.py | 11 |
3 files changed, 49 insertions, 10 deletions
@@ -1,28 +1,59 @@ +########## PrettyTable 0.6 - April XX, 2012 ########## + +* Code is now simultaneously compatible with Python 2 and 3 +* Replaced all setter methods with managed attributes +* All styling options can now be set persistently as managed attributes +* Added "add_style" method to make setting style options easily +* Added "del_row", "clear_rows" and "clear" methods to facilitate + removal of data from table. +* Added "copy" method to facilitate cloning of a table. +* Removed caching functionality, which added complexity and fragility + for relatively little gain +* Removed methods that just printed strings produced by get_string and + get_html_string - just use inbuilt print! +* Improved unicode support (thanks to Google Code user ru.w31rd0 for + patch!) +* Added support for decimal and floating point number formatting + support (thanks to Google Code user willfurnass for the suggestion!) +* Added support for using a custom key sorting methods (thanks to + Google Code user amannijhawan for the suggestion!) +* Added support for line breaks in data (suggested and implemented by + Klein Stephane) +* Added support for max column widths (thanks to Tibor Arpas for the + suggestion!) +* Fixed table slicing +* Fixed bug where closing <tr/> tags in HTML tables were not printed + (thanks to Google Code user kehander for reporting this bug!) +* Fixed HTML table sorting bug (thanks to Google Code user dougbeal + for reporting this bug!) +* Fixed bug whereby changing field_names did not recompute widths + (thanks to Google Code user denilsonsa for reporting this bug!) + ########## PrettyTable 0.5 - May 26, 2009 ########## * Fixed a bug whereby printing with headers=False and border=False - would introduce an extraneous newline. Thanks to Alexander Lamaison + would introduce an extraneous newline. Thanks to Alexander Lamaison for reporting this bug. * When printing with headers=False, column widths will now be reduced as appropriate in columns where the field name is wider than the - data. Thanks to Alexander Lamaison for suggesting this behaviour. -* Support for Unicode has improved. Thanks to Chris Clark for + data. Thanks to Alexander Lamaison for suggesting this behaviour. +* Support for Unicode has improved. Thanks to Chris Clark for submitting this improvement. * The value of the "border" argument now correctly controls the presence of a border when printing HTML tables with print_html or - get_html_string, instead of being incorrectly ignored. Thanks to + get_html_string, instead of being incorrectly ignored. Thanks to Chris Clark for fixing this. * The print_html and get_html_string methods now accept an "attributes" argument which is a dictionary of name/value pairs to be placed inside the <table> tag (so you can, e.g. set class, name or id - values in order to style your table with CSS). Thanks to Chris Clark + values in order to style your table with CSS). Thanks to Chris Clark for submitting this feature. * The print_html and get_html_string methods now, by default, do their best to match the various formatting options in their HTML output. They use inline CSS to adjust the alignment of data in columns, the - padding widths of columns and in some cases the border settings. You + padding widths of columns and in some cases the border settings. You can give either method a "format=False" attribute to turn this - behaviour off if you want to do your own styling. With "format=False" + behaviour off if you want to do your own styling. With "format=False" the methods print a "bare bones" table, similar to the default behaviour in 0.4. @@ -1,7 +1,8 @@ -# Copyright (c) 2009, Luke Maurits <luke@maurits.id.au> +# Copyright (c) 2009-2012 Luke Maurits <luke@maurits.id.au> # All rights reserved. # With contributions from: # * Chris Clark +# * Klein Stephane # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff --git a/src/setup.py b/src/setup.py index b0e139b..458ab59 100644 --- a/src/setup.py +++ b/src/setup.py @@ -5,10 +5,17 @@ from prettytable import __version__ as version setup( name='prettytable', version=version, + classifiers=[ + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'License :: OSI Approved :: BSD License', + 'Topic :: Text Processing' + ], description='A simple Python library for easily displaying tabular data in a visually appealing ASCII table format', author='Luke Maurits', author_email='luke@maurits.id.au', - url='http://www.luke.maurits.id.au/software/prettytable', - license='http://www.luke.maurits.id.au/software/bsdlicense.txt', + url='http://code.google.com/p/prettytable', py_modules=['prettytable'] ) |