File tree 7 files changed +28
-18
lines changed
7 files changed +28
-18
lines changed Original file line number Diff line number Diff line change 91
91
.ropeproject
92
92
* ~
93
93
commons /
94
- doc /build /
95
- cover /
96
- coverage /
94
+ commons
95
+ .moban.hashes
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ targets:
11
11
- .travis.yml : travis.yml
12
12
- requirements.txt : requirements.txt
13
13
- MANIFEST.in : MANIFEST.in.jj2
14
+ - .gitignore : .gitignore.jj2
14
15
- " tests/requirements.txt " : " tests/requirements.txt"
15
16
- test.sh : test.sh.jj2
16
17
- test.bat : test.sh.jj2
Original file line number Diff line number Diff line change 21
21
22
22
project = u'pyexcel-odsr'
23
23
copyright = u'2015-2017 Onni Software Ltd.'
24
- version = '0.3.0 '
24
+ version = '0.3.1 '
25
25
release = '0.4.0'
26
26
exclude_patterns = []
27
27
pygments_style = 'sphinx'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ overrides: "pyexcel.yaml"
2
2
name : " pyexcel-odsr"
3
3
nick_name : odsr
4
4
version : 0.4.0
5
- release : 0.3.0
5
+ release : 0.3.1
6
6
file_type : ods
7
7
dependencies :
8
8
- pyexcel-io>=0.4.0
Original file line number Diff line number Diff line change 8
8
# flake8: noqa
9
9
# this line has to be place above all else
10
10
# because of dynamic import
11
+ from pyexcel_io .plugins import IORegistry
12
+ from pyexcel_io .io import get_data as read_data , isstream , store_data as write_data
13
+
11
14
__FILE_TYPE__ = 'ods'
12
- __META__ = {
13
- 'plugin_type' : 'pyexcel io plugin' ,
14
- 'submodule' : __FILE_TYPE__ ,
15
- 'file_types' : [__FILE_TYPE__ ],
16
- 'stream_type' : 'binary'
17
- }
18
- __pyexcel_io_plugins__ = [__META__ ]
15
+ IORegistry (__name__ ).add_a_reader (
16
+ submodule = 'odsr.ODSBook' ,
17
+ file_types = [__FILE_TYPE__ ],
18
+ stream_type = 'binary'
19
+ )
19
20
20
21
21
22
from pyexcel_io .io import get_data as read_data , isstream
Original file line number Diff line number Diff line change
1
+ """
2
+ pyexcel_odsr.odsr
3
+ ~~~~~~~~~~~~~~~~~~~
4
+ The lower level ods file format handler using messytables
5
+
6
+ :copyright: (c) 2015-2017 by Onni Software Ltd & its contributors
7
+ :license: New BSD License
8
+ """
1
9
import sys
2
10
import math
3
11
Original file line number Diff line number Diff line change 1
1
import os
2
- from pyexcel_odsr import ods as odsr
3
- from pyexcel_ods import ods
2
+ from pyexcel_odsr .odsr import ODSBook
3
+ from pyexcel_ods .odsw import ODSWriter
4
+
4
5
from base import ODSCellTypes
5
6
6
7
7
8
class TestODSReader (ODSCellTypes ):
8
9
def setUp (self ):
9
- r = odsr . ODSBook ()
10
+ r = ODSBook ()
10
11
r .open (os .path .join ("tests" ,
11
12
"fixtures" ,
12
13
"ods_formats.ods" ))
@@ -18,17 +19,17 @@ def setUp(self):
18
19
19
20
class TestODSWriter (ODSCellTypes ):
20
21
def setUp (self ):
21
- r = odsr . ODSBook ()
22
+ r = ODSBook ()
22
23
r .open (os .path .join ("tests" ,
23
24
"fixtures" ,
24
25
"ods_formats.ods" ))
25
26
self .data1 = r .read_all ()
26
27
self .testfile = "odswriter.ods"
27
- w = ods . ODSWriter ()
28
+ w = ODSWriter ()
28
29
w .open (self .testfile )
29
30
w .write (self .data1 )
30
31
w .close ()
31
- r2 = odsr . ODSBook ()
32
+ r2 = ODSBook ()
32
33
r2 .open (self .testfile )
33
34
self .data = r2 .read_all ()
34
35
for key in self .data .keys ():
You can’t perform that action at this time.
0 commit comments