Skip to content

Commit 072d698

Browse files
committed
downgrade the requirement on setuptools, related to pyexcel/pyexcel-xlsx#9, pyexcel/pyexcel#58
1 parent a657cce commit 072d698

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

.moban.d/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{% extends 'setup.py.jj2' %}
22

3+
{%block platform_block%}
4+
{%endblock%}
5+
36
{%block additional_keywords %}
47
'xls',
58
'xlsx',

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ before_install:
3131
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
3232
mv min_requirements.txt requirements.txt ;
3333
fi
34-
- pip install --upgrade "setuptools" "pip==7.1"
34+
- pip install --upgrade setuptools "pip==7.1"
3535
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
3636
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
3737
- pip install -r tests/requirements.txt

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ Fonts, colors and charts are not supported.
1818
Installation
1919
================================================================================
2020

21-
22-
Recently, pyexcel(0.2.2+) and its plugins(0.2.0+) started using newer version of setuptools. Please upgrade your setup tools before install latest pyexcel components:
23-
24-
.. code-block:: bash
25-
26-
$ pip install --upgrade setuptools
27-
2821
You can install it via pip:
2922

3023
.. code-block:: bash
@@ -284,6 +277,13 @@ Development steps for code changes
284277

285278
#. git clone https://github.com/pyexcel/pyexcel-xls.git
286279
#. cd pyexcel-xls
280+
281+
Upgrade your setup tools and pip. They are needed for development and testing only:
282+
283+
#. pip install --upgrade setuptools "pip==7.1"
284+
285+
Then install relevant development requirements:
286+
287287
#. pip install -r rnd_requirements.txt # if such a file exists
288288
#. pip install -r requirements.txt
289289
#. pip install -r tests/requirements.txt

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
project = u'pyexcel-xls'
1818
copyright = u'2015-2016 Onni Software Ltd.'
19-
version = '0.2.2'
20-
release = '0.2.1'
19+
version = '0.2.1'
20+
release = '0.2.2'
2121
exclude_patterns = []
2222
pygments_style = 'sphinx'
2323
html_theme = 'default'

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
from ez_setup import use_setuptools
55
use_setuptools()
66
from setuptools import setup, find_packages
7+
import sys
8+
PY2 = sys.version_info[0] == 2
9+
PY26 = PY2 and sys.version_info[1] < 7
710

811
NAME = 'pyexcel-xls'
912
AUTHOR = 'C.W.'
@@ -30,13 +33,12 @@
3033
'xlrd',
3134
]
3235

36+
if PY2:
37+
INSTALL_REQUIRES.append('xlwt')
38+
if not PY2:
39+
INSTALL_REQUIRES.append('xlwt-future')
40+
3341
EXTRAS_REQUIRE = {
34-
':python_version<"3"': [
35-
'xlwt'
36-
],
37-
':python_version>="3"': [
38-
'xlwt-future'
39-
],
4042
}
4143

4244
CLASSIFIERS = [

0 commit comments

Comments
 (0)