From 16ad4acea57a44126d0d954962a15a455dfbdbf0 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 15 Jun 2021 18:52:22 -0600 Subject: [PATCH] fix: exclude docs and tests from package (#30) Only include packages that start with google in the published artifact --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 95bf78d..9c4e984 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,11 @@ author_email="googleapis-packages@google.com", license="Apache 2.0", url=url, - packages=setuptools.PEP420PackageFinder.find(), + packages=[ + package + for package in setuptools.PEP420PackageFinder.find() + if package.startswith("google") + ], namespace_packages=("google", "google.cloud"), platforms="Posix; MacOS X; Windows", include_package_data=True,