Merge pull request #5 from jayvdb/use-sid

Allow xlwt on Python 2
This commit is contained in:
jaska 2016-05-10 12:23:48 +01:00
commit ba48e6f443
7 changed files with 47 additions and 8 deletions

View File

@ -8,7 +8,7 @@
{%endblock%} {%endblock%}
{%block description%} {%block description%}
**pyexcel-{{file_type}}** is a tiny wrapper library to read, manipulate and write data in {{file_type}} format and it can read xlsx and xlsm fromat. You are likely to use it with `pyexcel <https://github.com/pyexcel/pyexcel>`_. **pyexcel-{{file_type}}** is a tiny wrapper library to read, manipulate and write data in {{file_type}} format and it can read xlsx and xlsm fromat. You are likely to use it with `pyexcel <https://github.com/pyexcel/pyexcel>`_.
{%endblock%} {%endblock%}
{%block extras %} {%block extras %}

View File

@ -6,8 +6,26 @@
- pypy - pypy
{%endblock%} {%endblock%}
{%block extra_matrix%}
matrix:
include:
- python: 2.7
dist: trusty
sudo: required
virtualenv:
system_site_packages: true
addons:
apt:
packages:
- python-xlwt
- python-xlrd
- python-coverage
- python-nose
- python-mock
{%endblock%}
{%block custom_install %} {%block custom_install %}
- pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip - pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip
- pip install https://github.com/pyexcel/pyexcel/archive/master.zip - pip install https://github.com/pyexcel/pyexcel/archive/master.zip
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi - if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
{%endblock%} {%endblock%}

View File

@ -10,6 +10,21 @@ python:
- 3.3 - 3.3
- 3.4 - 3.4
- 3.5 - 3.5
matrix:
include:
- python: 2.7
dist: trusty
sudo: required
virtualenv:
system_site_packages: true
addons:
apt:
packages:
- python-xlwt
- python-xlrd
- python-coverage
- python-nose
- python-mock
before_install: before_install:
- pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip - pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip
- pip install https://github.com/pyexcel/pyexcel/archive/master.zip - pip install https://github.com/pyexcel/pyexcel/archive/master.zip

View File

@ -8,7 +8,7 @@ pyexcel-xls - Let you focus on data, instead of xls format
.. image:: https://codecov.io/github/pyexcel/pyexcel-xls/coverage.png .. image:: https://codecov.io/github/pyexcel/pyexcel-xls/coverage.png
:target: https://codecov.io/github/pyexcel/pyexcel-xls :target: https://codecov.io/github/pyexcel/pyexcel-xls
**pyexcel-xls** is a tiny wrapper library to read, manipulate and write data in xls format and it can read xlsx and xlsm fromat. You are likely to use it with `pyexcel <https://github.com/pyexcel/pyexcel>`_. **pyexcel-xls** is a tiny wrapper library to read, manipulate and write data in xls format and it can read xlsx and xlsm fromat. You are likely to use it with `pyexcel <https://github.com/pyexcel/pyexcel>`_.
Known constraints Known constraints
================== ==================

View File

@ -6,6 +6,6 @@ file_type: xls
dependencies: dependencies:
- pyexcel-io>=0.1.0 - pyexcel-io>=0.1.0
- xlrd - xlrd
- xlwt-future - xlwt;python_version<"3"
description: | - xlwt-future;python_version>="3"
A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format description: A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format

View File

@ -1,3 +1,4 @@
pyexcel-io>=0.1.0 pyexcel-io>=0.1.0
xlrd xlrd
xlwt-future xlwt;python_version<"3"
xlwt-future;python_version>="3"

View File

@ -24,10 +24,15 @@ KEYWORDS = [
INSTALL_REQUIRES = [ INSTALL_REQUIRES = [
'pyexcel-io>=0.1.0', 'pyexcel-io>=0.1.0',
'xlrd', 'xlrd',
'xlwt-future',
] ]
EXTRAS_REQUIRE = { EXTRAS_REQUIRE = {
':python_version<"3"': [
'xlwt'
],
':python_version>="3"': [
'xlwt-future'
],
} }
CLASSIFIERS = [ CLASSIFIERS = [