Skip to content

Commit 35265db

Browse files
committed
🥚 🎡 release 0.5.2. related to pyexcel/pyexcel#105
1 parent 6732e51 commit 35265db

File tree

7 files changed

+53
-20
lines changed

7 files changed

+53
-20
lines changed

Diff for: .travis.yml

-1
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

Diff for: CHANGELOG.rst

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

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

Diff for: README.rst

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

32-
You can install it via pip:
32+
33+
You can install pyexcel-xlsx via pip:
3334

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

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

5859
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-xlsx'
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_xlsx.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-xlsx"
33
nick_name: xlsx
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: xlsx
88
dependencies:
99
- openpyxl>=2.4.4
10-
- pyexcel-io>=0.5.0
10+
- pyexcel-io>=0.5.3
1111
description: A wrapper library to read, manipulate and write data in xlsx and xlsm format

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
openpyxl>=2.4.4
2-
pyexcel-io>=0.5.0
2+
pyexcel-io>=0.5.3

Diff for: setup.py

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

88
NAME = 'pyexcel-xlsx'
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-xlsx'
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', 'CHANGELOG.rst']
2121
KEYWORDS = [
2222
'xlsx'
@@ -40,18 +40,22 @@
4040

4141
INSTALL_REQUIRES = [
4242
'openpyxl>=2.4.4',
43-
'pyexcel-io>=0.5.0',
43+
'pyexcel-io>=0.5.3',
4444
]
4545

4646

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

5660

5761
class PublishCommand(Command):
@@ -74,17 +78,36 @@ def finalize_options(self):
7478
def run(self):
7579
try:
7680
self.status('Removing previous builds...')
77-
rmtree(os.path.join(here, 'dist'))
81+
rmtree(os.path.join(HERE, 'dist'))
7882
except OSError:
7983
pass
8084

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

8595
sys.exit()
8696

8797

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

0 commit comments

Comments
 (0)