Skip to content

Commit f670b7e

Browse files
committed
🥚 🎡 release 0.5.2. related to pyexcel/pyexcel#105
1 parent f5f89a4 commit f670b7e

File tree

6 files changed

+52
-19
lines changed

6 files changed

+52
-19
lines changed

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
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

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-ods3 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-ods3'
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_ods3.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-ods3"
33
nick_name: ods3
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
1111
- pyexcel-ezodf>=0.3.3
1212
- weakrefset;python_version<"2.7"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pyexcel-io>=0.5.0
1+
pyexcel-io>=0.5.3
22
lxml
33
pyexcel-ezodf>=0.3.3
44
weakrefset;python_version<"2.7"

setup.py

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
NAME = 'pyexcel-ods3'
1111
AUTHOR = 'C.W.'
12-
VERSION = '0.5.1'
12+
VERSION = '0.5.2'
1313
1414
LICENSE = 'New BSD'
1515
DESCRIPTION = (
1616
'A wrapper library to read, manipulate and write data in ods format' +
1717
''
1818
)
1919
URL = 'https://github.com/pyexcel/pyexcel-ods3'
20-
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
20+
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
2121
FILES = ['README.rst', 'CHANGELOG.rst']
2222
KEYWORDS = [
2323
'ods'
@@ -39,7 +39,7 @@
3939
]
4040

4141
INSTALL_REQUIRES = [
42-
'pyexcel-io>=0.5.0',
42+
'pyexcel-io>=0.5.3',
4343
'lxml',
4444
'pyexcel-ezodf>=0.3.3',
4545
]
@@ -50,11 +50,15 @@
5050
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
5151
EXTRAS_REQUIRE = {
5252
}
53+
# You do not need to read beyond this line
5354
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
5455
sys.executable)
55-
GS_COMMAND = ('gs pyexcel-ods3 v0.5.1 ' +
56-
"Find 0.5.1 in changelog for more details")
57-
here = os.path.abspath(os.path.dirname(__file__))
56+
GS_COMMAND = ('gs pyexcel-ods3 v0.5.2 ' +
57+
"Find 0.5.2 in changelog for more details")
58+
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
59+
'Please install gease to enable it.')
60+
UPLOAD_FAILED_MSG = ('Upload failed. please run "%s" yourself.')
61+
HERE = os.path.abspath(os.path.dirname(__file__))
5862

5963

6064
class PublishCommand(Command):
@@ -77,17 +81,36 @@ def finalize_options(self):
7781
def run(self):
7882
try:
7983
self.status('Removing previous builds...')
80-
rmtree(os.path.join(here, 'dist'))
84+
rmtree(os.path.join(HERE, 'dist'))
8185
except OSError:
8286
pass
8387

8488
self.status('Building Source and Wheel (universal) distribution...')
85-
if os.system(GS_COMMAND) == 0:
86-
os.system(PUBLISH_COMMAND)
89+
run_status = True
90+
if has_gease():
91+
run_status = os.system(GS_COMMAND) == 0
92+
else:
93+
self.status(NO_GS_MESSAGE)
94+
if run_status:
95+
if os.system(PUBLISH_COMMAND) != 0:
96+
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
8797

8898
sys.exit()
8999

90100

101+
def has_gease():
102+
"""
103+
test if github release command is installed
104+
105+
visit http://github.com/moremoban/gease for more info
106+
"""
107+
try:
108+
import gease # noqa
109+
return True
110+
except ImportError:
111+
return False
112+
113+
91114
def read_files(*files):
92115
"""Read files into setup"""
93116
text = ""
@@ -148,7 +171,6 @@ def filter_out_test_code(file_handle):
148171
include_package_data=True,
149172
zip_safe=False,
150173
classifiers=CLASSIFIERS,
151-
setup_requires=['gease'],
152174
cmdclass={
153175
'publish': PublishCommand,
154176
}

0 commit comments

Comments
 (0)