Skip to main content

A set of tools to integrate upstream open source projects into Fedora operating system.

Project description

Build Status

Packit

Elevator pitch

Packit is a CLI tool that helps developers auto-package upstream projects into Fedora operating system. You can use packit to continously build your upstream project in Fedora. With packit you can create SRPMs, open pull requests in dist-git, submit koji builds and even create bodhi updates, effectively replacing the whole Fedora packaging workflow.

Plan and current status

We are working on two things now:

  1. Packit as a tool - a standalone CLI tool which you can install from Fedora repositories and use easily.
  2. Packit service - A service offering built on top of packit tool. Our expectation is that you would add packit service into your Github repository and it would start handling things automatically: opening pull requests on dist-git, building packages, creating updates, ...

For the run-down of the planned work, please see the task-list below.

  • E2E workflow for getting upstream releases into Fedora using packit CLI.
    • Bring new upstream releases into Fedora rawhide as dist-git pull requests. (propose-update command included in 0.1.0 release)
    • Build the change once it's merged. #137
    • Send new downstream changes back to upstream. (so the spec files are in sync) #145
    • Packit can create bodhi updates. #139
    • Ability to propose updates also to stable releases of Fedora.
    • Create SRPMs from the upstream repository
    • Build RPMs in COPR and integrate the results into Github.
  • source-git
    • Packit can create a SRPM from a source-git repo.
    • You can release to rawhide from source-git using packit.
    • Packit can create a source-git repository.
    • Packit helps developers with their source-git repositories.
  • Packit as a service
    • Packit reacts to Github webhooks.
    • Have a Github app for packit.
      • Github app is on Marketplace.
    • Packit service is deployed and usable by anyone.

Workflows covered by packit

This list contains workflows covered by packit tool and links to the documentation.

Configuration

Configuration file for packit is described here.

TL;DR

specfile_path: packit.spec
synced_files:
  - packit.spec
upstream_package_name: packitos
downstream_package_name: packit

User configuration file

User configuration file for packit is described here.

Requirements

Packit is written in python 3 and is supported only on 3.6 and later.

When packit interacts with dist-git, it uses fedpkg, we suggest installing it:

sudo dnf install -y fedpkg

Installation

On Fedora:

$ dnf install packit

You can also use our packit-releases Copr repository (contains also released versions of OGR):

$ dnf copr enable packit/packit-releases
$ dnf install packit

Or from PyPI:

$ pip3 install --user packitos

(packit project on PyPI is NOT this packit project)

You can also install packit from master branch, if you are brave enough:

You can use our packit-master Copr repository (contains master version of OGR):

$ dnf copr enable packit/packit-master
$ dnf install packit

Or

$ pip3 install --user git+https://github.com/packit/packit.git

Run from git directly:

You don't need need to install packit to try it out. You can run it directly from git (if you have all the dependencies installed):

$ python3 -m packit.cli.packit_base --help
Usage: packit_base.py [OPTIONS] COMMAND [ARGS]...

Options:
  -d, --debug
  -h, --help         Show this message and exit.
...

Who is interested

  • Identity team (@pvoborni)
  • Plumbers - Source Git (@msekletar @lnykryn)
  • shells (@siteshwar)
  • python-operator-courier (Ralph Bean)
  • @thrix
  • youtube-dl (Till Mass)
  • greenboot (@LorbusChris)
  • ABRT
  • OSBS (atomic-reactor, osbs-client, koji-containerbuild) (@cverna)
  • CoreOS (starting with rpm-ostree, ignition, and ostree) (@jlebon)
  • cockpit (@martinpitt)
  • iptables (@jsynacek)

For the up to date list of projects which are using packit, click here.

Logo design

Created by Marián Mrva - @surfer19

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

packitos-0.16.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

packitos-0.16.0-py3-none-any.whl (120.4 kB view details)

Uploaded Python 3

File details

Details for the file packitos-0.16.0.tar.gz.

File metadata

  • Download URL: packitos-0.16.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for packitos-0.16.0.tar.gz
Algorithm Hash digest
SHA256 8207b75601df7d7ff2e083b0696f4ecd2fc23aff6209387c5dc04bbac9f580cf
MD5 e6e6f752455da1e0fd174cf431552202
BLAKE2b-256 26784dbdf8ed165a9213261c6b58c50b9573f79b89001f4804465567546dc28e

See more details on using hashes here.

File details

Details for the file packitos-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: packitos-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 120.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for packitos-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e065bf6b70f6cb42ed3015a402271bb310421796a3f996a7d705211ead50d92
MD5 27881af991e2c73fd3374bb4d1213515
BLAKE2b-256 24ec9c3c23eeeec869b623127321c848a05314ed341e6ed6381334668a336e97

See more details on using hashes here.

Supported by

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