|
| 1 | +# Copyright 2018 The TensorFlow Authors. All Rights Reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +# ============================================================================== |
| 15 | +"""Setup for pip package.""" |
| 16 | +from __future__ import absolute_import |
| 17 | +from __future__ import division |
| 18 | +from __future__ import print_function |
| 19 | + |
| 20 | +from setuptools import find_packages |
| 21 | +from setuptools import setup |
| 22 | +from setuptools.dist import Distribution |
| 23 | + |
| 24 | +__version__ = '0.0.1' |
| 25 | +REQUIRED_PACKAGES = [ |
| 26 | + 'tensorflow >= 1.12.0', |
| 27 | +] |
| 28 | +project_name = 'tensorflow-io' |
| 29 | + |
| 30 | +class BinaryDistribution(Distribution): |
| 31 | + """This class is needed in order to create OS specific wheels.""" |
| 32 | + |
| 33 | + def has_ext_modules(self): |
| 34 | + return True |
| 35 | + |
| 36 | + |
| 37 | +setup( |
| 38 | + name=project_name, |
| 39 | + version=__version__, |
| 40 | + description=('TensorFlow IO'), |
| 41 | + author='Google Inc.', |
| 42 | + |
| 43 | + # Contained modules and scripts. |
| 44 | + packages=find_packages(), |
| 45 | + install_requires=REQUIRED_PACKAGES, |
| 46 | + # Add in any packaged data. |
| 47 | + include_package_data=True, |
| 48 | + zip_safe=False, |
| 49 | + distclass=BinaryDistribution, |
| 50 | + # PyPI package information. |
| 51 | + classifiers=[ |
| 52 | + 'Development Status :: 4 - Beta', |
| 53 | + 'Intended Audience :: Developers', |
| 54 | + 'Intended Audience :: Education', |
| 55 | + 'Intended Audience :: Science/Research', |
| 56 | + 'License :: OSI Approved :: Apache Software License', |
| 57 | + 'Programming Language :: Python :: 2.7', |
| 58 | + 'Programming Language :: Python :: 3.4', |
| 59 | + 'Programming Language :: Python :: 3.5', |
| 60 | + 'Programming Language :: Python :: 3.6', |
| 61 | + 'Topic :: Scientific/Engineering :: Mathematics', |
| 62 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 63 | + 'Topic :: Software Development :: Libraries', |
| 64 | + ], |
| 65 | + license='Apache 2.0', |
| 66 | + keywords='tensorflow io machine learning', |
| 67 | +) |
0 commit comments