From dd4d20e656fa1b2a81f959b75b6b63137047a6dd Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 2 May 2022 05:23:30 -0400 Subject: [PATCH] fix: include tests directory (#103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: include tests directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * rename README.md to README.rst * update path to README in setup.py Co-authored-by: Owl Bot --- packages/googleapis-common-protos/MANIFEST.in | 9 +++++++-- .../googleapis-common-protos/{README.md => README.rst} | 0 packages/googleapis-common-protos/owlbot.py | 1 + packages/googleapis-common-protos/setup.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) rename packages/googleapis-common-protos/{README.md => README.rst} (100%) diff --git a/packages/googleapis-common-protos/MANIFEST.in b/packages/googleapis-common-protos/MANIFEST.in index 04011187e974..e783f4c6209b 100644 --- a/packages/googleapis-common-protos/MANIFEST.in +++ b/packages/googleapis-common-protos/MANIFEST.in @@ -14,7 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -include README.md LICENSE -recursive-include google *.json *.proto +# Generated by synthtool. DO NOT EDIT! +include README.rst LICENSE +recursive-include google *.json *.proto py.typed +recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen diff --git a/packages/googleapis-common-protos/README.md b/packages/googleapis-common-protos/README.rst similarity index 100% rename from packages/googleapis-common-protos/README.md rename to packages/googleapis-common-protos/README.rst diff --git a/packages/googleapis-common-protos/owlbot.py b/packages/googleapis-common-protos/owlbot.py index 07f6485c0858..f28177a512b9 100644 --- a/packages/googleapis-common-protos/owlbot.py +++ b/packages/googleapis-common-protos/owlbot.py @@ -63,6 +63,7 @@ s.move(templated_files / ".kokoro", excludes=["docs/**/*", "publish-docs.sh"]) s.move(templated_files / "setup.cfg") s.move(templated_files / "LICENSE") +s.move(templated_files / "MANIFEST.in") s.move(templated_files / ".github", excludes=["workflows"]) # Generate _pb2.py files and format them diff --git a/packages/googleapis-common-protos/setup.py b/packages/googleapis-common-protos/setup.py index 6703d89df64c..49fddc59bc6f 100644 --- a/packages/googleapis-common-protos/setup.py +++ b/packages/googleapis-common-protos/setup.py @@ -28,7 +28,7 @@ package_root = os.path.abspath(os.path.dirname(__file__)) -readme_filename = os.path.join(package_root, "README.md") +readme_filename = os.path.join(package_root, "README.rst") with io.open(readme_filename, encoding="utf-8") as readme_file: readme = readme_file.read()