Installation

Requirements

Core Requirements

  • Python 3.8 or later

  • git command-line tool

  • rpmspec command (from rpm-build package)

On Fedora/RHEL:

sudo dnf install python3 git rpm-build

Spec Manager Requirements

Install the spec managers you plan to use:

Packit (for traditional Fedora packages):

pip install packitos

Or on Fedora:

sudo dnf install packit

rust2rpm (for Rust crates):

sudo dnf install rust2rpm

pyp2spec (for Python packages):

sudo dnf install pyp2spec

Optional Requirements

DNF Python bindings (for checking if packages already exist):

sudo dnf install python3-dnf

Note

DNF is optional. If not available, dependency checking will be skipped gracefully.

Installing dist-git-manager

From PyPI

pip install dist-git-manager

From Source

git clone https://github.com/gmessmer/dist-git-manager.git
cd dist-git-manager
pip install .

Development Installation

For development or contributing:

git clone https://github.com/gmessmer/dist-git-manager.git
cd dist-git-manager
pip install -e .[dev,docs]

This installs:

  • dev: pytest, black, ruff, mypy for development

  • docs: Sphinx and dependencies for building documentation

Running Tests

pytest tests/

Building Documentation

cd docs
make html

Verification

Verify installation:

dist-git-manager --version
dist-git-manager --list-plugins

This should show:

  • The installed version number

  • Available version sources and spec managers

Next Steps