libalpm bindings for Python 3
Project description
pyalpm - python bindings for the libalpm library
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
- Bump version in setup.py
- commit
- git tag
Uploading to PyPI
- python3 setup.py sdist
- 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://git.archlinux.org/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
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
File details
Details for the file pyalpm-0.10.2.tar.gz
.
File metadata
- Download URL: pyalpm-0.10.2.tar.gz
- Upload date:
- Size: 51.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924801b9348d8131e29c937d08737e020418a5fea5d86b1be02d6e72ee48d9cf |
|
MD5 | 52038b1e920f0a3d2adaead4cf75cbab |
|
BLAKE2b-256 | 9081a968562bf51a3c1b01f1f2951976765d06f296afc840fe769a60dc04c6b3 |