This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Skip to end of metadata
Go to start of metadata

Building an RC

The Release Candidate artifacts we vote upon should be the exact ones we vote against, without any modification than renaming – i.e. the contents of the files must be the same between voted release canidate and final release. Because of this the version in the built artifacts that will become the official Apache releases must not include the rcN suffix.

  • Set environment variables 

    # Set Version
    export VERSION=1.10.2rc3
    # Set AIRFLOW_REPO_ROOT to the path of your git repo
    export AIRFLOW_REPO_ROOT=$(pwd)
    # Example after cloning
    git clone airflow
    cd airflow
    export AIRFLOW_REPO_ROOT=$(pwd)
  • set your version to 1.10.2 in airflow/ (without the RC tag)
  • Commit the version change.
  • Tag your release

    git tag ${VERSION}
  • Clean the checkout: the sdist step below will

    git clean -fxd
  • Tarball the repo

    git archive --format=tar.gz ${VERSION} --prefix=apache-airflow-${VERSION}/ -o apache-airflow-${VERSION}-source.tar.gz
  • Generate sdist
    NOTE: Make sure your checkout is clean at this stage - any untracked or changed files will otherwise be included in the file produced.

    python compile_assets sdist bdist_wheel
  • Rename the sdist

    mv dist/apache-airflow-${VERSION%rc?}.tar.gz apache-airflow-${VERSION}-bin.tar.gz
    mv dist/apache_airflow-${VERSION%rc?}-py2.py3-none-any.whl apache_airflow-${VERSION}-py2.py3-none-any.whl
  • Generate SHA512/ASC (If you have not generated a key yet, generate it by following instructions on

    ${AIRFLOW_REPO_ROOT}/dev/ apache-airflow-${VERSION}-source.tar.gz
    ${AIRFLOW_REPO_ROOT}/dev/ apache-airflow-${VERSION}-bin.tar.gz
    ${AIRFLOW_REPO_ROOT}/dev/ apache_airflow-${VERSION}-py2.py3-none-any.whl

  • Push Tags

    git push --tags
  • Push the artifacts to ASF dev dist repo

    # First clone the repo
    svn checkout airflow-dev
    # Create new folder for the release
    cd airflow-dev
    svn mkdir ${VERSION}
    # Move the artifacts to svn folder & commit
    mv ${AIRFLOW_REPO_ROOT}/apache{-,_}airflow-${VERSION}* airflow-dev/${VERSION}/
    cd ${VERSION}
    svn add *
    svn commit -m "Add artifacts for Airflow ${VERSION}" 

PyPI Snapshots (Optional)

At this point we have the artefact that we vote on, but as a convenience to developers we also want to publish "snapshots" of the RC builds to pypi for installing via pip. To do this we need to

  • Edit the airflow/ to include the RC suffix.
  • python compile_assets sdist bdist_wheel
  • Follow the steps in Publishing to PyPi
  • Throw away the change - we don't want to commit this: git checkout airflow/

It is important to stress that this snapshot is not intended for users.

Make sure your public key is on and in KEYS

You will need to sign the release artifacts with your pgp key. After you have created a key, make sure you

# Create PGP Key
gpg --gen-key

# Checkout ASF dist repo
svn checkout
cd airflow

# Add your GPG pub key to KEYS file. Replace "Kaxil Naik" with your name
(gpg --list-sigs "Kaxil Naik" && gpg --armor --export "Kaxil Naik" ) >> KEYS

# Commit the changes
svn commit -m "Add PGP keys of Airflow developers"

See this for more detail on creating keys and what is required for signing releases.

Voting on an RC

  • Once the RC is built (both source and binary), put them in the dev SVN repository:

  • Use the dev/airflow-jira script to generate a list of Airflow JIRAs that were closed in the release.

  • Send out a vote to the mailing list:

    [VOTE] Airflow 1.10.2rc3
    Hey all,
    I have cut Airflow 1.10.2 RC3. This email is calling a vote on the release,
    which will last for 72 hours. Consider this my (binding) +1.
    Airflow 1.10.2 RC3 is available at:
    *apache-airflow-1.10.2rc3-source.tar.gz* is a source release that comes
    with INSTALL instructions.
    *apache-airflow-1.10.2rc3-bin.tar.gz* is the binary Python "sdist" release.
    Public keys are available at:
    Only votes from PMC members are binding, but members of the community are
    encouraged to test the release and vote with "(non-binding)".
    Please note that the version number excludes the `rcX` string, so it's now
    simply 1.10.2. This will allow us to rename the artifact without modifying
    the artifact checksums when we actually release.
    Changes since 1.10.2rc2:
    [AIRFLOW-3732] Fix issue when trying to edit connection in RBAC UI
    [AIRFLOW-2866] Fix missing CSRF token head when using RBAC UI (#3804)
    [AIRFLOW-3302] Small CSS fixes (#4140)
    [Airflow-2766] Respect shared datetime across tabs
    *New features*:
    [AIRFLOW-2874] Enables FAB's theme support (#3719)
    [AIRFLOW-3336] Add new TriggerRule for 0 upstream failures (#4182)
    *Doc-only Change*:
    [AIRFLOW-XXX] Fix BashOperator Docstring (#4052)
    [AIRFLOW-3018] Fix Minor issues in Documentation
    <your name>
  • Once the vote has been passed, you will need to send a result vote to

    [RESULT][VOTE] Airflow 1.10.2rc3
    Apache Airflow 1.10.2 (based on RC3) has been accepted.
    4 “+1” binding votes received:
    - Kaxil Naik  (binding)
    - Bolke de Bruin (binding)
    - Ash Berlin-Taylor (binding)
    - Tao Feng (binding)
    4 "+1" non-binding votes received:
    - Deng Xiaodong (non-binding)
    - Stefan Seelmann (non-binding)
    - Joshua Patchus (non-binding)
    - Felix Uellendall (non-binding)
    Vote thread:
    I'll continue with the release process and the release announcement will follow shortly.
    <your name>

Publishing release

  • After both votes pass (see above), you need to migrate the RC artifacts that passed to this repository:
    (The migration should including renaming the files so that they no longer have the RC number in their filenames.)

    The best way of doing this is to svn cp  between the two repos (this avoids having to upload the binaries again, and gives a clearer history in the svn commit logs):

    # First clone the repo
    export RC=1.10.4rc5
    export VERSION=${RC/rc?/}
    svn checkout airflow-release
    # Create new folder for the release
    cd airflow-release
    svn mkdir ${VERSION}
    cd ${VERSION}
    # Move the artifacts to svn folder & commit
    for f in ../../airflow-dev/$RC/*; do svn cp $f ${$(basename $f)/rc?/}; done
    svn commit -m "Release Airflow ${VERSION} from ${RC}" 
    # Remove old release
    cd ..
    export PREVIOUS_VERSION=1.10.1
    svn rm ${PREVIOUS_VERSION}
    svn commit -m "Remove old release: ${PREVIOUS_VERSION}"

Publishing to PyPi

  • Create a ~/.pypirc file:

    $ cat ~/.pypirc 
    index-servers =

    (more details here.)

  • Set proper permissions for the pypirc file:

    $ chmod 600 ~/.pypirc
  • Confirm that airflow/ is set properly.
  • Install twine if you do not have it already. 

    pip install twine
  • Build the package:

    python compile_assets sdist bdist_wheel
  • Verify the artifacts that would be uploaded:

    twine check dist/*
  • Upload the package to PyPi's test environment:

    twine upload -r pypitest dist/*
  • Verify that the test package looks good by downloading it and installing it into a virtual environment. The package download link is available at:
  • Upload the package to PyPi's production environment:

    twine upload -r pypi dist/*
  • Again, confirm that the package is available here:


  • Get a diff between the last version and the current version:

    $ git log 1.8.0..1.9.0 --pretty=oneline
  • Update with the details, and commit it.

Notifying developers of release

  • Notify that the artifacts have been published:

    Airflow 1.10.2 is released
    Dear Airflow community,
    I'm happy to announce that Airflow 1.10.2 was just released.
    The source release, as well as the binary "sdist" release, are available
    We also made this version available on PyPi for convenience (`pip install apache-airflow`):
    The documentation is available on:
    Find the CHANGELOG here for more details:
    <your name>
  • Update the Announce page on the wiki

Publishing documentation

Bulk migrate JIRAs

Old stuff that doesn't apply anymore

 View legacy instructions

Committers should use the following commands and steps to create an Apache Airflow release:

  1. Run dev/airflow-jira on the test branch
    dev/airflow-jira compare 1.8.1

  2. Commit RCs here
    svn co

    Make sure CHANGELOG and have been updated.

  3. Remove previous versions from (`svn rm` -> `svn commit`)

  4. Run a travis build, confirm it passes (duh.)
  5. Build airflow
    python sdist

  6. Generate MD5
    gpg --print-md MD5 apache-airflow-1.8.1rc0+apache.incubating.tar.gz > apache-airflow-1.8.1rc0+apache.incubating.tar.gz.md5

  7. Generate the SHA512
    gpg --print-md SHA512 apache-airflow-1.8.1rc0+apache.incubating.tar.gz > apache-airflow-1.8.1rc0+apache.incubating.tar.gz.sha

  8. Upload your GPG public key to

  9. Add your GPG pub key to , follow the instructions at the top of the file

  10. Sign Airflow tar.gz
    gpg --armor --output apache-airflow-1.8.1rc0+apache.incubating.tar.gz.asc --detach-sig apache-airflow-1.8.1rc0+apache.incubating.tar.gz

  11. Do votes in and

  12. Commit final release here
    svn co

  13. Merge the test branch into the stable branch
    git pull apache v1-8-test
    git pull apache v1-8-stable
    git co v1-8-stable
    git merge v1-8-test
    git tag 1.8.1
    git push apache v1-8-stable
    git push apache 1.8.1

  14. Follow these instructions to publish to PyPi
    Note: You must remove the +incubating from the airflow/ file.

Source releases:
  • ...
  • Generate MD5s
    gpg --print-md MD5 apache-airflow-1.8.1rc0+apache.incubating.tar.gz > apache-airflow-1.8.1rc0+apache.incubating.tar.gz.md5

  • Generate the SHA512
    gpg --print-md SHA512 apache-airflow-1.8.1rc0+apache.incubating.tar.gz > apache-airflow-1.8.1rc0+apache.incubating.tar.gz.sha

  • Upload your GPG public key to

  • Add your GPG pub key to , follow the instructions at the top of the file

  • Sign Airflow tar.gz
    gpg --armor --output apache-airflow-1.8.1rc0+apache.incubating.tar.gz.asc --detach-sig apache-airflow-1.8.1rc0+apache.incubating.tar.gz

  • No labels