pkgcore-based QA utility for ebuild repos
Project description
pkgcheck
Dependencies
pkgcheck is developed alongside pkgcore and snakeoil. Running pkgcheck from git will often require both pkgcore and snakeoil from git as well.
For releases, see the required runtime dependencies.
There are also several optional runtime dependencies that add or extend check support in various ways if found on the host system including the following:
git: supports historical queries for git-based repos and commit-related checks
requests: supports various network-related checks
Gentoo-PerlMod-Version: supports Perl package version checks
tree-sitter-bash: used in checks that inspect the CST of ebuilds and eclasess. Must be language version >= 14.
Installing
Installing latest pypi release:
pip install pkgcheck
Installing from git:
pip install https://github.com/pkgcore/pkgcheck/archive/master.tar.gz
Installing from a tarball:
python setup.py install
Usage
Most users will use pkgcheck on the command line via pkgcheck scan to target ebuild repos. See the docs or the man page for more information on running pkgcheck.
It’s also possible to run pkgcheck natively from python. For example, to output the results for a given ebuild repo:
from pkgcheck import scan
for result in scan(['/path/to/ebuild/repo']):
print(result)
This allows third party tools written in python to leverage pkgcheck’s scanning functionality for purposes such as CI or VCS commit support.
Tests
A standalone test runner is integrated in setup.py; to run, just execute:
python setup.py test
In addition, a tox config is provided so the testsuite can be run in a virtualenv setup against all supported python versions. To run tests for all environments just execute tox in the root directory of a repo or unpacked tarball. Otherwise, for a specific python version execute something similar to the following:
tox -e py39
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
Built Distributions
Hashes for pkgcheck-0.10.26-py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9ac0aa5630f70b7e143e8e28dc1979d3bfc69eb08fd894015231d9d696164f |
|
MD5 | a70f1aa1472051e1e9d57ce0866c9349 |
|
BLAKE2b-256 | b2382ab8fc4b104b0793eca4ced912fd5c4567f7c0692d3e424f771f6144f9ed |
Hashes for pkgcheck-0.10.26-py3-none-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e557588ee36f92f2e31481ead9107c30929a7591c90346e83aefa5c2e5a73b2f |
|
MD5 | 1a96603aca974e6dfb4a0d8a2c45d43b |
|
BLAKE2b-256 | 79c071e40b93f7421c7263533075ebddf7be411494fc9818485f248b6e49cec5 |
Hashes for pkgcheck-0.10.26-py3-none-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70508163422d386bfb92bcd8264b18cf2b03f80c1b50da58660911925ecb41d2 |
|
MD5 | 240db87164001802e2479c084f4dab47 |
|
BLAKE2b-256 | 93d5de3b305ab8fe767db7e8c01b211b7be3f90cad38e2992b7e311434fb2930 |
Hashes for pkgcheck-0.10.26-py3-none-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f5b6629d26478dee528d3a81dc88887485986396661f2ef43b14612795e38b |
|
MD5 | 55f987f55ba469738b5579e629e25497 |
|
BLAKE2b-256 | 7d258d9f7f20427e1491460409b06ae8fe64eb32d722b3ed4ee40aa48b7abbe2 |
Hashes for pkgcheck-0.10.26-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ddd484605b175ab885464e66f3863548af5ef69a9e6f19239bac9bdb92adc1 |
|
MD5 | f83fe8f682210448b106cb35d0570dcf |
|
BLAKE2b-256 | 123c9718be6577d13ab3c6c129d154f016979f6bec64630fcb99c091e15a8701 |
Hashes for pkgcheck-0.10.26-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.manylinux_2_28_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab033a6af27c34e078b1903aebc8d1c407f241b65ed5d4f944feb13c9cfeb95 |
|
MD5 | 147655bb53c92a901b2e5c54f5c76121 |
|
BLAKE2b-256 | efeb626f68a16ba271d6adfd373783c29d49f004aed449e935ae615b37714841 |
Hashes for pkgcheck-0.10.26-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.manylinux_2_28_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2580611df95bcf84ff030c35e958bd717e3c58dc1a7b33e98f76552b83220e2 |
|
MD5 | 2137bfaa459c2cb9dbe10830d690b343 |
|
BLAKE2b-256 | 8094277c95ce91022c9180bf08b40d2fe3ee8ed3408101bc040759500bdd7155 |
Hashes for pkgcheck-0.10.26-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1bd15d3375dfe012447cc095f28d431c3849f9652ccb504555b3c04cc41b15 |
|
MD5 | c91adb7bc4506dbbfa402cb94295d5ab |
|
BLAKE2b-256 | 1d3714d5bf864ad70c28d2c8f219909353a9d02ea3014f57fd9eacf9142d324b |