Skip to content

Commit b04c4c4

Browse files
committed
sync with commons
1 parent 0dfe727 commit b04c4c4

File tree

6 files changed

+24
-18
lines changed

6 files changed

+24
-18
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Development steps for code changes
276276

277277
Upgrade your setup tools and pip. They are needed for development and testing only:
278278

279-
#. pip install --upgrade setuptools "pip==7.1"
279+
#. pip install --upgrade setuptools pip
280280

281281
Then install relevant development requirements:
282282

@@ -285,7 +285,7 @@ Then install relevant development requirements:
285285
#. pip install -r tests/requirements.txt
286286

287287

288-
In order to update test environment, and documentation, additional setps are
288+
In order to update test environment, and documentation, additional steps are
289289
required:
290290

291291
#. pip install moban
@@ -314,7 +314,7 @@ Although `nose` and `doctest` are both used in code testing, it is adviable that
314314

315315
On Linux/Unix systems, please launch your tests like this::
316316

317-
$ make test
317+
$ make
318318

319319
On Windows systems, please issue this command::
320320

docs/source/conf.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# -*- coding: utf-8 -*-
2+
DESCRIPTION = (
3+
'A wrapper library to read, manipulate and write data in xls format. It' +
4+
' reads xlsx and xlsm format' +
5+
''
6+
)
27
extensions = [
38
'sphinx.ext.autodoc',
49
'sphinx.ext.doctest',
@@ -25,15 +30,19 @@
2530
htmlhelp_basename = 'pyexcel-xlsdoc'
2631
latex_elements = {}
2732
latex_documents = [
28-
('index', 'pyexcel-xls.tex', u'pyexcel-xls Documentation',
33+
('index', 'pyexcel-xls.tex',
34+
'pyexcel-xls Documentation',
2935
'Onni Software Ltd.', 'manual'),
3036
]
3137
man_pages = [
32-
('index', 'pyexcel-xls', u'pyexcel-xls Documentation',
38+
('index', 'pyexcel-xls',
39+
'pyexcel-xls Documentation',
3340
[u'Onni Software Ltd.'], 1)
3441
]
3542
texinfo_documents = [
36-
('index', 'pyexcel-xls', u'pyexcel-xls Documentation',
37-
'Onni Software Ltd.', 'pyexcel-xls', 'One line description of project.',
43+
('index', 'pyexcel-xls',
44+
'pyexcel-xls Documentation',
45+
'Onni Software Ltd.', 'pyexcel-xls',
46+
DESCRIPTION,
3847
'Miscellaneous'),
3948
]

test.bat

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

test.sh

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

tests/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import os # noqa
1+
import os # noqa
22
import pyexcel
3-
import datetime # noqa
4-
from nose.tools import raises, eq_ # noqa
3+
import datetime # noqa
4+
from nose.tools import raises, eq_ # noqa
55

66

77
def create_sample_file1(file):

tests/test_formatters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def test_reading_date_format(self):
1616
"""
1717
import datetime
1818
r = pe.get_sheet(file_name=os.path.join("tests", "fixtures",
19-
"date_field.xls"))
19+
"date_field.xls"),
20+
library='pyexcel-xls')
2021
assert isinstance(r[1, 0], datetime.date) is True
2122
assert r[1, 0].strftime("%d/%m/%y") == "25/12/14"
2223
assert isinstance(r[1, 1], datetime.time) is True
@@ -31,7 +32,7 @@ def test_writing_date_format(self):
3132
datetime.time(11, 11, 11),
3233
datetime.datetime(2014, 12, 25, 11, 11, 11)]]
3334
pe.save_as(dest_file_name=excel_filename, array=data)
34-
r = pe.get_sheet(file_name=excel_filename)
35+
r = pe.get_sheet(file_name=excel_filename, library='pyexcel-xls')
3536
assert isinstance(r[0, 0], datetime.date) is True
3637
assert r[0, 0].strftime("%d/%m/%y") == "25/12/14"
3738
assert isinstance(r[0, 1], datetime.time) is True

0 commit comments

Comments
 (0)