Skip to content

Commit 3433b62

Browse files
authored
chore: update setup.py (#1297)
* chore: update setup.py * revert change to copyright year
1 parent 485a0ec commit 3433b62

1 file changed

Lines changed: 43 additions & 39 deletions

File tree

packages/gapic-generator/setup.py

Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
#
13
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,63 +17,65 @@
1517
import io
1618
import os
1719

18-
from setuptools import find_packages, setup # type: ignore
19-
20-
21-
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
20+
import setuptools
2221

22+
name = "gapic-generator"
23+
description = "Google API Client Generator for Python"
24+
url = "https://github.com/googleapis/gapic-generator-python"
2325
version = "0.65.2"
26+
release_status = "Development Status :: 4 - Beta"
27+
dependencies = [
28+
"click >= 6.7",
29+
"google-api-core >= 2.3.2",
30+
"googleapis-common-protos >= 1.55.0",
31+
"grpcio >= 1.24.3",
32+
"jinja2 >= 2.10",
33+
"protobuf >= 3.18.0",
34+
"pypandoc >= 1.4",
35+
"PyYAML >= 5.1.1",
36+
"dataclasses < 0.8; python_version < '3.7'",
37+
"grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev",
38+
]
2439

25-
with io.open(os.path.join(PACKAGE_ROOT, "README.rst")) as file_obj:
26-
README = file_obj.read()
40+
package_root = os.path.abspath(os.path.dirname(__file__))
2741

28-
setup(
29-
name="gapic-generator",
42+
readme_filename = os.path.join(package_root, "README.rst")
43+
with io.open(readme_filename, encoding="utf-8") as readme_file:
44+
readme = readme_file.read()
45+
46+
setuptools.setup(
47+
name=name,
3048
version=version,
31-
license="Apache 2.0",
32-
author="Dov Shlachter",
33-
author_email="dovs@google.com",
34-
url="https://github.com/googleapis/gapic-generator-python.git",
35-
packages=find_packages(exclude=["docs", "tests"]),
36-
description="Python client library generator for APIs defined by protocol"
37-
"buffers",
38-
long_description=README,
49+
description=description,
50+
long_description=readme,
3951
entry_points="""[console_scripts]
4052
protoc-gen-dump=gapic.cli.dump:dump
4153
protoc-gen-python_gapic=gapic.cli.generate:generate
4254
""",
43-
platforms="Posix; MacOS X",
44-
include_package_data=True,
45-
install_requires=(
46-
# There is a typing issue with click==8.1.0
47-
# See https://github.com/pallets/click/issues/2227
48-
"click >= 6.7,!=8.1.0",
49-
"google-api-core >= 2.3.2",
50-
"googleapis-common-protos >= 1.55.0",
51-
"grpcio >= 1.24.3",
52-
"jinja2 >= 2.10",
53-
"protobuf >= 3.18.0",
54-
"pypandoc >= 1.4",
55-
"PyYAML >= 5.1.1",
56-
"dataclasses < 0.8; python_version < '3.7'",
57-
"grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
58-
),
59-
extras_require={':python_version<"3.7"': ("dataclasses >= 0.4, < 0.8",),},
60-
tests_require=("pyfakefs >= 3.6",),
61-
python_requires=">=3.6",
62-
classifiers=(
63-
"Development Status :: 4 - Beta",
55+
author="Google LLC",
56+
author_email="googleapis-packages@google.com",
57+
license="Apache 2.0",
58+
packages=setuptools.find_packages(exclude=["docs", "tests"]),
59+
url=url,
60+
classifiers=[
61+
release_status,
6462
"Environment :: Console",
6563
"Intended Audience :: Developers",
6664
"License :: OSI Approved :: Apache Software License",
67-
"Operating System :: POSIX",
65+
"Programming Language :: Python",
66+
"Programming Language :: Python :: 3",
6867
"Programming Language :: Python :: 3.6",
6968
"Programming Language :: Python :: 3.7",
7069
"Programming Language :: Python :: 3.8",
7170
"Programming Language :: Python :: 3.9",
7271
"Programming Language :: Python :: 3.10",
72+
"Operating System :: OS Independent",
7373
"Topic :: Software Development :: Code Generators",
7474
"Topic :: Software Development :: Libraries :: Python Modules",
75-
),
75+
],
76+
platforms="Posix; MacOS X",
77+
python_requires=">=3.6",
78+
install_requires=dependencies,
79+
include_package_data=True,
7680
zip_safe=False,
7781
)

0 commit comments

Comments
 (0)