Skip to content

Latest commit

 

History

History
101 lines (69 loc) · 1.95 KB

File metadata and controls

101 lines (69 loc) · 1.95 KB

debugpy RPM Package

RPM packaging for debugpy (Debug Adapter Protocol for Python 3) compatible with Fedora and RHEL/EPEL.

Quick Start

Automated Builds (Recommended)

Packit automatically monitors upstream releases and builds in COPR.

Manual Local Build

# Quick build with mock (defaults to Fedora Rawhide)
make mock

# Build for specific distribution
make mock DIST=fedora-44-x86_64
make mock DIST=epel-9-x86_64

See make help for all available targets.

Building with Mock

Mock provides a clean build environment isolated from your system:

# Install mock and add yourself to the mock group
sudo dnf install mock
sudo usermod -a -G mock $USER
newgrp mock

# Build for different distributions
make mock DIST=fedora-rawhide-x86_64  # Default
make mock DIST=fedora-44-x86_64
make mock DIST=epel-9-x86_64
make mock DIST=epel-10-x86_64

Manual rpmbuild

# Install build tools
sudo dnf install rpm-build rpmdevtools

# Download sources and build SRPM
make srpm

# Build RPM locally (not recommended - use mock instead)
make rpm

Packit Integration

Once configured, Packit automatically:

Test locally:

packit validate    # Validate configuration
packit srpm        # Build SRPM

Installation

Once built in COPR:

sudo dnf copr enable @rhinstaller/devutils
sudo dnf install python3-debugpy

Verify:

python3 -c "import debugpy; print(debugpy.__version__)"
debugpy --help

Checking for Updates

./check-upstream.sh

Compares spec file version with latest PyPI release. Requires jq.

Supported Distributions

  • Fedora 44, ELN, Rawhide
  • RHEL 9, 10 (via EPEL)

License

Spec file is provided as-is. debugpy is licensed under MIT.