Metadata-Version: 2.1
Name: tomate-playerautopause-plugin
Version: 0.1.1
Summary: Pauses all running media players when the session ends
Home-page: https://github.com/eliostvs/tomate-playerautopause-plugin
Author: Elio Esteves Duarte
Author-email: elio.esteves.duarte@gmail.com
License: GNU Lesser General Public License v3.0
Keywords: pomodoro,tomate
Platform: UNKNOWN
License-File: LICENSE
License-File: AUTHORS

# Tomate Player Auto-Pause Plugin

Pauses all running media players when the session ends

## Installation

### Ubuntu

```bash
apt install tomate-playerautopause-plugin
```

## Development

Install the following native dependencies in you system:

- Python3 
- pip3
- make 
- git 
- git-flow
- tomate/tomate-gtk
- gir1.2-playerctl-2.0

Install the Python development dependencies:

```bash
pip install --user black bumpversion copier pytest pytest-cov pytest-flake8 pytest-mock pre-commit
```

Create the plugin project:

```bash
copier gh:eliostvs/tomate-plugin-template path/to/plugin/project`
```

### Media Files

If this plugin uses media files (icons, mp3, etc), copy them to the **data** directory in root of the repository.

### Testing

Personalize the .pre-commit-config.yaml

Format the files using [black](https://pypi.org/project/black/):

```bash
make format
```

Run test in your local environment:

```bash
make test
```

Run test inside the docker:

```bash
make docker-test
```

Test manually the plugin:

```bash
ln -s ~/.local/share/tomate/plugins path/to/plugin/project/data/plugins
tomate-gtk -v
```

Then activate the plugin through the settings.

### Release

Update the *[Unrelease]* section in the CHANGELOG.md file then:

`make release-[patch|minor|major]`


