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://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
Metadata
Release files for pyalpm 0.10.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyalpm-0.10.12.tar.gz | 52.3 kB | Without provenance | Details for pyalpm-0.10.12.tar.gz |
Release files / pyalpm-0.10.12.tar.gz
| Download URL | pyalpm-0.10.12.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c6cb4bbba819f99fe6c2547f25a861f68905d96729caf1ea15ba6c43d4f1127
|
|
BLAKE2b-256 checksum How to use checksums |
fa33fb965c94a703b2f62741a52911446fe85e7effc677d54d1a8cd0033f4848
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for pyalpm 0.10.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.