diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-03-01 15:58:49 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-03-01 15:59:15 +0000 |
| commit | 455f51c36ce6100b0da816e0056af60fa978c8a6 (patch) | |
| tree | 3509a5f5bff6f79d1f0b4f22ee0a3092e5837c79 /scripts | |
| parent | 6f7e570a0a939e3a359642ec0adf5c9f687b01be (diff) | |
| download | psycopg2-455f51c36ce6100b0da816e0056af60fa978c8a6.tar.gz | |
Added docs about making a release
Drop previous script which didn't include the CI-generated packages.
[skip ci]
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/upload-release.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/scripts/upload-release.sh b/scripts/upload-release.sh deleted file mode 100755 index 618e823..0000000 --- a/scripts/upload-release.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -# Script to create a psycopg release -# -# You must create a release tag before running the script, e.g. 2_5_4. -# The script will check out in a clear environment, build the sdist package, -# unpack and test it, then upload on PyPI and on the psycopg website. - -set -e - -REPO_URL=git@github.com:psycopg/psycopg2.git - -VER=$(grep ^PSYCOPG_VERSION setup.py | cut -d "'" -f 2) - -# avoid releasing a testing version -echo "$VER" | grep -qE '^[0-9]+\.[0-9]+(\.[0-9]+)?$' \ - || (echo "bad release: $VER" >&2 && exit 1) - -# Check out in a clean environment -rm -rf rel -mkdir rel -cd rel -git clone $REPO_URL psycopg -cd psycopg -TAG=${VER//./_} -git checkout -b $TAG $TAG -make sdist - -# Test the sdist just created -cd dist -tar xzvf psycopg2-$VER.tar.gz -cd psycopg2-$VER -make -make check -cd ../../ - -read -p "if you are not fine with the above stop me now..." - -# upload to pypi and to the website - -python setup.py sdist --formats=gztar upload -s - -DASHVER=${VER//./-} -DASHVER=${DASHVER:0:3} - -# Requires ssh configuration for 'psycoweb' -scp dist/psycopg2-${VER}.tar.gz psycoweb:tarballs/PSYCOPG-${DASHVER}/ -ssh psycoweb ln -sfv PSYCOPG-${DASHVER}/psycopg2-${VER}.tar.gz \ - tarballs/psycopg2-latest.tar.gz - -scp dist/psycopg2-${VER}.tar.gz.asc psycoweb:tarballs/PSYCOPG-${DASHVER}/ -ssh psycoweb ln -sfv PSYCOPG-${DASHVER}/psycopg2-${VER}.tar.gz.asc \ - tarballs/psycopg2-latest.tar.gz.asc - -echo "great, now write release notes and an email!" |
