Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.87 KB

File metadata and controls

32 lines (29 loc) · 1.87 KB

Releasing

  1. Check out a clean copy. Note that cargo publish packages up untracked files. Use --allow-dirty at your peril.
  2. Fetch from the main repo
  3. Ensure that the TensorFlow version is a real release, not a release candidate
  4. Bump version number of tensorflow-sys if necessary
    1. Run git log v${PREVIOUS_VERSION}..HEAD tensorflow-sys and see if there were any changes. If not, skip.
    2. Bump the version in tensorflow-sys/Cargo.toml
    3. Bump the version for tensorflow-sys in the root Cargo.toml
  5. Bump the version number in Cargo.toml
  6. Bump the version number in README.md
  7. Run ./test-all
  8. Run python examples/addition/addition.py using the version of TensorFlow being linked against. (Use pip in a virtualenv, see https://www.tensorflow.org/install/pip#2-create-a-virtual-environment-recommended)
    1. Run virtualenv --system-site-packages -p python3 ~/tensorflow-${TENSORFLOW_VERSION}
    2. Run source ~/tensorflow-${TENSORFLOW_VERSION}/bin/activate to activate the virtualenv
    3. Run pip install --upgrade pip
    4. Run pip install --upgrade tensorflow==${TENSORFLOW_VERSION}
    5. Run python examples/addition/addition.py
    6. Run deactivate to exit the virtualenv
  9. Run ./run-valgrind
  10. Commit and push the changes. (Push before publishing to ensure that the changes being published are up to date.)
  11. If the version of tensorflow-sys was bumped, run cargo publish for tensorflow-sys. (Publish before tagging in case there are problems publishing and we need to add commits to fix them.)
  12. Run cargo publish. (Publish before tagging in case there are problems publishing and we need to add commits to fix them.)
  13. Add a v${VERSION} tag and push it
  14. Run ./update-docs
  15. Announce the release to the mailing list

Post-release

  1. Update version numbers of dependencies
  2. Remove any deprecated items scheduled to be removed