Skip to content

The gbuild command references a main function that doesn't exist #99

Closed

Description

@Stebalien

pyproject.toml references a main function:

gbuild = "guidata.utils.securebuild:main"

That doesn't exist:

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Securely build Python packages from a Git repository."
)
parser.add_argument(
"--prebuild",
type=str,
default=None,
help="Command to run before building (e.g., to compile translations). "
"The command is executed in the temporary build directory.",
)
parser.add_argument(
"root_path",
nargs="?",
default=None,
help="Path to the root directory of the Git repository. "
"If not provided, the current working directory is used.",
)
args = parser.parse_args()
run_secure_build(root_path=args.root_path, prebuild_command=args.prebuild)

Activity

  1. ThomasMalletCodra commented on May 19, 2026

    @ThomasMalletCodra
    Contributor

    take exemple from "guidata.utils.genreqs:main" to fix it

  2. added this to the V3.14.4 milestone on May 22, 2026
  3. linked a pull request that will close this issueFix/99 gbuild #107on May 28, 2026
  4. ThomasMalletCodra commented on May 28, 2026

    @ThomasMalletCodra
    Contributor

    merge in release branch with pull request #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions