GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - archlinux/pyalpm: Python 3 bindings for libalpm (read-only mirror)

BranchesTags
Open more actions menu

Latest commit

 

History

548 Commits
548 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
pycman
pycman
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
AUTHORS
AUTHORS
 
 
INSTALL
INSTALL
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
NEWS
NEWS
 
 
PKGBUILD
PKGBUILD
 
 
README.md
README.md
 
 
TODO
TODO
 
 
meson.build
meson.build
 
 
meson.options
meson.options
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

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

  • meson

  • meson-python

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

Building

Building is as easy as running:

meson setup build
meson compile -C build

Building the docs:

meson compile -C build doc

Testing

Required test dependency:

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

Unit tests can be run with:

meson test -C build

Coverage for the CPython code can be generated as following:

meson setup build --reconfigure -Dcoverage=true
meson compile -C build
meson test -C build
ninja coverage -C build

Releasing

  1. Bump version in meson.build
  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

About

Python 3 bindings for libalpm (read-only mirror)

gitlab.archlinux.org/archlinux/pyalpm

Topics

archlinuxpacmanpython

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

60 stars

Watchers

5 watching

Forks

15 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.