Metadata-Version: 2.4
Name: fastpluggy-git-module-manager
Version: 0.2.3
Summary: Git Module Manager Plugin for FastPluggy
Author: FastPluggy Team
License-Expression: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: FastPluggy<1,>=0.5.0
Requires-Dist: GitPython<4,>=3.1.43
Provides-Extra: tests
Requires-Dist: pytest>=7.0; extra == "tests"
Requires-Dist: pytest-cov>=4.0; extra == "tests"
Requires-Dist: httpx; extra == "tests"
Provides-Extra: e2e
Requires-Dist: fastpluggy-cli; extra == "e2e"
Requires-Dist: playwright>=1.40.0; extra == "e2e"
Dynamic: license-file

# fastpluggy-git-module-manager

![Git Module Manager](https://img.shields.io/badge/FastPluggy-Git%20Module%20Manager-blue)
[![Release](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/-/badges/release.svg)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/-/releases)
[![Pipeline Status](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/badges/main/pipeline.svg?key_text=CI)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/-/pipelines?ignore_skipped=true)
[![Coverage](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/badges/main/coverage.svg)](https://gitlab.ggcorp.fr/open/fastpluggy/plugins/git_module_manager/-/pipelines)

Install FastPluggy plugins from Git repositories and keep them up to date, from an admin page.

![Git Module Manager page](docs/screenshots/git-module-manager-page.png)

## Installation

```bash
pip install fastpluggy-git-module-manager
```

Requires Python 3.11+, FastPluggy 0.5.0+, GitPython and the `git` command on the server.

## Features

- Install a plugin from an `https://` or `ssh://` Git URL into the application's plugins folder; it is enabled and loaded at once.
- List the plugins of that folder that are Git checkouts, with their branch, current commit and the latest commit seen on the remote.
- Check every one for new commits, and update one (`git pull --ff-only`), choosing what happens to local changes.
- An advisory in the core admin for each plugin with an update, and a warning when `git` is missing.
- Admin menu entry; every page and action is for administrators (`fp_admin`).

See [docs/README.md](docs/README.md) for the routes, the rules each action applies, and the settings.
