Versions Compared

Key

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

...

  • 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}+incubating/ -o apache-airflow-${VERSION}+incubating-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 setup.py py compile_assets sdist
  • Rename the sdist

    mv dist/apache-airflow-${VERSION%rc?}.tar.gz apache-airflow-${VERSION}+incubating-bin.tar.gz

  • Generate SHA512/ASC
    </path to airflow source>/dev/sign.sh apache-airflow-${VERSION}+incubating-source.tar.gz && </path to airflow source>/dev/sign.sh apache-airflow-${VERSION}+incubating-bin.tar.gz

  • git push --tags

...

  • Edit the airflow/version.py to include the RC suffix.
  • python setup.py py compile_assets sdist
  • Follow the steps in Releasing Airflow
  • Throw away the change - we don't want to commit this: git checkout airflow/version.py

...

  • Create a ~/.pypirc file:

    Code Block
    languagebash
    $ cat ~/.pypirc 
    [distutils]
    index-servers =
      pypi
      pypitest
    
    [pypi]
    username=your-username
    password=*********
    
    [pypitest]
    repository=https://test.pypi.org/legacy/
    username=your-username
    password=*********

    (more details here.)

  • Set proper permissions for the pypirc file:

    Code Block
    languagebash
    $ chmod 600 ~/.pypirc


  • Confirm that airflow/version.py is set properly.
  • Install the package in PyPi's test environment:

    Code Block
    languagebash
    $ python setup.py compile_assets sdist upload -r pypitest


  • Verify that the test package looks good by downloading it and installing it into a virtual environment. The package download link is available at:
    https://test.pypi.org/project/apache-airflow/#files
  • Install the package in PyPi's production environment:

    Code Block
    languagebash
    $ python setup.py compile_assets sdist upload -r pypi


  • Again, confirm that the package is available here:
    https://pypi.python.org/pypi/apache-airflow

...