update dependencies
This commit is contained in:
parent
b896b3979a
commit
5a8e72b24b
|
@ -10,6 +10,9 @@ python:
|
|||
- 2.7
|
||||
- 2.6
|
||||
before_install:
|
||||
- cd $HOME
|
||||
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.7.1-linux_x86_64-portable.tar.bz2 -O - | tar -jxf - && echo 'Setting up aliases...' && ln -s pypy-5.7.1-linux_x86_64-portable pypy2-latest && export PATH=$HOME/pypy2-latest/bin/:$PATH && virtualenv --no-site-packages --python ~/pypy2-latest/bin/pypy pypy2-env && echo 'Creating custom env...' && source pypy2-env/bin/activate && python -V; fi"
|
||||
- cd -
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
|
||||
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
|
||||
mv min_requirements.txt requirements.txt ;
|
||||
|
|
22
README.rst
22
README.rst
|
@ -42,6 +42,21 @@ or clone it and install it:
|
|||
$ cd pyexcel-ods
|
||||
$ python setup.py install
|
||||
|
||||
Support the project
|
||||
================================================================================
|
||||
|
||||
If your company has embedded pyexcel and its components into a revenue generating
|
||||
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
|
||||
maintain the project and develop it further.
|
||||
|
||||
If you are an individual, you are welcome to support me too on patreon and for however long
|
||||
you feel like to. As a patreon, you will receive
|
||||
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
|
||||
|
||||
With your financial support, I will be able to invest
|
||||
a little bit more time in coding, documentation and writing interesting posts.
|
||||
|
||||
|
||||
Usage
|
||||
================================================================================
|
||||
|
||||
|
@ -346,10 +361,3 @@ ODSReader is originally written by `Marco Conti <https://github.com/marcoconti83
|
|||
>>> import os
|
||||
>>> os.unlink("your_file.ods")
|
||||
>>> os.unlink("another_file.ods")
|
||||
|
||||
Support the project
|
||||
================================================================================
|
||||
|
||||
If your company has embedded pyexcel and its components into a revenue generating
|
||||
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
|
||||
maintain the project and develop it further.
|
||||
|
|
|
@ -20,7 +20,7 @@ master_doc = 'index'
|
|||
|
||||
project = u'pyexcel-ods'
|
||||
copyright = u'2015-2017 Onni Software Ltd.'
|
||||
version = '0.3.3'
|
||||
version = '0.4.0'
|
||||
release = '0.4.0'
|
||||
exclude_patterns = []
|
||||
pygments_style = 'sphinx'
|
||||
|
|
|
@ -2,9 +2,9 @@ overrides: "pyexcel.yaml"
|
|||
name: "pyexcel-ods"
|
||||
nick_name: ods
|
||||
version: 0.4.0
|
||||
release: 0.3.3
|
||||
release: 0.4.0
|
||||
file_type: ods
|
||||
dependencies:
|
||||
- pyexcel-io>=0.3.0
|
||||
- pyexcel-io>=0.4.0
|
||||
- odfpy>=1.3.3
|
||||
description: A wrapper library to read, manipulate and write data in ods format
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
# limitations under the License.
|
||||
|
||||
# Thanks to grt for the fixes
|
||||
import sys
|
||||
import math
|
||||
|
||||
from odf.table import TableRow, TableCell, Table
|
||||
|
@ -32,17 +31,10 @@ from odf.opendocument import load
|
|||
|
||||
from pyexcel_io.book import BookReader
|
||||
from pyexcel_io.sheet import SheetReader
|
||||
from pyexcel_io._compact import OrderedDict, PY2
|
||||
|
||||
import pyexcel_ods.converter as converter
|
||||
|
||||
PY2 = sys.version_info[0] == 2
|
||||
|
||||
PY27_BELOW = PY2 and sys.version_info[1] < 7
|
||||
if PY27_BELOW:
|
||||
from ordereddict import OrderedDict
|
||||
else:
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
class ODSSheet(SheetReader):
|
||||
"""native ods sheet"""
|
||||
|
@ -168,6 +160,9 @@ class ODSBook(BookReader):
|
|||
sheet = ODSSheet(native_sheet, **self._keywords)
|
||||
return {sheet.name: sheet.to_array()}
|
||||
|
||||
def close(self):
|
||||
self._native_book = None
|
||||
|
||||
def _load_from_memory(self):
|
||||
self._native_book = load(self._file_stream)
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
pyexcel-io>=0.3.0
|
||||
pyexcel-io>=0.4.0
|
||||
odfpy>=1.3.3
|
||||
|
|
Loading…
Reference in New Issue