Skip to content

Commit

Permalink
🥚 🎡 release 0.5.2. related to pyexcel/pyexcel#105
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Oct 23, 2017
1 parent d7ec09c commit c3b6c65
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 20 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ python:
- 3.4
- 3.3
- 2.7
- 2.6
matrix:
include:
- python: 2.7
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Change log
================================================================================

0.5.2 - 23.10.2017
--------------------------------------------------------------------------------

updated
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#. pyexcel `#105 <https://github.com/pyexcel/pyexcel/issues/105>`_, remove gease
from setup_requires, introduced by 0.5.1.
#. remove python2.6 test support
#. update its dependecy on pyexcel-io to 0.5.3

0.5.1 - 20.10.2017
--------------------------------------------------------------------------------

Expand Down
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Fonts, colors and charts are not supported.
Installation
================================================================================

You can install it via pip:

You can install pyexcel-xls via pip:

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

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

With your financial support, I will be able to invest
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

project = u'pyexcel-xls'
copyright = u'2015-2017 Onni Software Ltd.'
version = '0.5.1'
release = '0.5.1'
version = '0.5.2'
release = '0.5.2'
exclude_patterns = []
pygments_style = 'sphinx'
html_theme = 'default'
Expand Down
8 changes: 4 additions & 4 deletions pyexcel_xls.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
overrides: "pyexcel.yaml"
name: "pyexcel-xls"
nick_name: xls
version: 0.5.1
current_version: 0.5.1
release: 0.5.1
version: 0.5.2
current_version: 0.5.2
release: 0.5.2
file_type: xls
dependencies:
- pyexcel-io>=0.5.0
- pyexcel-io>=0.5.3
- xlrd
- xlwt
description: A wrapper library to read, manipulate and write data in xls format. It reads xlsx and xlsm format
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pyexcel-io>=0.5.0
pyexcel-io>=0.5.3
xlrd
xlwt
42 changes: 32 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

NAME = 'pyexcel-xls'
AUTHOR = 'C.W.'
VERSION = '0.5.1'
VERSION = '0.5.2'
EMAIL = 'wangc_2011@hotmail.com'
LICENSE = 'New BSD'
DESCRIPTION = (
Expand All @@ -18,7 +18,7 @@
''
)
URL = 'https://github.com/pyexcel/pyexcel-xls'
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
FILES = ['README.rst', 'CHANGELOG.rst']
KEYWORDS = [
'xls',
Expand All @@ -43,7 +43,7 @@
]

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


class PublishCommand(Command):
Expand All @@ -79,17 +83,36 @@ def finalize_options(self):
def run(self):
try:
self.status('Removing previous builds...')
rmtree(os.path.join(here, 'dist'))
rmtree(os.path.join(HERE, 'dist'))
except OSError:
pass

self.status('Building Source and Wheel (universal) distribution...')
if os.system(GS_COMMAND) == 0:
os.system(PUBLISH_COMMAND)
run_status = True
if has_gease():
run_status = os.system(GS_COMMAND) == 0
else:
self.status(NO_GS_MESSAGE)
if run_status:
if os.system(PUBLISH_COMMAND) != 0:
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND)

sys.exit()


def has_gease():
"""
test if github release command is installed
visit http://github.com/moremoban/gease for more info
"""
try:
import gease # noqa
return True
except ImportError:
return False


def read_files(*files):
"""Read files into setup"""
text = ""
Expand Down Expand Up @@ -150,7 +173,6 @@ def filter_out_test_code(file_handle):
include_package_data=True,
zip_safe=False,
classifiers=CLASSIFIERS,
setup_requires=['gease'],
cmdclass={
'publish': PublishCommand,
}
Expand Down

0 comments on commit c3b6c65

Please sign in to comment.