diff --git a/FlatBuffers-release-process.md b/FlatBuffers-release-process.md index 1b7ee15..cf6acd6 100644 --- a/FlatBuffers-release-process.md +++ b/FlatBuffers-release-process.md @@ -23,6 +23,28 @@ Steps to release a new version of FlatBuffers to github: 1. The result should be a tagged commit at the following: https://github.com/google/flatbuffers/tags +## Python (PyPi) + +1. `cd python` +1. Set `VERSION` environment to version. + + bash: `export VERSION="X.X.X"` + + fish: `set -g -x VERSION X.X.X` + +1. `python setup.py sdist` +1. `python setup.py bdist_wheel` +1. Ensure twine in installed: + + `python3 -m pip install --upgrade twine` + +1. `twine upload dist/flatbuffers-X.X.X.tar.gz` + + This will ask for your credentials for PyPi. + +1. `twine upload dist/flatbuffers-X.X.X-py2.py3-none-any.whl` +1. Output should be on: https://pypi.org/project/flatbuffers/ + ## To Categorize / Old Notes * Change the version number in base.h, package.json, pom.xml (and various such files in grpc/), CMakeLists.txt (FlatBuffers_Library_SONAME_FULL), CMake/Version.cmake, dart/pubspec.yaml, rust/cargo.toml (not same as FlatBuffers version), Constants.java, FlatBufferConstants.cs, idl_gen_java/csharp/kotlin/swift.cpp