From e9aeea1d326d8a55fa62306862a450231a874597 Mon Sep 17 00:00:00 2001 From: Yifei Feng Date: Tue, 29 May 2018 16:22:46 -0700 Subject: [PATCH] Update setup.py with project description and development status. PiperOrigin-RevId: 198475440 --- tensorflow/tools/pip_package/setup.py | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py index 319878e..70e6662 100644 --- a/tensorflow/tools/pip_package/setup.py +++ b/tensorflow/tools/pip_package/setup.py @@ -12,6 +12,18 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== +"""TensorFlow is an open source machine learning framework for everyone. + +TensorFlow is an open source software library for high performance numerical +computation. Its flexible architecture allows easy deployment of computation +across a variety of platforms (CPUs, GPUs, TPUs), and from desktops to clusters +of servers to mobile and edge devices. + +Originally developed by researchers and engineers from the Google Brain team +within Google's AI organization, it comes with strong support for machine +learning and deep learning and the flexible numerical computation core is used +across many other scientific domains. +""" from __future__ import absolute_import from __future__ import division @@ -28,26 +40,13 @@ from setuptools import setup from setuptools.command.install import install as InstallCommandBase from setuptools.dist import Distribution +DOCLINES = __doc__.split('\n') + # This version string is semver compatible, but incompatible with pip. # For pip, we will remove all '-' characters from this string, and use the # result for pip. _VERSION = '1.8.0' -_SHORT_DESCRIPTION = ('TensorFlow is an open source machine learning framework ' - 'for everyone.') - -_LONG_DESCRIPTION = ('TensorFlow is an open source software library for high ' - 'performance numerical computation. Its flexible ' - 'architecture allows easy deployment of computation across' - ' a variety of platforms (CPUs, GPUs, TPUs), and from ' - 'desktops to clusters of servers to mobile and edge ' - 'devices. Originally developed by researchers and ' - 'engineers from the Google Brain team within Google\'s AI ' - 'organization, it comes with strong support for machine ' - 'learning and deep learning and the flexible numerical ' - 'computation core is used across many other scientific ' - 'domains.') - REQUIRED_PACKAGES = [ 'absl-py >= 0.1.6', 'astor >= 0.6.0', @@ -229,9 +228,10 @@ headers = (list(find_files('*.h', 'tensorflow/core')) + setup( name=project_name, version=_VERSION.replace('-', ''), - description=_SHORT_DESCRIPTION, - long_description=_LONG_DESCRIPTION, + description=DOCLINES[0], + long_description='\n'.join(DOCLINES[2:]), url='https://www.tensorflow.org/', + download_url='https://github.com/tensorflow/tensorflow/tags', author='Google Inc.', author_email='opensource@google.com', # Contained modules and scripts. @@ -257,7 +257,7 @@ setup( }, # PyPI package information. classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', -- 2.7.4