From d5c751e4ad977387ac3f7e05a374590bdebfee19 Mon Sep 17 00:00:00 2001 From: gunjanbaid Date: Tue, 8 Sep 2020 10:21:31 -0700 Subject: [PATCH] Update version to 0.5.3 and add new features to README. PiperOrigin-RevId: 330535698 --- README.md | 9 ++++++- docs/source/nucleus/pip_package/setup.md | 31 ++++++++++++++++++++---- nucleus/pip_package/build_pip_package.sh | 2 +- nucleus/pip_package/egg_files/PKG-INFO | 2 +- 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5f192a..cee39a2 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,16 @@ bazel test -c opt $BAZEL_FLAGS nucleus/... ## Version -This is Nucleus 0.5.2. Nucleus follows [semantic +This is Nucleus 0.5.3. Nucleus follows [semantic versioning](https://semver.org/). +New in 0.5.3: + +* Fixes memory leaks in message_module.cc. +* Updates setup.py to install .egg-info directory for pip 20.2+ compatibility. +* Pins TensorFlow to 2.0.0 for protobuf version compatibility. +* Pins setuptools to 49.6.0 to avoid breaking changes of setuptools 50. + New in 0.5.2: * Upgrades htslib dependency from 1.9 to 1.10.2. diff --git a/docs/source/nucleus/pip_package/setup.md b/docs/source/nucleus/pip_package/setup.md index 59259d4..45889e2 100644 --- a/docs/source/nucleus/pip_package/setup.md +++ b/docs/source/nucleus/pip_package/setup.md @@ -22,13 +22,34 @@ Instead, we directly implement the four commands run by pip install * setup.py clean ## Functions overview -Name | Description ------|------------ -[`find_destination`](#find_destination)`(is_user)` | Returns the directory we are supposed to install into. -[`main`](#main)`()` | -[`touch`](#touch)`(fname)` | + +| Name | Description | +| -------------------------------------------------- | --------------------- | +| [`copy_egg_info`](#copy_egg_info)`(dest_dir)` | Copies the .egg-info | +: : directory to the : +: : specified location. : +| [`find_destination`](#find_destination)`(is_user)` | Returns the directory | +: : we are supposed to : +: : install into. : +| [`main`](#main)`()` | | +| [`touch`](#touch)`(fname)` | | ## Functions + + + +### `copy_egg_info(dest_dir)` + +``` +Copies the .egg-info directory to the specified location. + +Args: + dest_dir: str. The destination directory. + +Returns: + 0 on success, 1 on failure. +``` + ### `find_destination(is_user)` ``` diff --git a/nucleus/pip_package/build_pip_package.sh b/nucleus/pip_package/build_pip_package.sh index 60a303e..bc0074a 100755 --- a/nucleus/pip_package/build_pip_package.sh +++ b/nucleus/pip_package/build_pip_package.sh @@ -28,7 +28,7 @@ set -x # When changing NUCLEUS_VERSION, be sure to also change it in # egg_files/PKG-INFO. -NUCLEUS_VERSION="0.5.2" +NUCLEUS_VERSION="0.5.3" PACKAGE_NAME="google_nucleus-${NUCLEUS_VERSION}" PYTHON_VERSION="3.5" diff --git a/nucleus/pip_package/egg_files/PKG-INFO b/nucleus/pip_package/egg_files/PKG-INFO index cd5b875..36d79b0 100644 --- a/nucleus/pip_package/egg_files/PKG-INFO +++ b/nucleus/pip_package/egg_files/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: google-nucleus -Version: 0.5.2 +Version: 0.5.3 Summary: A library for reading and writing genomics data. Home-page: https://github.com/google/nucleus Author: The Genomics team in Google Brain