Skip to content

Conversation

@wtgee
Copy link
Member

@wtgee wtgee commented Sep 18, 2025

Adds a pocs update command that will fetch the latest changes from github, sync the dependencies (using hatch) and show any relevant messsages to the user.

Closes #1318

Messages are shown to the user by adding a notice as follows:

NOTICE: Now you can easily update POCS by calling pocs update. Give it a try! 🎉

* Add `GitPython`
* Cleanup the `all` optional dependency
… updating.

NOTICE: Now you can easily update POCS by calling `pocs update`. Give it a try!
@wtgee wtgee requested a review from Copilot September 18, 2025 22:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new pocs update command to automatically update the POCS project by fetching the latest changes from GitHub, syncing dependencies using hatch, and displaying relevant update messages to users.

  • Implements pocs update command with git operations and progress tracking
  • Adds utility functions for finding project root and running hatch commands
  • Simplifies dependency management by consolidating optional dependencies

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
src/panoptes/pocs/utils/cli/main.py Adds update command implementation with git operations, message display, and dependency management functions
pyproject.toml Adds GitPython dependency and simplifies optional dependency groups

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@wtgee wtgee merged commit 28a0576 into develop Sep 18, 2025
1 of 3 checks passed
@wtgee wtgee deleted the update-and-dependencies-1318 branch September 18, 2025 22:48
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.

Better dependency management

2 participants