Skip to content

Commit 1c922d0

Browse files
committed
sync with commons and use pyexcel 0.3.0
1 parent 9e62ce2 commit 1c922d0

File tree

9 files changed

+53
-10
lines changed

9 files changed

+53
-10
lines changed

.moban.d/setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{% extends 'setup.py.jj2' %}
2+
3+
{%block platform_block%}
4+
{%endblock%}
5+
6+
{%block compat_block%}
7+
{%endblock%}
8+
29
{%block additional_keywords%}
310
'http'
411
{%endblock %}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ python:
99
- 3.4
1010
- 3.5
1111
before_install:
12+
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
1213
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
1314
mv min_requirements.txt requirements.txt ;
1415
fi
15-
- pip install --upgrade "setuptools" "pip==7.1"
16+
- pip install --upgrade setuptools "pip==7.1"
1617
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
1718
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
1819
- pip install -r tests/requirements.txt

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
================================================================================
33

4+
0.0.8 - unreleased
5+
--------------------------------------------------------------------------------
6+
7+
Updated
8+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
10+
#. use pyexcel v0.3.0
11+
412
0.0.7 - 01.06.2016
513
--------------------------------------------------------------------------------
614

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
intersphinx_mapping = {
1010
'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None)
1111
}
12-
12+
spelling_word_list_filename = 'spelling_wordlist.txt'
1313
templates_path = ['_templates']
1414
source_suffix = '.rst'
1515
master_doc = 'index'
1616

1717
project = u'pyexcel-webio'
1818
copyright = u'2015-2016 Onni Software Ltd.'
1919
version = '0.0.7'
20-
release = '0.0.7'
20+
release = '0.0.8'
2121
exclude_patterns = []
2222
pygments_style = 'sphinx'
2323
html_theme = 'default'

pyexcel_webio.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-webio"
33
nick_name: webio
4-
version: 0.0.7
4+
version: 0.0.8
5+
release: 0.0.7
56
dependencies:
6-
- pyexcel>=0.2.2
7+
- pyexcel>=0.3.0
78
description: |
89
A generic request and response interface for pyexcel web extensions.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyexcel>=0.2.2
1+
pyexcel>=0.3.0

setup.py

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
NAME = 'pyexcel-webio'
99
AUTHOR = 'C.W.'
10-
VERSION = '0.0.7'
10+
VERSION = '0.0.8'
1111
EMAIL = 'wangc_2011 (at) hotmail.com'
1212
LICENSE = 'New BSD'
1313
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
@@ -23,9 +23,10 @@
2323
]
2424

2525
INSTALL_REQUIRES = [
26-
'pyexcel>=0.2.2',
26+
'pyexcel>=0.3.0',
2727
]
2828

29+
2930
EXTRAS_REQUIRE = {
3031
}
3132

@@ -55,14 +56,37 @@ def read_files(*files):
5556
"""Read files into setup"""
5657
text = ""
5758
for single_file in files:
58-
text = text + read(single_file) + "\n"
59+
content = read(single_file)
60+
text = text + content + "\n"
5961
return text
6062

6163

6264
def read(afile):
6365
"""Read a file into setup"""
6466
with open(afile, 'r') as opened_file:
65-
return opened_file.read()
67+
content = filter_out_test_code(opened_file)
68+
content = "".join(list(content))
69+
return content
70+
71+
72+
def filter_out_test_code(file_handle):
73+
found_test_code = False
74+
for line in file_handle.readlines():
75+
if line.startswith('.. testcode:'):
76+
found_test_code = True
77+
continue
78+
if found_test_code is True:
79+
if line.startswith(' '):
80+
continue
81+
else:
82+
empty_line = line.strip()
83+
if len(empty_line) == 0:
84+
continue
85+
else:
86+
found_test_code = False
87+
yield line
88+
else:
89+
yield line
6690

6791

6892
if __name__ == '__main__':

test.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
12
pip freeze
23
nosetests --with-cov --cover-package pyexcel_webio --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst pyexcel_webio && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
12
pip freeze
23
nosetests --with-cov --cover-package pyexcel_webio --cover-package tests --with-doctest --doctest-extension=.rst tests README.rst pyexcel_webio && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long

0 commit comments

Comments
 (0)