-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥚 🎡 release 0.1.4. related to pyexcel/pyexcel#105
- Loading branch information
Showing
6 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
overrides: "pyexcel.yaml" | ||
name: "pyexcel-webio" | ||
nick_name: webio | ||
version: "0.1.3" | ||
current_version: "0.1.3" | ||
release: "0.1.3" | ||
version: "0.1.4" | ||
current_version: "0.1.4" | ||
release: "0.1.4" | ||
dependencies: | ||
- pyexcel>=0.5.5 | ||
- pyexcel>=0.5.6 | ||
description: | ||
A generic request and response interface for pyexcel web extensions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pyexcel>=0.5.5 | ||
pyexcel>=0.5.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ | |
|
||
NAME = 'pyexcel-webio' | ||
AUTHOR = 'C.W.' | ||
VERSION = '0.1.3' | ||
VERSION = '0.1.4' | ||
EMAIL = '[email protected]' | ||
LICENSE = 'New BSD' | ||
DESCRIPTION = ( | ||
'A generic request and response interface for pyexcel web extensions.' + | ||
'' | ||
) | ||
URL = 'https://github.com/pyexcel/pyexcel-webio' | ||
DOWNLOAD_URL = '%s/archive/0.1.3.tar.gz' % URL | ||
DOWNLOAD_URL = '%s/archive/0.1.4.tar.gz' % URL | ||
FILES = ['README.rst', 'CHANGELOG.rst'] | ||
KEYWORDS = [ | ||
'http' | ||
|
@@ -49,18 +49,22 @@ | |
] | ||
|
||
INSTALL_REQUIRES = [ | ||
'pyexcel>=0.5.5', | ||
'pyexcel>=0.5.6', | ||
] | ||
|
||
|
||
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-webio v0.1.3 ' + | ||
"Find 0.1.3 in changelog for more details") | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
GS_COMMAND = ('gs pyexcel-webio v0.1.4 ' + | ||
"Find 0.1.4 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): | ||
|
@@ -83,17 +87,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 = "" | ||
|
@@ -154,7 +177,6 @@ def filter_out_test_code(file_handle): | |
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=CLASSIFIERS, | ||
setup_requires=['gease'], | ||
cmdclass={ | ||
'publish': PublishCommand, | ||
} | ||
|