Skip to content

Commit cf09535

Browse files
committed
prepare for release
1 parent 477a48d commit cf09535

File tree

8 files changed

+31
-18
lines changed

8 files changed

+31
-18
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ language: python
33
notifications:
44
email: false
55
python:
6+
- pypy
67
- 3.6
78
- 3.5
89
- 3.4
910
- 3.3
1011
- 2.7
1112
- 2.6
12-
- pypy
1313
matrix:
1414
include:
1515
- python: 2.7
@@ -25,13 +25,15 @@ matrix:
2525
- python-openpyxl
2626

2727
before_install:
28+
- cd $HOME
29+
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.7.1-linux_x86_64-portable.tar.bz2 -O - | tar -jxf - && echo 'Setting up aliases...' && ln -s pypy-5.7.1-linux_x86_64-portable pypy2-latest && export PATH=$HOME/pypy2-latest/bin/:$PATH && virtualenv --no-site-packages --python ~/pypy2-latest/bin/pypy pypy2-env && echo 'Creating custom env...' && source pypy2-env/bin/activate && python -V; fi"
30+
- cd -
2831
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
2932
- pip install --upgrade pip>8 setuptools>21
3033
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
3134
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
3235
mv min_requirements.txt requirements.txt ;
3336
fi
34-
- pip install --upgrade setuptools "pip==7.1"
3537
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
3638
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
3739
- pip install -r tests/requirements.txt

README.rst

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ or clone it and install it:
3939
$ cd pyexcel-xlsxw
4040
$ python setup.py install
4141
42+
Support the project
43+
================================================================================
44+
45+
If your company has embedded pyexcel and its components into a revenue generating
46+
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
47+
maintain the project and develop it further.
48+
49+
If you are an individual, you are welcome to support me too on patreon and for however long
50+
you feel like to. As a patreon, you will receive
51+
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
52+
53+
With your financial support, I will be able to invest
54+
a little bit more time in coding, documentation and writing interesting posts.
55+
56+
4257
Usage
4358
================================================================================
4459

@@ -245,10 +260,3 @@ On Windows systems, please issue this command::
245260
>>> import os
246261
>>> os.unlink("your_file.xlsx")
247262
>>> os.unlink("another_file.xlsx")
248-
249-
Support the project
250-
================================================================================
251-
252-
If your company has embedded pyexcel and its components into a revenue generating
253-
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
254-
maintain the project and develop it further.

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212

1313
intersphinx_mapping = {
14-
'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None)
14+
'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None),
1515
}
1616
spelling_word_list_filename = 'spelling_wordlist.txt'
1717
templates_path = ['_templates']
@@ -20,7 +20,7 @@
2020

2121
project = u'pyexcel-xlsxw'
2222
copyright = u'2015-2017 Onni Software Ltd.'
23-
version = '0.3.2'
23+
version = '0.4.0'
2424
release = '0.4.0'
2525
exclude_patterns = []
2626
pygments_style = 'sphinx'

pyexcel_xlsxw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ overrides: "pyexcel.yaml"
22
name: "pyexcel-xlsxw"
33
nick_name: xlsxw
44
version: 0.4.0
5-
release: 0.3.2
5+
release: 0.4.0
66
file_type: xlsx
77
dependencies:
88
- XlsxWriter==0.9.3
9-
- pyexcel-io>=0.3.0
9+
- pyexcel-io>=0.4.0
1010
description: A wrapper library to write data in xlsx and xlsm format

pyexcel_xlsxw/xlsxw.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
:copyright: (c) 2016 by Onni Software Ltd & its contributors
88
:license: New BSD License
99
"""
10+
import xlsxwriter
11+
1012
from pyexcel_io.book import BookWriter
1113
from pyexcel_io.sheet import SheetWriter
12-
import xlsxwriter
1314

1415

1516
class XLSXSheetWriter(SheetWriter):
1617
"""
17-
xlsx and xlsm sheet writer
18+
xlsx sheet writer
1819
"""
1920
def set_sheet_name(self, name):
2021
self.current_row = 0
@@ -30,7 +31,7 @@ def write_row(self, array):
3031

3132
class XLSXWriter(BookWriter):
3233
"""
33-
xlsx and xlsm writer
34+
xlsx writer
3435
"""
3536
def __init__(self):
3637
BookWriter.__init__(self)
@@ -66,3 +67,4 @@ def close(self):
6667
This call actually save the file
6768
"""
6869
self._native_book.close()
70+
self._native_book = None

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
XlsxWriter==0.9.3
2-
pyexcel-io>=0.3.0
2+
pyexcel-io>=0.4.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
INSTALL_REQUIRES = [
4242
'XlsxWriter==0.9.3',
43-
'pyexcel-io>=0.3.0',
43+
'pyexcel-io>=0.4.0',
4444
]
4545

4646

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nose
2+
mock;python_version<"3"
23
codecov
34
coverage
45
flake8

0 commit comments

Comments
 (0)