|
| 1 | +# Copyright 2018 Google LLC |
| 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 | +# https://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 | +# Copyright 2018 Google LLC |
| 15 | +# |
| 16 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 17 | +# you may not use this file except in compliance with the License. |
| 18 | +# You may obtain a copy of the License at |
| 19 | +# |
| 20 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 21 | +# |
| 22 | +# Unless required by applicable law or agreed to in writing, software |
| 23 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 24 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 25 | +# See the License for the specific language governing permissions and |
| 26 | +# limitations under the License. |
| 27 | + |
| 28 | +import io |
| 29 | +import os |
| 30 | + |
| 31 | +import setuptools |
| 32 | + |
| 33 | + |
| 34 | +# Package metadata. |
| 35 | + |
| 36 | +name = "google-cloud-texttospeech" |
| 37 | +description = "Google Cloud Text-to-Speech API client library" |
| 38 | +version = "2.11.0" |
| 39 | +# Should be one of: |
| 40 | +# 'Development Status :: 3 - Alpha' |
| 41 | +# 'Development Status :: 4 - Beta' |
| 42 | +# 'Development Status :: 5 - Production/Stable' |
| 43 | +release_status = "Development Status :: 5 - Production/Stable" |
| 44 | +dependencies = [ |
| 45 | + # NOTE: Maintainers, please do not require google-api-core>=2.x.x |
| 46 | + # Until this issue is closed |
| 47 | + # https://github.com/googleapis/google-cloud-python/issues/10566 |
| 48 | + "google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", |
| 49 | + "proto-plus >= 1.15.0", |
| 50 | +] |
| 51 | +extras = {} |
| 52 | + |
| 53 | + |
| 54 | +# Setup boilerplate below this line. |
| 55 | + |
| 56 | +package_root = os.path.abspath(os.path.dirname(__file__)) |
| 57 | + |
| 58 | +readme_filename = os.path.join(package_root, "README.rst") |
| 59 | +with io.open(readme_filename, encoding="utf-8") as readme_file: |
| 60 | + readme = readme_file.read() |
| 61 | + |
| 62 | +# Only include packages under the 'google' namespace. Do not include tests, |
| 63 | +# benchmarks, etc. |
| 64 | +packages = [ |
| 65 | + package |
| 66 | + for package in setuptools.PEP420PackageFinder.find() |
| 67 | + if package.startswith("google") |
| 68 | +] |
| 69 | + |
| 70 | +# Determine which namespaces are needed. |
| 71 | +namespaces = ["google"] |
| 72 | +if "google.cloud" in packages: |
| 73 | + namespaces.append("google.cloud") |
| 74 | + |
| 75 | + |
| 76 | +setuptools.setup( |
| 77 | + name=name, |
| 78 | + version=version, |
| 79 | + description=description, |
| 80 | + long_description=readme, |
| 81 | + author="Google LLC", |
| 82 | + author_email="googleapis-packages@google.com", |
| 83 | + license="Apache 2.0", |
| 84 | + url="https://github.com/googleapis/python-texttospeech", |
| 85 | + classifiers=[ |
| 86 | + release_status, |
| 87 | + "Intended Audience :: Developers", |
| 88 | + "License :: OSI Approved :: Apache Software License", |
| 89 | + "Programming Language :: Python", |
| 90 | + "Programming Language :: Python :: 3", |
| 91 | + "Programming Language :: Python :: 3.6", |
| 92 | + "Programming Language :: Python :: 3.7", |
| 93 | + "Programming Language :: Python :: 3.8", |
| 94 | + "Programming Language :: Python :: 3.9", |
| 95 | + "Programming Language :: Python :: 3.10", |
| 96 | + "Operating System :: OS Independent", |
| 97 | + "Topic :: Internet", |
| 98 | + ], |
| 99 | + platforms="Posix; MacOS X; Windows", |
| 100 | + packages=packages, |
| 101 | + namespace_packages=namespaces, |
| 102 | + install_requires=dependencies, |
| 103 | + extras_require=extras, |
| 104 | + python_requires=">=3.6", |
| 105 | + scripts=["scripts/fixup_keywords.py"], |
| 106 | + include_package_data=True, |
| 107 | + zip_safe=False, |
| 108 | +) |
0 commit comments