Skip to content

Commit 78e3524

Browse files
committed
🥚 🎡 release 0.1.4. related to pyexcel/pyexcel#105
1 parent 513850a commit 78e3524

File tree

6 files changed

+46
-18
lines changed

6 files changed

+46
-18
lines changed

.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
before_install:
1413
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
1514
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then

CHANGELOG.rst

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

4+
0.1.4 - 23.10.2017
5+
--------------------------------------------------------------------------------
6+
7+
#. `#105 <https://github.com/pyexcel/pyexcel/issues/105>`_, remove gease
8+
from setup_requires, introduced by 0.1.3.
9+
#. removed testing against python 2.6
10+
411
0.1.3 - 20.10.2017
512
--------------------------------------------------------------------------------
613

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

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

pyexcel_webio.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-webio"
33
nick_name: webio
4-
version: "0.1.3"
5-
current_version: "0.1.3"
6-
release: "0.1.3"
4+
version: "0.1.4"
5+
current_version: "0.1.4"
6+
release: "0.1.4"
77
dependencies:
8-
- pyexcel>=0.5.5
8+
- pyexcel>=0.5.6
99
description:
1010
A generic request and response interface for pyexcel web extensions.

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyexcel>=0.5.5
1+
pyexcel>=0.5.6

setup.py

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

88
NAME = 'pyexcel-webio'
99
AUTHOR = 'C.W.'
10-
VERSION = '0.1.3'
10+
VERSION = '0.1.4'
1111
1212
LICENSE = 'New BSD'
1313
DESCRIPTION = (
1414
'A generic request and response interface for pyexcel web extensions.' +
1515
''
1616
)
1717
URL = 'https://github.com/pyexcel/pyexcel-webio'
18-
DOWNLOAD_URL = '%s/archive/0.1.3.tar.gz' % URL
18+
DOWNLOAD_URL = '%s/archive/0.1.4.tar.gz' % URL
1919
FILES = ['README.rst', 'CHANGELOG.rst']
2020
KEYWORDS = [
2121
'http'
@@ -49,18 +49,22 @@
4949
]
5050

5151
INSTALL_REQUIRES = [
52-
'pyexcel>=0.5.5',
52+
'pyexcel>=0.5.6',
5353
]
5454

5555

5656
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
5757
EXTRAS_REQUIRE = {
5858
}
59+
# You do not need to read beyond this line
5960
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
6061
sys.executable)
61-
GS_COMMAND = ('gs pyexcel-webio v0.1.3 ' +
62-
"Find 0.1.3 in changelog for more details")
63-
here = os.path.abspath(os.path.dirname(__file__))
62+
GS_COMMAND = ('gs pyexcel-webio v0.1.4 ' +
63+
"Find 0.1.4 in changelog for more details")
64+
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
65+
'Please install gease to enable it.')
66+
UPLOAD_FAILED_MSG = ('Upload failed. please run "%s" yourself.')
67+
HERE = os.path.abspath(os.path.dirname(__file__))
6468

6569

6670
class PublishCommand(Command):
@@ -83,17 +87,36 @@ def finalize_options(self):
8387
def run(self):
8488
try:
8589
self.status('Removing previous builds...')
86-
rmtree(os.path.join(here, 'dist'))
90+
rmtree(os.path.join(HERE, 'dist'))
8791
except OSError:
8892
pass
8993

9094
self.status('Building Source and Wheel (universal) distribution...')
91-
if os.system(GS_COMMAND) == 0:
92-
os.system(PUBLISH_COMMAND)
95+
run_status = True
96+
if has_gease():
97+
run_status = os.system(GS_COMMAND) == 0
98+
else:
99+
self.status(NO_GS_MESSAGE)
100+
if run_status:
101+
if os.system(PUBLISH_COMMAND) != 0:
102+
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)
93103

94104
sys.exit()
95105

96106

107+
def has_gease():
108+
"""
109+
test if github release command is installed
110+
111+
visit http://github.com/moremoban/gease for more info
112+
"""
113+
try:
114+
import gease # noqa
115+
return True
116+
except ImportError:
117+
return False
118+
119+
97120
def read_files(*files):
98121
"""Read files into setup"""
99122
text = ""
@@ -154,7 +177,6 @@ def filter_out_test_code(file_handle):
154177
include_package_data=True,
155178
zip_safe=False,
156179
classifiers=CLASSIFIERS,
157-
setup_requires=['gease'],
158180
cmdclass={
159181
'publish': PublishCommand,
160182
}

0 commit comments

Comments
 (0)