From adb32577c1fc266d19d1786e88cef037e8cd67d1 Mon Sep 17 00:00:00 2001 From: Justin Mayfield Date: Fri, 18 Sep 2015 19:34:02 -0600 Subject: [PATCH] Remove deploy script, fix readme for rst. --- README.md | 6 +++--- deploy.py | 37 ------------------------------------- setup.py | 2 +- 3 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 deploy.py diff --git a/README.md b/README.md index 7340bfe..7d73b6b 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ shellish **_Command-line/shell mashup framework_** -[![PyPI](https://img.shields.io/pypi/status/shellish.svg)](https://pypi.python.org/pypi/shellish) -[![PyPI](https://img.shields.io/pypi/l/shellish.svg)](https://pypi.python.org/pypi/shellish) +[![Maturity](https://img.shields.io/pypi/status/shellish.svg)](https://pypi.python.org/pypi/shellish) +[![License](https://img.shields.io/pypi/l/shellish.svg)](https://pypi.python.org/pypi/shellish) [![Change Log](https://img.shields.io/badge/change-log-blue.svg)](https://github.com/mayfield/shellish/blob/master/CHANGELOG.md) [![Build Status](https://semaphoreci.com/api/v1/projects/d925ee35-bede-4cc1-bbb8-17a738b84cfa/533600/shields_badge.svg)](https://semaphoreci.com/mayfield/shellish) -[![PyPI](https://img.shields.io/pypi/dm/shellish.svg)](https://pypi.python.org/pypi/shellish) +[![PyPI Downloads](https://img.shields.io/pypi/dm/shellish.svg)](https://pypi.python.org/pypi/shellish) -------- diff --git a/deploy.py b/deploy.py deleted file mode 100644 index 9ca007d..0000000 --- a/deploy.py +++ /dev/null @@ -1,37 +0,0 @@ -""" -Deploy this package to PyPi. - -If the package is already uploaded (by --version) then this will do nothing. -Reqires Python3. -""" - -import http.client -import json -import subprocess - - -def setup(*args): - o = subprocess.check_output('python3 ./setup.py %s' % ' '.join(args), - shell=True) - return o.decode().rstrip() - -name = setup('--name') -version = setup('--version') - -print("Package:", name) -print("Version:", version) - -print("Checking PyPi...") -piconn = http.client.HTTPSConnection('pypi.python.org') -piconn.request("GET", '/pypi/%s/json' % name) -piresp = piconn.getresponse() -if piresp.status != 200: - exit('PyPi Service Error: %s' % piresp.reason) -piinfo = json.loads(piresp.read().decode()) - -deployed_versions = list(piinfo['releases'].keys()) -if version in deployed_versions: - print("PyPi is already up-to-date for:", version) - exit() - -print(setup('sdist', 'upload')) diff --git a/setup.py b/setup.py index 46c8949..6e96761 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def long_desc(): setup( name='shellish', - version='0.5.2', + version='0.5.7', description='A framework for CLI/shell programs.', author='Justin Mayfield', author_email='tooker@gmail.com',