From cfc4d589d743b22bdb597f4af9398649faafd317 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 20 Mar 2018 22:49:32 +0100 Subject: [PATCH] pypi publish script --- docs/pypi-publishing.sh | 40 -------- r0c/__version__.py | 2 - scripts/make-pypi-release.sh | 97 +++++++++++++++++++ .../{make-release.sh => make-tgz-release.sh} | 0 setup.py | 7 +- 5 files changed, 102 insertions(+), 44 deletions(-) delete mode 100644 docs/pypi-publishing.sh create mode 100755 scripts/make-pypi-release.sh rename scripts/{make-release.sh => make-tgz-release.sh} (100%) diff --git a/docs/pypi-publishing.sh b/docs/pypi-publishing.sh deleted file mode 100644 index 359ab43..0000000 --- a/docs/pypi-publishing.sh +++ /dev/null @@ -1,40 +0,0 @@ -cat > ~/.pypirc </dev/null || which sed) +find=$(which gfind 2>/dev/null || which find) +sort=$(which gsort 2>/dev/null || which sort) + +which md5sum 2>/dev/null >/dev/null && + md5sum=md5sum || + md5sum="md5 -r" + +mode="$1" + +[[ "x$mode" == x ]] && +{ + echo "need argument 1: (D)ry or (U)pload" + echo + exit 1 +} + +[[ -e r0c/__main__.py ]] || cd .. +[[ -e r0c/__main__.py ]] || +{ + echo "run me from within the r0c folder" + echo + exit 1 +} + + +# one-time stuff, do this manually through copy/paste +true || +{ + cat > ~/.pypirc <