Skip to content

Commit 71f4ca1

Browse files
committed
🥚 🎡 release 0.5.2. related to pyexcel/pyexcel#105
1 parent 54f8b41 commit 71f4ca1

File tree

6 files changed

+53
-21
lines changed

6 files changed

+53
-21
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
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+
413
0.5.1 - 20.10.2017
514
--------------------------------------------------------------------------------
615

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Fonts, colors and charts are not supported.
3030
Installation
3131
================================================================================
3232

33-
You can install it via pip:
33+
34+
You can install pyexcel-ods via pip:
3435

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

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

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

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
project = u'pyexcel-ods'
2222
copyright = u'2015-2017 Onni Software Ltd.'
23-
version = '0.5.1'
24-
release = '0.5.1'
23+
version = '0.5.2'
24+
release = '0.5.2'
2525
exclude_patterns = []
2626
pygments_style = 'sphinx'
2727
html_theme = 'default'

pyexcel_ods.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-ods"
33
nick_name: ods
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
- odfpy>=1.3.3
1111
description: A wrapper library to read, manipulate and write data in ods format

requirements.txt

Lines changed: 1 addition & 1 deletion
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
odfpy>=1.3.3

setup.py

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
NAME = 'pyexcel-ods'
99
AUTHOR = 'C.W.'
10-
VERSION = '0.5.1'
10+
VERSION = '0.5.2'
1111
1212
LICENSE = 'New BSD'
1313
DESCRIPTION = (
1414
'A wrapper library to read, manipulate and write data in ods format' +
1515
''
1616
)
1717
URL = 'https://github.com/pyexcel/pyexcel-ods'
18-
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
18+
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
1919
FILES = ['README.rst', 'CHANGELOG.rst']
2020
KEYWORDS = [
2121
'python'
@@ -36,19 +36,23 @@
3636
]
3737

3838
INSTALL_REQUIRES = [
39-
'pyexcel-io>=0.5.0',
39+
'pyexcel-io>=0.5.3',
4040
'odfpy>=1.3.3',
4141
]
4242

4343

4444
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
4545
EXTRAS_REQUIRE = {
4646
}
47+
# You do not need to read beyond this line
4748
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
4849
sys.executable)
49-
GS_COMMAND = ('gs pyexcel-ods v0.5.1 ' +
50-
"Find 0.5.1 in changelog for more details")
51-
here = os.path.abspath(os.path.dirname(__file__))
50+
GS_COMMAND = ('gs pyexcel-ods v0.5.2 ' +
51+
"Find 0.5.2 in changelog for more details")
52+
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
53+
'Please install gease to enable it.')
54+
UPLOAD_FAILED_MSG = ('Upload failed. please run "%s" yourself.')
55+
HERE = os.path.abspath(os.path.dirname(__file__))
5256

5357

5458
class PublishCommand(Command):
@@ -70,18 +74,37 @@ def finalize_options(self):
7074

7175
def run(self):
7276
try:
73-
self.status('Removing previous builds')
74-
rmtree(os.path.join(here, 'dist'))
77+
self.status('Removing previous builds...')
78+
rmtree(os.path.join(HERE, 'dist'))
7579
except OSError:
7680
pass
7781

78-
self.status('Building Source and Wheel (universal) distribution…')
79-
if os.system(GS_COMMAND) == 0:
80-
os.system(PUBLISH_COMMAND)
82+
self.status('Building Source and Wheel (universal) distribution...')
83+
run_status = True
84+
if has_gease():
85+
run_status = os.system(GS_COMMAND) == 0
86+
else:
87+
self.status(NO_GS_MESSAGE)
88+
if run_status:
89+
if os.system(PUBLISH_COMMAND) != 0:
90+
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
8191

8292
sys.exit()
8393

8494

95+
def has_gease():
96+
"""
97+
test if github release command is installed
98+
99+
visit http://github.com/moremoban/gease for more info
100+
"""
101+
try:
102+
import gease # noqa
103+
return True
104+
except ImportError:
105+
return False
106+
107+
85108
def read_files(*files):
86109
"""Read files into setup"""
87110
text = ""
@@ -142,7 +165,6 @@ def filter_out_test_code(file_handle):
142165
include_package_data=True,
143166
zip_safe=False,
144167
classifiers=CLASSIFIERS,
145-
setup_requires=['gease'],
146168
cmdclass={
147169
'publish': PublishCommand,
148170
}

0 commit comments

Comments
 (0)