Repository: incubator-airflow Updated Branches: refs/heads/master b6248575c -> a2b65a102
[AIRFLOW-1010] Add convenience script for signing releases Closes #2169 from bolkedebruin/AIRFLOW-1010 Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a2b65a10 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a2b65a10 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a2b65a10 Branch: refs/heads/master Commit: a2b65a1023164e2ffc1e28d83f6b061aa36ff564 Parents: b624857 Author: Bolke de Bruin <[email protected]> Authored: Sun Mar 19 09:46:30 2017 -0400 Committer: Jeremiah Lowin <[email protected]> Committed: Sun Mar 19 09:46:30 2017 -0400 ---------------------------------------------------------------------- dev/README.md | 7 +++++++ dev/sign.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a2b65a10/dev/README.md ---------------------------------------------------------------------- diff --git a/dev/README.md b/dev/README.md index 68ff62d..084020c 100755 --- a/dev/README.md +++ b/dev/README.md @@ -76,3 +76,10 @@ Users should set environment variables `JIRA_USERNAME` and `JIRA_PASSWORD` corre #### GitHub OAuth Token Unauthenticated users can only make 60 requests/hour to the Github API. If you get an error about exceeding the rate, you will need to set a `GITHUB_OAUTH_KEY` environment variable that contains a token value. Users can generate tokens from their GitHub profile. + +## Airflow release signing tool +The release signing tool can be used to create the SHA512/MD5 and ASC files that required for Apache releases. + +### Execution +To create a release tar ball execute `python setup.py sdist --formats=gztar` from Airflow's root. After that `cd dist` and +execute `../dev/sign.sh <the_created_tar_ball.tar.gz`. Signing files will be created in the same directory. http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a2b65a10/dev/sign.sh ---------------------------------------------------------------------- diff --git a/dev/sign.sh b/dev/sign.sh new file mode 100755 index 0000000..da0f7a9 --- /dev/null +++ b/dev/sign.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Use this to sign the tar balls generated from +# python setup.py sdist --formats=gztar +# ie. sign.sh <my_tar_ball> +# you will still be required to type in your signing key password +# or it needs to be available in your keychain + +NAME=${1} + +gpg --armor --output ${NAME}.asc --detach-sig ${NAME} +gpg --print-md SHA512 ${NAME} > ${NAME}.sha +gpg --print-md MD5 ${NAME} > ${NAME}.md5
