Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 69951d0

Browse files
authored
fix: pin google-api-core>=1.14.0, update format (#156)
1 parent b1594ba commit 69951d0

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

setup.py

+37-24
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,60 @@
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.
214

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
915
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"]
1025

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__))
1527

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()
1831

19-
setup(
32+
packages = setuptools.find_packages()
33+
34+
setuptools.setup(
2035
name="dialogflow",
2136
version="0.7.0",
2237
author="Google LLC",
2338
author_email="googleapis-packages@google.com",
39+
license="Apache 2.0",
40+
url="https://github.com/dialogflow/dialogflow-python-client-v2",
2441
classifiers=[
25-
"Intended Audience :: Developers",
26-
"Development Status :: 4 - Beta",
42+
release_status,
2743
"Intended Audience :: Developers",
2844
"License :: OSI Approved :: Apache Software License",
2945
"Programming Language :: Python",
3046
"Programming Language :: Python :: 2",
3147
"Programming Language :: Python :: 2.7",
3248
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3.4",
3449
"Programming Language :: Python :: 3.5",
3550
"Programming Language :: Python :: 3.6",
3651
"Programming Language :: Python :: 3.7",
3752
"Programming Language :: Python :: Implementation :: CPython",
3853
],
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,
4357
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,
4760
)

0 commit comments

Comments
 (0)