|
1 |
| -"""A setup module for the GAPIC Dialogflow API library. |
| 1 | +# Copyright 2019 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. |
2 | 14 |
|
3 |
| -See: |
4 |
| -https://packaging.python.org/en/latest/distributing.html |
5 |
| -https://github.com/pypa/sampleproject |
6 |
| -""" |
7 |
| - |
8 |
| -from setuptools import setup, find_packages |
9 | 15 | import io
|
| 16 | +import os |
| 17 | + |
| 18 | +import setuptools |
| 19 | + |
| 20 | +name = "dialogflow" |
| 21 | +description = "Client library for the Dialogflow API" |
| 22 | +version = "0.6.0" |
| 23 | +release_status = "Development Status :: 4 - Beta" |
| 24 | +dependencies = ["google-api-core[grpc] >= 1.14.0, < 2.0.0dev"] |
10 | 25 |
|
11 |
| -install_requires = [ |
12 |
| - "google-api-core[grpc]<2.0.0dev,>=0.1.4", |
13 |
| - "googleapis-common-protos[grpc]>=1.5.2, <2.0dev", |
14 |
| -] |
| 26 | +package_root = os.path.abspath(os.path.dirname(__file__)) |
15 | 27 |
|
16 |
| -with io.open("README.rst", "r", encoding="utf-8") as readme_file: |
17 |
| - long_description = readme_file.read() |
| 28 | +readme_filename = os.path.join(package_root, "README.rst") |
| 29 | +with io.open(readme_filename, encoding="utf-8") as readme_file: |
| 30 | + readme = readme_file.read() |
18 | 31 |
|
19 |
| -setup( |
| 32 | +packages = setuptools.find_packages() |
| 33 | + |
| 34 | +setuptools.setup( |
20 | 35 | name="dialogflow",
|
21 | 36 | version="0.7.0",
|
22 | 37 | author="Google LLC",
|
23 | 38 | author_email="googleapis-packages@google.com",
|
| 39 | + license="Apache 2.0", |
| 40 | + url="https://github.com/dialogflow/dialogflow-python-client-v2", |
24 | 41 | classifiers=[
|
25 |
| - "Intended Audience :: Developers", |
26 |
| - "Development Status :: 4 - Beta", |
| 42 | + release_status, |
27 | 43 | "Intended Audience :: Developers",
|
28 | 44 | "License :: OSI Approved :: Apache Software License",
|
29 | 45 | "Programming Language :: Python",
|
30 | 46 | "Programming Language :: Python :: 2",
|
31 | 47 | "Programming Language :: Python :: 2.7",
|
32 | 48 | "Programming Language :: Python :: 3",
|
33 |
| - "Programming Language :: Python :: 3.4", |
34 | 49 | "Programming Language :: Python :: 3.5",
|
35 | 50 | "Programming Language :: Python :: 3.6",
|
36 | 51 | "Programming Language :: Python :: 3.7",
|
37 | 52 | "Programming Language :: Python :: Implementation :: CPython",
|
38 | 53 | ],
|
39 |
| - description="Client library for the Dialogflow API", |
40 |
| - include_package_data=True, |
41 |
| - long_description=long_description, |
42 |
| - install_requires=install_requires, |
| 54 | + platforms="Posix; MacOS X; Windows", |
| 55 | + packages=packages, |
| 56 | + install_requires=dependencies, |
43 | 57 | python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
|
44 |
| - license="Apache 2.0", |
45 |
| - packages=find_packages(), |
46 |
| - url="https://github.com/dialogflow/dialogflow-python-client-v2", |
| 58 | + include_package_data=True, |
| 59 | + zip_safe=False, |
47 | 60 | )
|
0 commit comments