Skip to content

Commit c3b6c65

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

File tree

7 files changed

+52
-20
lines changed

7 files changed

+52
-20
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ python:
99
- 3.4
1010
- 3.3
1111
- 2.7
12-
- 2.6
1312
matrix:
1413
include:
1514
- python: 2.7

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
@@ -25,7 +25,8 @@ Fonts, colors and charts are not supported.
2525
Installation
2626
================================================================================
2727

28-
You can install it via pip:
28+
29+
You can install pyexcel-xls via pip:
2930

3031
.. code-block:: bash
3132
@@ -48,7 +49,7 @@ product, please `support me on patreon <https://www.patreon.com/bePatron?u=55376
4849
maintain the project and develop it further.
4950

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

5455
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
@@ -21,8 +21,8 @@
2121

2222
project = u'pyexcel-xls'
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'

pyexcel_xls.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-xls"
33
nick_name: xls
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: xls
88
dependencies:
9-
- pyexcel-io>=0.5.0
9+
- pyexcel-io>=0.5.3
1010
- xlrd
1111
- xlwt
1212
description: A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pyexcel-io>=0.5.0
1+
pyexcel-io>=0.5.3
22
xlrd
33
xlwt

setup.py

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

1010
NAME = 'pyexcel-xls'
1111
AUTHOR = 'C.W.'
12-
VERSION = '0.5.1'
12+
VERSION = '0.5.2'
1313
EMAIL = 'wangc_2011@hotmail.com'
1414
LICENSE = 'New BSD'
1515
DESCRIPTION = (
@@ -18,7 +18,7 @@
1818
''
1919
)
2020
URL = 'https://github.com/pyexcel/pyexcel-xls'
21-
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
21+
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
2222
FILES = ['README.rst', 'CHANGELOG.rst']
2323
KEYWORDS = [
2424
'xls',
@@ -43,7 +43,7 @@
4343
]
4444

4545
INSTALL_REQUIRES = [
46-
'pyexcel-io>=0.5.0',
46+
'pyexcel-io>=0.5.3',
4747
'xlrd',
4848
'xlwt',
4949
]
@@ -52,11 +52,15 @@
5252
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
5353
EXTRAS_REQUIRE = {
5454
}
55+
# You do not need to read beyond this line
5556
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
5657
sys.executable)
57-
GS_COMMAND = ('gs pyexcel-xls v0.5.1 ' +
58-
"Find 0.5.1 in changelog for more details")
59-
here = os.path.abspath(os.path.dirname(__file__))
58+
GS_COMMAND = ('gs pyexcel-xls v0.5.2 ' +
59+
"Find 0.5.2 in changelog for more details")
60+
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
61+
'Please install gease to enable it.')
62+
UPLOAD_FAILED_MSG = ('Upload failed. please run "%s" yourself.')
63+
HERE = os.path.abspath(os.path.dirname(__file__))
6064

6165

6266
class PublishCommand(Command):
@@ -79,17 +83,36 @@ def finalize_options(self):
7983
def run(self):
8084
try:
8185
self.status('Removing previous builds...')
82-
rmtree(os.path.join(here, 'dist'))
86+
rmtree(os.path.join(HERE, 'dist'))
8387
except OSError:
8488
pass
8589

8690
self.status('Building Source and Wheel (universal) distribution...')
87-
if os.system(GS_COMMAND) == 0:
88-
os.system(PUBLISH_COMMAND)
91+
run_status = True
92+
if has_gease():
93+
run_status = os.system(GS_COMMAND) == 0
94+
else:
95+
self.status(NO_GS_MESSAGE)
96+
if run_status:
97+
if os.system(PUBLISH_COMMAND) != 0:
98+
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
8999

90100
sys.exit()
91101

92102

103+
def has_gease():
104+
"""
105+
test if github release command is installed
106+
107+
visit http://github.com/moremoban/gease for more info
108+
"""
109+
try:
110+
import gease # noqa
111+
return True
112+
except ImportError:
113+
return False
114+
115+
93116
def read_files(*files):
94117
"""Read files into setup"""
95118
text = ""
@@ -150,7 +173,6 @@ def filter_out_test_code(file_handle):
150173
include_package_data=True,
151174
zip_safe=False,
152175
classifiers=CLASSIFIERS,
153-
setup_requires=['gease'],
154176
cmdclass={
155177
'publish': PublishCommand,
156178
}

0 commit comments

Comments
 (0)