Skip to main content

Introduction

This is the rpkg project, which mostly is a python library for dealing with rpm packaging in a git source control. pyrpkg is the base library that sites can subclass to create useful tools.

rpkg works with Python 2.7, 3.6, 3.9, 3.12 and 3.13.

License

Unless otherwise specified, all files are licensed under GPLv2+.

Installation

Install from distribution packages

rpkg is available in Fedora and EPEL repositories. It can be installed with package manager command. There is Python 3 package for Fedora and EPEL8; and Python 2 package in EPEL7.

Install in a Fedora system:

sudo dnf install python3-rpkg

Install in EPEL7:

sudo yum install python2-rpkg

Install in EPEL8:

sudo dnf install python3-rpkg

Install in a Python virtual environment

Both Python 2 and 3 packages are published in PyPI. Install rpkg in a Python 3 virtual environment in these steps:

python3 -m venv .env
source .env/bin/activate
pip install rpkg rpm-py-installer

You are free to create a virtual environment with option --system-site-packages.

Please note that, rpkg depends on some other utilities to build packages. These packages are required to be installed as well.

  • mock: for local mockbuild.

  • rpm-build: for local RPM build, which provides the command line rpm.

  • rpmlint: check SPEC.

  • copr-cli: for building package in Fedora Copr.

  • module-build-service: for building modules.

Contribution

You are welcome to write patches to fix or improve rpkg. All code should work with Python 2.7, and 3. Before you create a PR to propose your changes, make sure

Sign-off commit

Make sure to sign-off your commits by git commit -s. This serves as a confirmation that you have the right to submit your changes. See Developer Certificate of Origin for details.

Run Tests

Before make a pull request, ensure local changes pass all test cases.

Before run tests, install these packages:

sudo dnf install python27 python36 python39 git make gcc rpm-build \
rpm-devel libcurl-devel krb5-devel openssl-devel python3-devel

To run tests simply, make test.

By default, target test runs tests with all supported Python versions. However, if you look into Makefile, there is still a target tox that allows developer to run tests with test environments one by one.

Release files for rpkg 1.70

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpkg 1.70
File Size Uploaded
rpkg-1.70.tar.gz 226.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpkg 1.70
File Interpreter ABI Platform
rpkg-1.70-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size:337.5 kB

Release files / rpkg-1.70.tar.gz

Download URL rpkg-1.70.tar.gz
Size 226.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7403212b50e153118cab7ebe2d1a7f2f73846927e7d05c19ab4d721914d9d94a
BLAKE2b-256 checksum
How to use checksums
4e50aa5e46920c146061ce4ce470f8ece08086ff2e0e94c482b8bc1be51921d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / rpkg-1.70-py2.py3-none-any.whl

Download URL rpkg-1.70-py2.py3-none-any.whl
Size 111.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
58f97f435f40f21c39ca31a4980fc6e06debd71cfb75ad081345535229d7d9f7
BLAKE2b-256 checksum
How to use checksums
ddd9f9ba8babf451f82f20f3710a6756f99abcfbd5496b8b3e486bf61a47fa76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.70 This release

2 release files

1.69

2 release files

1.68

2 release files

1.67

2 release files

1.66

2 release files

1.65

2 release files

1.64

2 release files

1.63

3 release files

1.62

3 release files

1.61

3 release files

1.60

3 release files

1.59

3 release files

1.58

3 release files

1.57

3 release files

1.56

2 release files

1.55

2 release files

1.54

2 release files

1.53

2 release files

1.52

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page