Metadata-Version: 2.2
Name: one-updater
Version: 0.7.0
Summary: One tool many packages
Author-email: Tim Bryant <timothybryant3@gmail.com>
Requires-Python: <3.14,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: pyyaml
Requires-Dist: rich
Requires-Dist: python-semantic-release
Provides-Extra: dev
Requires-Dist: autopep8; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: pyinstaller; extra == "dev"
Requires-Dist: pyyaml; extra == "dev"

# One Updater

A flexible package manager updater that helps you keep all your development tools up to date.

## Features

- Update multiple package managers with a single command
- Configure which package managers to update
- Support for virtual environments and pyenv for Python packages
- Beautiful command-line interface with rich formatting and logging
- Cross-platform support
- Extensible architecture for adding new package managers

## Supported Package Managers

- Homebrew
- pip (with virtualenv/pyenv support)
- npm
- cargo
- gem
- pipx
- pacman
- dnf
- flatpak
- pkgx
- vagrant-plugins
- micro editor plugins
- tldr pages
- go packages
- apt
- More coming soon!

## Installation

Install from PyPI:

```bash
pip install one-updater
```

To upgrade to the latest version:

```bash
pip install --upgrade one-updater
```

Use one of the pre-built executables in `one_updater/bin` e.g.:

```bash
sudo cp one-updater-linux /usr/local/bin/one-updater
sudo chmod +x /usr/local/bin/one-updater
```

## Usage

### Basic Usage

Update all enabled package managers:

```bash
one-updater update
```

Update specific package managers:

```bash
one-updater update -m homebrew -m pip
```

List configured package managers:

```bash
one-updater list-managers
```

Initialize a new configuration file:

```bash
one-updater init
```

### Configuration

The tool uses a YAML configuration file (default: `~/.config/one-updater/config.yaml`) to specify package manager settings. You can:

1. Enable/disable specific package managers
2. Configure virtualenv/pyenv for Python packages
3. Customize update commands
4. Configure logging and verbosity

Example configuration:

```yaml
verbose: true
logging:
  level: "INFO"
  format: "%(message)s"

package_managers:
  homebrew:
    enabled: true
    commands:
      update: ["brew", "update"]
      upgrade: ["brew", "upgrade"]

  pip:
    enabled: true
    virtualenv: "/path/to/virtualenv" # Optional
    pyenv: "3.11.0" # Optional
    commands:
      update: ["pip", "install", "--upgrade", "pip"]
      upgrade: ["pip", "list", "--outdated", "--format=json"]
```

## Contributing

Contributions are welcome! Feel free to:

1. Add support for new package managers
2. Improve error handling and logging
3. Add new features
4. Fix bugs
5. Improve documentation

Please ensure your changes pass the test suite and code quality checks:

```bash
# Install development dependencies
poetry install

# Run tests
poetry run pytest

# Run code formatting
poetry run black .
```

## License

MIT License
