• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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"""TensorFlow Lite is for mobile and embedded devices.
16
17TensorFlow Lite is the official solution for running machine learning models on
18mobile and embedded devices. It enables on-device machine learning inference
19with low latency and a small binary size on Android, iOS, and other operating
20systems.
21"""
22
23import os
24
25from setuptools import find_packages
26from setuptools import setup
27PACKAGE_NAME = os.environ['PROJECT_NAME']
28PACKAGE_VERSION = os.environ['PACKAGE_VERSION']
29DOCLINES = __doc__.split('\n')
30
31setup(
32    name=PACKAGE_NAME.replace('_', '-'),
33    version=PACKAGE_VERSION,
34    description=DOCLINES[0],
35    long_description='\n'.join(DOCLINES[2:]),
36    url='https://www.tensorflow.org/lite/',
37    author='Google, LLC',
38    author_email='packages@tensorflow.org',
39    license='Apache 2.0',
40    include_package_data=True,
41    has_ext_modules=lambda: True,
42    keywords='tflite tensorflow tensor machine learning',
43    classifiers=[
44        'Development Status :: 5 - Production/Stable',
45        'Intended Audience :: Developers',
46        'Intended Audience :: Education',
47        'Intended Audience :: Science/Research',
48        'License :: OSI Approved :: Apache Software License',
49        'Programming Language :: Python :: 3',
50        'Programming Language :: Python :: 3.7',
51        'Programming Language :: Python :: 3.8',
52        'Programming Language :: Python :: 3.9',
53        'Topic :: Scientific/Engineering',
54        'Topic :: Scientific/Engineering :: Mathematics',
55        'Topic :: Scientific/Engineering :: Artificial Intelligence',
56        'Topic :: Software Development',
57        'Topic :: Software Development :: Libraries',
58        'Topic :: Software Development :: Libraries :: Python Modules',
59    ],
60    packages=find_packages(exclude=[]),
61    package_dir={'': '.'},
62    package_data={'': ['*.so', '*.pyd']},
63    install_requires=[
64        'numpy >= 1.19.2',  # Better to keep sync with both TF ci_build
65                            # and OpenCV-Python requirement.
66    ])
67