tensorflow / metadata

Utilities for passing TensorFlow-related metadata between tools
Apache License 2.0
106 stars 49 forks source link

Add tensorflow_metadata.__version__ #2

Closed brianmartin closed 5 years ago

brianmartin commented 5 years ago

Hi! For running Dataflow jobs it is sometimes required for us to ensure that Dataflow workers have certain required packages installed. For this reason, it would be useful to be able to determine the tensorflow_metadata version at runtime.

Ideally, this would follow the common python convention of a __version__ in the top-level module. For example, how tensorflow-data-validation does:

In [1]: import tensorflow_data_validation
In [2]: tensorflow_data_validation.__version__
Out[2]: '0.11.0'
brianmartin commented 5 years ago

Looks like this was done. Thanks folks! https://github.com/tensorflow/metadata/blob/0ae20fdd2ac6d3df30f866fd658119e208a267f6/setup.py#L19-L24