Skip to content

Commit bf8ce19

Browse files
committed
🥚 🎡 release 0.5.2. related to pyexcel/pyexcel#105
1 parent 3168dae commit bf8ce19

File tree

7 files changed

+53
-20
lines changed

7 files changed

+53
-20
lines changed

Diff for: CHANGELOG.rst

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Change log
22
================================================================================
33

4+
0.5.2 - 23.10.2017
5+
--------------------------------------------------------------------------------
6+
7+
updated
8+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
#. pyexcel `#105 <https://github.com/pyexcel/pyexcel/issues/105>`_, remove gease
10+
from setup_requires, introduced by 0.5.1.
11+
#. remove python2.6 test support
12+
#. update its dependecy on pyexcel-io to 0.5.3
13+
414
0.5.1 - 20.10.2017
515
--------------------------------------------------------------------------------
616

Diff for: README.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Fonts, colors and charts are not supported.
3131
Installation
3232
================================================================================
3333

34-
You can install it via pip:
34+
35+
You can install pyexcel-odsr via pip:
3536

3637
.. code-block:: bash
3738
@@ -54,7 +55,7 @@ product, please `support me on patreon <https://www.patreon.com/bePatron?u=55376
5455
maintain the project and develop it further.
5556

5657
If you are an individual, you are welcome to support me too on patreon and for however long
57-
you feel like to. As a patreon, you will receive
58+
you feel like. As a patreon, you will receive
5859
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
5960

6061
With your financial support, I will be able to invest

Diff for: docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
project = u'pyexcel-odsr'
2323
copyright = u'2015-2017 Onni Software Ltd.'
24-
version = '0.5.1'
25-
release = '0.5.1'
24+
version = '0.5.2'
25+
release = '0.5.2'
2626
exclude_patterns = []
2727
pygments_style = 'sphinx'
2828
html_theme = 'default'

Diff for: pyexcel_odsr.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-odsr"
33
nick_name: odsr
4-
version: 0.5.1
5-
current_version: 0.5.1
6-
release: 0.5.1
4+
version: 0.5.2
5+
current_version: 0.5.2
6+
release: 0.5.2
77
file_type: ods
88
dependencies:
9-
- pyexcel-io>=0.5.0
9+
- pyexcel-io>=0.5.3
1010
- lxml>=3.2
1111
keywords:
1212
- excel

Diff for: pyexcel_odsr/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Auto generated by moban
2-
__version__ = '0.5.1'
2+
__version__ = '0.5.2'
33
__author__ = 'C.W.'

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pyexcel-io>=0.5.0
1+
pyexcel-io>=0.5.3
22
lxml>=3.2

Diff for: setup.py

+32-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
NAME = 'pyexcel-odsr'
99
AUTHOR = 'C.W.'
10-
VERSION = '0.5.1'
10+
VERSION = '0.5.2'
1111
1212
LICENSE = 'New BSD'
1313
DESCRIPTION = (
@@ -16,7 +16,7 @@
1616
''
1717
)
1818
URL = 'https://github.com/pyexcel/pyexcel-odsr'
19-
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
19+
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
2020
FILES = ['README.rst', 'CONTRIBUTORS.rst', 'CHANGELOG.rst']
2121
KEYWORDS = [
2222
'excel',
@@ -40,19 +40,23 @@
4040
]
4141

4242
INSTALL_REQUIRES = [
43-
'pyexcel-io>=0.5.0',
43+
'pyexcel-io>=0.5.3',
4444
'lxml>=3.2',
4545
]
4646

4747

4848
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
4949
EXTRAS_REQUIRE = {
5050
}
51+
# You do not need to read beyond this line
5152
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
5253
sys.executable)
53-
GS_COMMAND = ('gs pyexcel-odsr v0.5.1 ' +
54-
"Find 0.5.1 in changelog for more details")
55-
here = os.path.abspath(os.path.dirname(__file__))
54+
GS_COMMAND = ('gs pyexcel-odsr v0.5.2 ' +
55+
"Find 0.5.2 in changelog for more details")
56+
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
57+
'Please install gease to enable it.')
58+
UPLOAD_FAILED_MSG = ('Upload failed. please run "%s" yourself.')
59+
HERE = os.path.abspath(os.path.dirname(__file__))
5660

5761

5862
class PublishCommand(Command):
@@ -75,17 +79,36 @@ def finalize_options(self):
7579
def run(self):
7680
try:
7781
self.status('Removing previous builds...')
78-
rmtree(os.path.join(here, 'dist'))
82+
rmtree(os.path.join(HERE, 'dist'))
7983
except OSError:
8084
pass
8185

8286
self.status('Building Source and Wheel (universal) distribution...')
83-
if os.system(GS_COMMAND) == 0:
84-
os.system(PUBLISH_COMMAND)
87+
run_status = True
88+
if has_gease():
89+
run_status = os.system(GS_COMMAND) == 0
90+
else:
91+
self.status(NO_GS_MESSAGE)
92+
if run_status:
93+
if os.system(PUBLISH_COMMAND) != 0:
94+
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
8595

8696
sys.exit()
8797

8898

99+
def has_gease():
100+
"""
101+
test if github release command is installed
102+
103+
visit http://github.com/moremoban/gease for more info
104+
"""
105+
try:
106+
import gease # noqa
107+
return True
108+
except ImportError:
109+
return False
110+
111+
89112
def read_files(*files):
90113
"""Read files into setup"""
91114
text = ""
@@ -146,7 +169,6 @@ def filter_out_test_code(file_handle):
146169
include_package_data=True,
147170
zip_safe=False,
148171
classifiers=CLASSIFIERS,
149-
setup_requires=['gease'],
150172
cmdclass={
151173
'publish': PublishCommand,
152174
}

0 commit comments

Comments
 (0)