Allow xlwt on Python 2

Use xlwt-future only on Python 3
This commit is contained in:
John Vandenberg 2016-05-10 10:21:25 +07:00
parent 4cde31fe8a
commit b1e5c0fa4b
5 changed files with 43 additions and 3 deletions

View File

@ -6,6 +6,24 @@
- pypy
{%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 %}
- pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip
- pip install https://github.com/pyexcel/pyexcel/archive/master.zip

View File

@ -10,6 +10,21 @@ python:
- 3.3
- 3.4
- 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:
- pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip
- pip install https://github.com/pyexcel/pyexcel/archive/master.zip

View File

@ -6,5 +6,6 @@ file_type: xls
dependencies:
- pyexcel-io>=0.1.0
- xlrd
- xlwt-future
- xlwt;python_version<"3"
- xlwt-future;python_version>="3"
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
xlrd
xlwt-future
xlwt;python_version<"3"
xlwt-future;python_version>="3"

View File

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