setup.py 2.1 KB
Newer Older
H
Hui Zhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
import re

from setuptools import find_packages
from setuptools import setup


def read(*names, **kwargs):
H
Hui Zhang 已提交
23 24
    with io.open(os.path.join(os.path.dirname(__file__), *names),
                 encoding=kwargs.get("encoding", "utf8")) as fp:
H
Hui Zhang 已提交
25 26 27
        return fp.read()


H
Hui Zhang 已提交
28
VERSION = '2.1.2'
H
Hui Zhang 已提交
29
long_description = read("README.md")
H
Hui Zhang 已提交
30
deps = [d.strip() for d in read('requirements.txt').split()]
H
Hui Zhang 已提交
31 32 33

setup_info = dict(
    # Metadata
H
Hui Zhang 已提交
34
    name='paddle-speech',
H
Hui Zhang 已提交
35
    version=VERSION,
H
Hui Zhang 已提交
36
    author='PaddleSL Speech Team',
H
Hui Zhang 已提交
37
    author_email='',
H
Hui Zhang 已提交
38 39
    url='https://github.com/PaddlePaddle/DeepSpeech',
    description='Speech tools and models based on Paddlepaddle',
H
Hui Zhang 已提交
40 41 42 43
    long_description=long_description,
    long_description_content_type="text/markdown",
    license='Apache 2',
    python_requires='>=3.6',
H
Hui Zhang 已提交
44
    install_requires=deps,
H
Hui Zhang 已提交
45
    extras_require={
H
Hui Zhang 已提交
46 47 48 49
        'doc': [
            "sphinx", "sphinx-rtd-theme", "numpydoc", "myst_parser",
            "recommonmark>=0.5.0", "sphinx-markdown-tables", "sphinx-autobuild"
        ],
H
Hui Zhang 已提交
50 51 52 53 54 55 56 57 58 59 60 61 62
    },

    # Package info
    packages=find_packages(exclude=('tests', 'tests.*')),
    zip_safe=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
H
Hui Zhang 已提交
63 64 65
        'Programming Language :: Python :: 3.8',
    ],
)
H
Hui Zhang 已提交
66 67

setup(**setup_info)