Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Tag your release

    Code Block
    languagebash
    themeMidnight
    git tag ${VERSION}


  • Clean the checkout: the sdist step below will

    Code Block
    languagebash
    themeMidnight
    git clean -fxd


  • Tarball the repo

    Code Block
    languagebash
    themeMidnight
    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.

    Code Block
    languagebash
    themeMidnight
    python setup.py compile_assets sdist


  • Rename the sdist

    Code Block
    languagebash
    themeMidnight
    mv dist/apache-airflow-${VERSION%rc?}.tar.gz apache-airflow-${VERSION}-bin.tar.gz


  • Generate SHA512/ASC (If you have not generated a key yet, generate it by following instructions on http://www.apache.org/dev/openpgp.html#key-gen-generate-key)

    Code Block
    languagebash
    themeMidnight
    ${AIRFLOW_REPO_ROOT}/dev/sign.sh apache-airflow-${VERSION}-source.tar.gz && ${AIRFLOW_REPO_ROOT}/dev/sign.sh apache-airflow-${VERSION}-bin.tar.gz


  • Push Tags

    Code Block
    languagebash
    themeMidnight
    git push --tags


  • Push the artefacts to ASF dev dist repo

    Code Block
    languagebash
    themeMidnight
    # First clone the repo
    svn checkout https://dist.apache.org/repos/dist/dev/airflow airflow-dev
    
    # Create new folder for the release
    cd airflow-dev
    svn mkdir ${VERSION}
    
    # Move the artefacts to svn folder & commit
    mv ${AIRFLOW_REPO_ROOT}/apache-airflow-${VERSION}* airflow-dev/${VERSION}/
    svn add *
    cd ${VERSION}
    svn add *
    svn commit -m "Add artefacts for Airflow ${VERSION}" 


...