# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import io
import os

import setuptools
from setuptools import setup, find_packages

name = "google-cloud-org-policy"
description = "Google Cloud Organization Policy Protos"
version = "0.1.0"
release_status = "Development Status :: 4 - Beta"
dependencies = ["google-api-core[grpc] >= 1.14.0, < 2.0.0dev"]

package_root = os.path.abspath(os.path.dirname(__file__))

readme_filename = os.path.join(package_root, "README.md")
with io.open(readme_filename, encoding="utf-8") as readme_file:
    readme = readme_file.read()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
    package for package in setuptools.find_packages() if package.startswith("google")
]

# Determine which namespaces are needed.
namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")


setuptools.setup(
    name=name,
    version=version,
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    classifiers=[
        release_status,
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: Implementation :: CPython",
    ],
    description=description,
    long_description=readme,
    long_description_content_type="text/markdown",
    install_requires=dependencies,
    license="Apache-2.0",
    packages=find_packages(),
    python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
    namespace_packages=packages,
    url="https://github.com/googleapis/python-org-policy",
    include_package_data=True,
)

@@ -7,18 +7,18 @@
 right 20
-20
+18
  Google 
@@ -612,51 +612,28 @@
 ols%0A
-from setuptools import setup, find_packages
+%0A# Package metadata.
 %0A%0Ana
@@ -698,17 +698,8 @@
  Org
-anization
  Pol
@@ -707,16 +707,19 @@
 cy Proto
+buf
 s%22%0Aversi
@@ -731,16 +731,155 @@
 %220.1.0%22%0A
+# Should be one of:%0A# 'Development Status :: 3 - Alpha'%0A# 'Development Status :: 4 - Beta'%0A# 'Development Status :: 5 - Production/Stable'%0A
 release_
@@ -932,24 +932,29 @@
 ndencies = %5B
+%0A    
 %22google-api-
@@ -986,17 +986,57 @@
 .0.0dev%22
-%5D
+,%0A%5D%0A%0A# Setup boilerplate below this line.
 %0A%0Apackag
@@ -1575,17 +1575,16 @@
 loud%22)%0A%0A
-%0A
 setuptoo
@@ -1625,24 +1625,82 @@
 on=version,%0A
+    description=description,%0A    long_description=readme,%0A
     author=%22
@@ -1763,16 +1763,101 @@
 e.com%22,%0A
+    license=%22Apache 2.0%22,%0A    url=%22https://github.com/googleapis/python-org-policy%22,%0A
     clas
@@ -2293,427 +2293,273 @@
    %22
-Programming Language :: Python :: Implementation :: CPython%22,%0A    %5D,%0A    description=description,%0A    long_description=readme,%0A    long_description_content_type=%22text/markdown%22,%0A    install_requires=dependencies,%0A    license=%22Apache-2.0%22,%0A    packages=find_packages(),%0A    python_requires=%22%3E=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*%22,%0A    namespace_packages=packages,%0A    url=%22https://github.com/googleapis/python-org-policy
+Operating System :: OS Independent%22,%0A        %22Topic :: Internet%22,%0A    %5D,%0A    platforms=%22Posix; MacOS X; Windows%22,%0A    packages=packages,%0A    namespace_packages=namespaces,%0A    install_requires=dependencies,%0A    python_requires=%22%3E=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
 %22,%0A 
@@ -2588,10 +2588,29 @@
 a=True,%0A
+    zip_safe=False,%0A
 )
-%0A

fix setup.py