Skip to content

Commit ae756e6

Browse files
committedMay 2, 2012
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
1 parent 8a06a3f commit ae756e6

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed
 

‎CHANGELOG

+38-7
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,59 @@
1+
########## PrettyTable 0.6 - April XX, 2012 ##########
2+
3+
* Code is now simultaneously compatible with Python 2 and 3
4+
* Replaced all setter methods with managed attributes
5+
* All styling options can now be set persistently as managed attributes
6+
* Added "add_style" method to make setting style options easily
7+
* Added "del_row", "clear_rows" and "clear" methods to facilitate
8+
removal of data from table.
9+
* Added "copy" method to facilitate cloning of a table.
10+
* Removed caching functionality, which added complexity and fragility
11+
for relatively little gain
12+
* Removed methods that just printed strings produced by get_string and
13+
get_html_string - just use inbuilt print!
14+
* Improved unicode support (thanks to Google Code user ru.w31rd0 for
15+
patch!)
16+
* Added support for decimal and floating point number formatting
17+
support (thanks to Google Code user willfurnass for the suggestion!)
18+
* Added support for using a custom key sorting methods (thanks to
19+
Google Code user amannijhawan for the suggestion!)
20+
* Added support for line breaks in data (suggested and implemented by
21+
Klein Stephane)
22+
* Added support for max column widths (thanks to Tibor Arpas for the
23+
suggestion!)
24+
* Fixed table slicing
25+
* Fixed bug where closing <tr/> tags in HTML tables were not printed
26+
(thanks to Google Code user kehander for reporting this bug!)
27+
* Fixed HTML table sorting bug (thanks to Google Code user dougbeal
28+
for reporting this bug!)
29+
* Fixed bug whereby changing field_names did not recompute widths
30+
(thanks to Google Code user denilsonsa for reporting this bug!)
31+
132
########## PrettyTable 0.5 - May 26, 2009 ##########
233

334
* Fixed a bug whereby printing with headers=False and border=False
4-
would introduce an extraneous newline. Thanks to Alexander Lamaison
35+
would introduce an extraneous newline. Thanks to Alexander Lamaison
536
for reporting this bug.
637
* When printing with headers=False, column widths will now be reduced
738
as appropriate in columns where the field name is wider than the
8-
data. Thanks to Alexander Lamaison for suggesting this behaviour.
9-
* Support for Unicode has improved. Thanks to Chris Clark for
39+
data. Thanks to Alexander Lamaison for suggesting this behaviour.
40+
* Support for Unicode has improved. Thanks to Chris Clark for
1041
submitting this improvement.
1142
* The value of the "border" argument now correctly controls the
1243
presence of a border when printing HTML tables with print_html or
13-
get_html_string, instead of being incorrectly ignored. Thanks to
44+
get_html_string, instead of being incorrectly ignored. Thanks to
1445
Chris Clark for fixing this.
1546
* The print_html and get_html_string methods now accept an
1647
"attributes" argument which is a dictionary of name/value pairs to be
1748
placed inside the <table> tag (so you can, e.g. set class, name or id
18-
values in order to style your table with CSS). Thanks to Chris Clark
49+
values in order to style your table with CSS). Thanks to Chris Clark
1950
for submitting this feature.
2051
* The print_html and get_html_string methods now, by default, do their
2152
best to match the various formatting options in their HTML output.
2253
They use inline CSS to adjust the alignment of data in columns, the
23-
padding widths of columns and in some cases the border settings. You
54+
padding widths of columns and in some cases the border settings. You
2455
can give either method a "format=False" attribute to turn this
25-
behaviour off if you want to do your own styling. With "format=False"
56+
behaviour off if you want to do your own styling. With "format=False"
2657
the methods print a "bare bones" table, similar to the default
2758
behaviour in 0.4.
2859

‎COPYING

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Copyright (c) 2009, Luke Maurits <luke@maurits.id.au>
1+
# Copyright (c) 2009-2012 Luke Maurits <luke@maurits.id.au>
22
# All rights reserved.
33
# With contributions from:
44
# * Chris Clark
5+
# * Klein Stephane
56
#
67
# Redistribution and use in source and binary forms, with or without
78
# modification, are permitted provided that the following conditions are met:

‎src/setup.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
setup(
66
name='prettytable',
77
version=version,
8+
classifiers=[
9+
'Programming Language :: Python',
10+
'Programming Language :: Python :: 2.6',
11+
'Programming Language :: Python :: 2.7',
12+
'Programming Language :: Python :: 3',
13+
'License :: OSI Approved :: BSD License',
14+
'Topic :: Text Processing'
15+
],
816
description='A simple Python library for easily displaying tabular data in a visually appealing ASCII table format',
917
author='Luke Maurits',
1018
author_email='luke@maurits.id.au',
11-
url='http://www.luke.maurits.id.au/software/prettytable',
12-
license='http://www.luke.maurits.id.au/software/bsdlicense.txt',
19+
url='http://code.google.com/p/prettytable',
1320
py_modules=['prettytable']
1421
)

0 commit comments

Comments
 (0)
Please sign in to comment.