Skip to content

locking down to specific python and dependency versions#189

Merged
peterj merged 3 commits intomainfrom
peterj/fix186
Feb 19, 2026
Merged

locking down to specific python and dependency versions#189
peterj merged 3 commits intomainfrom
peterj/fix186

Conversation

@peterj
Copy link
Copy Markdown
Contributor

@peterj peterj commented Feb 19, 2026

Setting explicit dependency versions for the MCP project and the agent project. Note that the agent project right now requires 3.13, as one of it's dependencies requires is (kagent-skills). We could lower that version later once this is fixed.

The first commit also updates CLI so it doesn't try to connect/launch to the daemon when running the init command.

Resolves #186

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes related to the ADK replace pin?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the requires here is just to be sure -- we do set the version in .python-version file too, but it's clearer if it's here as well (note we depend on 3.13 because of one o the kagent libraries)

pkg/cli/root.go Outdated
return c, nil
}

func applyAPIClientToSubcommands(c *client.Client) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd advocate for moving all of this logic until EIF at the top of the file. Easier to read for cobra-based CLIs where you have the rootCmd that acts as a driver + init() commands.

pkg/cli/root.go Outdated
return err
}

applyAPIClientToSubcommands(c)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this function is used here & for testing purposes. Can't we inline this instead and skip the unit tests?

pkg/cli/root.go Outdated
cli.SetAPIClient(c)
}

var rootCmd = &cobra.Command{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do this in the future, but some of the globals being used throughout this root package can be dramatically reduced via constructors on each sub-command. Obviously doesn't block these changes though.

Signed-off-by: Peter Jausovec <[email protected]>
@peterj peterj merged commit f9e2435 into main Feb 19, 2026
3 checks passed
@EItanya
Copy link
Copy Markdown
Contributor

EItanya commented Feb 20, 2026

This has been resolved on the kagent side, we are now unit testing down to 3.10

@EItanya EItanya deleted the peterj/fix186 branch February 20, 2026 11:52
christian-posta pushed a commit to christian-posta/agentregistry that referenced this pull request Mar 9, 2026
…y-dev#189)

Setting explicit dependency versions for the MCP project and the agent
project. Note that the agent project right now requires 3.13, as one of
it's dependencies requires is (kagent-skills). We could lower that
version later [once this is
fixed](kagent-dev/kagent#1329).

The first commit also updates CLI so it doesn't try to connect/launch to
the daemon when running the init command.

Resolves agentregistry-dev#186

---------

Signed-off-by: Peter Jausovec <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lock down to specific dependency versions in pyproject.toml

3 participants