|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# |
1 | 3 | # Copyright 2018 Google LLC |
2 | 4 | # |
3 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
|
15 | 17 | import io |
16 | 18 | import os |
17 | 19 |
|
18 | | -from setuptools import find_packages, setup # type: ignore |
19 | | - |
20 | | - |
21 | | -PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) |
| 20 | +import setuptools |
22 | 21 |
|
| 22 | +name = "gapic-generator" |
| 23 | +description = "Google API Client Generator for Python" |
| 24 | +url = "https://github.com/googleapis/gapic-generator-python" |
23 | 25 | 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 | +] |
24 | 39 |
|
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__)) |
27 | 41 |
|
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, |
30 | 48 | 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, |
39 | 51 | entry_points="""[console_scripts] |
40 | 52 | protoc-gen-dump=gapic.cli.dump:dump |
41 | 53 | protoc-gen-python_gapic=gapic.cli.generate:generate |
42 | 54 | """, |
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, |
64 | 62 | "Environment :: Console", |
65 | 63 | "Intended Audience :: Developers", |
66 | 64 | "License :: OSI Approved :: Apache Software License", |
67 | | - "Operating System :: POSIX", |
| 65 | + "Programming Language :: Python", |
| 66 | + "Programming Language :: Python :: 3", |
68 | 67 | "Programming Language :: Python :: 3.6", |
69 | 68 | "Programming Language :: Python :: 3.7", |
70 | 69 | "Programming Language :: Python :: 3.8", |
71 | 70 | "Programming Language :: Python :: 3.9", |
72 | 71 | "Programming Language :: Python :: 3.10", |
| 72 | + "Operating System :: OS Independent", |
73 | 73 | "Topic :: Software Development :: Code Generators", |
74 | 74 | "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, |
76 | 80 | zip_safe=False, |
77 | 81 | ) |
0 commit comments