From 8bf2f950fdf4eab2760f0757f418262c93d64e05 Mon Sep 17 00:00:00 2001 From: Brian Patton Date: Tue, 30 Apr 2019 15:48:31 -0700 Subject: [PATCH] Add README.md to pypi. PiperOrigin-RevId: 246037982 --- BUILD | 1 + setup.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/BUILD b/BUILD index b122b6cf72..36ccee5cca 100644 --- a/BUILD +++ b/BUILD @@ -16,6 +16,7 @@ sh_binary( name = "pip_pkg", srcs = ["pip_pkg.sh"], data = [ + "README.md", "setup.py", "//tensorflow_probability", ], diff --git a/setup.py b/setup.py index 751de38f7e..008aa82abf 100644 --- a/setup.py +++ b/setup.py @@ -53,11 +53,16 @@ class BinaryDistribution(Distribution): def has_ext_modules(self): return False +with open('README.md', 'r') as fh: + long_description = fh.read() + setup( name=project_name, version=__version__, description='Probabilistic modeling and statistical ' 'inference in TensorFlow', + long_description=long_description, + long_description_content_type='text/markdown', author='Google LLC', author_email='no-reply@google.com', url='http://github.com/tensorflow/probability',