better-carpenter-8743
02/06/2024, 7:56 PMpython_distribution(
name="hermes_package",
dependencies=[":pyproject"],
provides=python_artifact(
name="mypackage",
),
generate_setup=True,
repositories=["@codeartifact"],
)
I publish out a package with no code. I can do:
python_distribution(
name="hermes_package",
dependencies=[":pyproject", "mypackage/mypackage/module1:lib", "mypackage/mypackage/module2:lib", ...],
provides=python_artifact(
name="mypackage",
),
generate_setup=True,
repositories=["@codeartifact"],
)
but then I have to list every module, trying a wildcard:
dependencies=[":pyproject", "mypackage/mypackage::"],
is not supported:
`InvalidFieldException: mypackage/BUILD3 Failed to get dependencies for hermeshermes package The address mypackage/mypackage:: from the dependencies field from the target mypackage:mypackage_package ended in a wildcard (::), which is not supported.`
Is there a way to include all of the code for package without needing to list it all out?happy-kitchen-89482
02/06/2024, 8:06 PMmain module, or some entry point, and the rest gets pulled in by dependency inference.happy-kitchen-89482
02/06/2024, 8:07 PMpyproject contains the entry point, the rest should come along.happy-kitchen-89482
02/06/2024, 8:08 PMpants dependencies --transitive path/to/distribution:hermes_packagehappy-kitchen-89482
02/06/2024, 8:08 PMbetter-carpenter-8743
02/06/2024, 8:09 PMbetter-carpenter-8743
02/06/2024, 8:11 PMpants dependencies --transitive hermes:hermes_package
hermes:pyproject
my pyproject is simply:
[build-system]
# PEP 517 specifies the build backend as "requires"
requires = ["setuptools>=42", "wheel"]
# The build-backend field specifies what tool will be used to perform the build.
build-backend = "setuptools.build_meta"better-carpenter-8743
02/06/2024, 8:16 PMhappy-kitchen-89482
02/06/2024, 8:17 PMhappy-kitchen-89482
02/06/2024, 8:17 PMhappy-kitchen-89482
02/06/2024, 8:17 PMhappy-kitchen-89482
02/06/2024, 8:18 PMhappy-kitchen-89482
02/06/2024, 8:18 PMhappy-kitchen-89482
02/06/2024, 8:18 PMhappy-kitchen-89482
02/06/2024, 8:19 PMbetter-carpenter-8743
02/06/2024, 8:29 PMhappy-kitchen-89482
02/07/2024, 12:26 AMhappy-kitchen-89482
02/07/2024, 12:26 AM