Skip to content

Commit f942a42

Browse files
matthew29tangcopybara-github
authored andcommitted
chore: Restructure setup.py packages list to be a variable
PiperOrigin-RevId: 516339794
1 parent badd386 commit f942a42

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

setup.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
exec(fp.read(), version)
3434
version = version["__version__"]
3535

36+
packages = [
37+
package
38+
for package in setuptools.PEP420PackageFinder.find()
39+
if package.startswith("google")
40+
]
41+
3642
tensorboard_extra_require = ["tensorflow >=2.3.0, <3.0.0dev"]
3743
metadata_extra_require = ["pandas >= 1.0.0", "numpy>=1.15.0"]
3844
xai_extra_require = ["tensorflow >=2.3.0, <3.0.0dev"]
@@ -114,11 +120,7 @@
114120
version=version,
115121
description=description,
116122
long_description=readme,
117-
packages=[
118-
package
119-
for package in setuptools.PEP420PackageFinder.find()
120-
if package.startswith("google")
121-
],
123+
packages=packages,
122124
entry_points={
123125
"console_scripts": [
124126
"tb-gcp-uploader=google.cloud.aiplatform.tensorboard.uploader_main:run_main"

0 commit comments

Comments
 (0)