Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed May 10, 2014
1 parent 9a811c4 commit 6c24e1b
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 17 deletions.
30 changes: 17 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
# 0.5.0 - February 7, 2014 - "YOLO"
0.6.0 - May 10, 2014
* Support for setting row/column widths
* Fix issue #22 - Decimal data type (thanks rhyek)

0.5.0 - February 7, 2014 - "YOLO"
* Implement new "YOLO" mode for increased PyExceleration
* Fix tests/benchmark.py and update benchmark data

# 0.4.1 - December 4, 2013
0.4.1 - December 4, 2013
* Fix import errors caused by missing templates
* Remove bundled six.py and use system-wide six.py instead

# 0.4.0 - November 15 , 2013
0.4.0 - November 15 , 2013
* Add basic style support (see README.md for usage and examples)
* Merge and intersection logic bugfixes (thanks morty)
* Fixed float precision bug (thanks jmcnamara)

# 0.3.0 - July 29, 2013
* Fixed bug in __coordinate_to_string function
0.3.0 - July 29, 2013
* Fixed bug in \_\_coordinate\_to\_string function
* Compatibility fixes for Python 3 and numpy datatypes
* Updated test suite to work with Python 3

# 0.2.6 - July 10, 2013
0.2.6 - July 10, 2013
* Better PyInstaller compatibility (sys.executable in addition to sys.\_MEIPASS)

# 0.2.5 - May 14, 2013
0.2.5 - May 14, 2013
* Fixed int/float bug (thanks Redoubts)

# 0.2.4 - May 2, 2013
0.2.4 - May 2, 2013
* Increased exceleration (in response to issue #1)

# 0.2.3 - April 23, 2013
0.2.3 - April 23, 2013
* #3 - fix numpy and other subclasses support (thanks Redoubts)
* #4 - fix issue with range writer (thanks Redoubts)

# 0.2.2 - April 22, 2013
0.2.2 - April 22, 2013
* #2 - template path detection fix for PyInstaller (thanks sh0375)

# 0.2.1 - April 21, 2013
0.2.1 - April 21, 2013
* datetime bugfixes
* optimization for type-checking
* UTF-8 encoding fix (thanks Genmutant from Reddit)

# 0.2.0 - April 20, 2013
0.2.0 - April 20, 2013
* Add datetime support
* Add Workbook.cell() call

# 0.1.0 - April 20, 2013
0.1.0 - April 20, 2013
* Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Accelerated Excel XLSX writing library for Python 2/3
[![Build Status](https://travis-ci.org/kz26/PyExcelerate.png?branch=master)](https://travis-ci.org/kz26/PyExcelerate)
[![Coverage Status](https://coveralls.io/repos/kz26/PyExcelerate/badge.png)](https://coveralls.io/r/kz26/PyExcelerate)

* Current version: 0.5.0
* Current version: 0.6.0
* Authors: [Kevin Wang](https://github.com/kevmo314) and [Kevin Zhang](https://github.com/kz26)
* License: Simplified BSD License
* [Source repository](https://github.com/kz26/PyExcelerate)
Expand Down
3 changes: 2 additions & 1 deletion pyexcelerate/DataTypes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime, date, time
import decimal
import six
try:
import numpy as np
Expand All @@ -17,7 +18,7 @@ class DataTypes(object):
FORMULA = 7
EXCEL_BASE_DATE = datetime(1900, 1, 1, 0, 0, 0)

_numberTypes = six.integer_types + (float, complex)
_numberTypes = six.integer_types + (float, complex, decimal.Decimal)

@staticmethod
def get_type(value):
Expand Down
6 changes: 5 additions & 1 deletion pyexcelerate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
from .Format import Format
from .Alignment import Alignment

__version__ = '0.5.0'
try:
import pkg_resources
__version__ = pkg_resources.require('PyExcelerate')[0].version
except:
__version__ = 'unknown'
1 change: 1 addition & 0 deletions pyexcelerate/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.6.0'
2 changes: 2 additions & 0 deletions pyexcelerate/tests/test_DataTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
from datetime import datetime, date, time
from ..Workbook import Workbook
from .utils import get_output_path
from decimal import Decimal
import numpy

def test__get_type():
eq_(DataTypes.get_type(15), DataTypes.NUMBER)
eq_(DataTypes.get_type(15.0), DataTypes.NUMBER)
eq_(DataTypes.get_type(Decimal('15.0')), DataTypes.NUMBER)
eq_(DataTypes.get_type("test"), DataTypes.INLINE_STRING)
eq_(DataTypes.get_type(datetime.now()), DataTypes.DATE)
eq_(DataTypes.get_type(True), DataTypes.BOOLEAN)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/python

from setuptools import setup
execfile('pyexcelerate/_version.py')

setup(
name="PyExcelerate",
version='0.5.0',
version=__version__,
author="Kevin Wang and Kevin Zhang",
author_email="kevin@kevinzhang.me",
maintainer="Kevin Zhang",
Expand Down

0 comments on commit 6c24e1b

Please sign in to comment.