From bace9b58124b735d0ad47d94b06295c5d112306d Mon Sep 17 00:00:00 2001 From: guyang3532 Date: Mon, 8 Nov 2021 10:04:23 -0800 Subject: [PATCH] Get version from setup.py for conda package (#459) Summary: Get version from setup.py for conda package. Then the pip package and conda package will have the same version. Pull Request resolved: https://github.com/pytorch/kineto/pull/459 Reviewed By: malfet Differential Revision: D32171575 Pulled By: gdankel fbshipit-source-id: 63b027b829b6fcfbf7130d63c4a27d66d760dc86 --- tb_plugin/packaging/torch_tb_profiler/meta.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tb_plugin/packaging/torch_tb_profiler/meta.yaml b/tb_plugin/packaging/torch_tb_profiler/meta.yaml index d284d4ac1..ab105fd04 100644 --- a/tb_plugin/packaging/torch_tb_profiler/meta.yaml +++ b/tb_plugin/packaging/torch_tb_profiler/meta.yaml @@ -1,6 +1,8 @@ +{% set data = load_setup_py_data(setup_file='../../setup.py', from_recipe_dir=True) %} + package: name: torch_tb_profiler - version: "{{ environ.get('BUILD_VERSION', '0.2.0') }}" + version: "{{ data.get('version') }}" source: path: "{{ environ.get('SOURCE_ROOT_DIR', '../..') }}"