Skip to main content

A python library and runtime script for managing RPMpackage sources in a git repository

Project description

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.6, 2.7, 3.5, 3.6 and 3.7.

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 are Python 2 and 3 package for Fedora and only Python 2 package in EPEL.

Install in a Fedora system:

sudo dnf install python2-rpkg

If Python 3 package is needed, install python3-rpkg.

Install in EL6 or EL7:

sudo yum install python2-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.6, 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 python26 python37 detox python2-virtualenv

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpkg-1.59.tar.gz (165.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rpkg-1.59-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

rpkg-1.59-py2-none-any.whl (85.7 kB view details)

Uploaded Python 2

File details

Details for the file rpkg-1.59.tar.gz.

File metadata

  • Download URL: rpkg-1.59.tar.gz
  • Upload date:
  • Size: 165.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for rpkg-1.59.tar.gz
Algorithm Hash digest
SHA256 67bd7020ec7061f2511172bd9095400427879cbf978d49c4e9e6f4e092b971c1
MD5 83e1265a0a98825380e523a72f3fae8d
BLAKE2b-256 517ecfd66a8b5edfa9303e7263794f0552432e93285e7d364d4898c0f952c9ff

See more details on using hashes here.

File details

Details for the file rpkg-1.59-py3-none-any.whl.

File metadata

  • Download URL: rpkg-1.59-py3-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for rpkg-1.59-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d5e829bd7a82ff0d2369b9862c2ec7635842e045fb6f2242c6f7ce9ac6a0a5
MD5 206520aef746e3f5e1ffdd8a9dd25631
BLAKE2b-256 b2fc655f052b616e238b27937333885481c669b54837df396f7197a3b1f1a85b

See more details on using hashes here.

File details

Details for the file rpkg-1.59-py2-none-any.whl.

File metadata

  • Download URL: rpkg-1.59-py2-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for rpkg-1.59-py2-none-any.whl
Algorithm Hash digest
SHA256 b45656e052d55c3fd4cb104097404e565f13e8ea7886c2fce8125db9a60862ac
MD5 9d17a0e94bfb90ed7a6d8b02829b2c68
BLAKE2b-256 3373068650880bf542458ed72afba30b20e9d113362869a588ac57204e6fb43d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page