Skip to main content

pyalpm - python bindings for the libalpm library

Build Status Documentation Status

pyalpm is a C extension for Python 3 that give access to the libalpm API for package management, which is used, for example in the Arch Linux distribution.

Requirements

  • Python 3 or later

  • libalpm 13

  • python-setuptools

  • python-pkgconfig

  • python-sphinx (optional, to build the docs)

Building

Building is as easy as running make

make

Building the docs:

make -C doc html

Testing

Required test dependency:

  • python-pytest
  • gcovr (optional, generating C coverage)

Unit tests can be run with:

make test

Coverage for Python code can be generated as following:

make open-coverage

Coverage for the CPython code can be generated as following:

make open-ext-coverage

Releasing

  1. Bump version in setup.py
  2. commit
  3. git tag

Uploading to PyPI

  1. python3 setup.py sdist
  2. twine upload -s dist/* --verbose

Pacman development compatibility

The master branch tracks the most recent pacman release and thus libalpm release, the next branch follows pacman's master branch.

Building against pacman-git is as simple as:

git clone https://gitlab.archlinux.org/pacman/pacman.git
mkdir build
cd build && meson .. && ninja
PKG_CONFIG_PATH=/path/to/pacman/build/meson-uninstalled make build

Running tests against pacman-git:

LD_LIBRARY_PATH=/path/to/pacman/build/ make test

Download files

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

Source Distribution

pyalpm-0.10.12.tar.gz (52.3 kB view details)

Uploaded Source

File details

Details for the file pyalpm-0.10.12.tar.gz.

File metadata

  • Download URL: pyalpm-0.10.12.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pyalpm-0.10.12.tar.gz
Algorithm Hash digest
SHA256 8c6cb4bbba819f99fe6c2547f25a861f68905d96729caf1ea15ba6c43d4f1127
MD5 e7a8f05a2587942e9fdba0926450f444
BLAKE2b-256 fa33fb965c94a703b2f62741a52911446fe85e7effc677d54d1a8cd0033f4848

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.12 This release

1 file

0.10.6

1 file

0.10.3

0.10.2

1 file

0.9.2

1 file

0.9.0

1 file

0.8.5

1 file

0.8.4

1 file

0.8

1 file

Supported by

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