From 6a1fbdbbc084e023a203132dfe17b909407cb88d Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Tue, 23 Aug 2022 15:53:24 -0700 Subject: [PATCH] Updated FlatBuffers release process (markdown) --- FlatBuffers-release-process.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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