Skip to main content

pkgcore-based QA utility for ebuild repos

Project description

pypi test coverage

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 >= 13.

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

pkgcheck-0.10.20.tar.gz (549.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pkgcheck-0.10.20-py3-none-musllinux_1_1_x86_64.whl (861.3 kB view details)

Uploaded Python 3musllinux: musl 1.1+ x86-64

pkgcheck-0.10.20-py3-none-musllinux_1_1_s390x.whl (926.9 kB view details)

Uploaded Python 3musllinux: musl 1.1+ s390x

pkgcheck-0.10.20-py3-none-musllinux_1_1_ppc64le.whl (893.0 kB view details)

Uploaded Python 3musllinux: musl 1.1+ ppc64le

pkgcheck-0.10.20-py3-none-musllinux_1_1_aarch64.whl (848.4 kB view details)

Uploaded Python 3musllinux: musl 1.1+ ARM64

pkgcheck-0.10.20-py3-none-manylinux_2_24_x86_64.whl (308.0 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64

pkgcheck-0.10.20-py3-none-manylinux_2_24_s390x.whl (316.7 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ s390x

pkgcheck-0.10.20-py3-none-manylinux_2_24_ppc64le.whl (312.6 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ ppc64le

pkgcheck-0.10.20-py3-none-manylinux_2_24_aarch64.whl (309.5 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ ARM64

File details

Details for the file pkgcheck-0.10.20.tar.gz.

File metadata

  • Download URL: pkgcheck-0.10.20.tar.gz
  • Upload date:
  • Size: 549.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pkgcheck-0.10.20.tar.gz
Algorithm Hash digest
SHA256 368003f99c7f73e556da121fddd01bdf3338bb643016606a4c7014ebae6a6a94
MD5 03e7ef327aa3118ba11d682edd2b8915
BLAKE2b-256 2a3ef595150793fa61965376f56b7155ed4b5b5464741b6b68df96a77bef8a05

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 7e7fabcffc07f7e31d28e593f3ec6dfb18ab9618f3249145ca0258eb1e51ad4f
MD5 b99d28bf3e06cd3221b5f1d4002af6b8
BLAKE2b-256 db7b746e288c343203a98fa381e4ab7955c96eb20a0992cf8b7b986c615efba7

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-musllinux_1_1_s390x.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-musllinux_1_1_s390x.whl
Algorithm Hash digest
SHA256 f398d0e9dbae0a6fee3bd7ec64cb11170c5a82b9a20991884461f9c9809effa0
MD5 34cb866036b5b3d024eba1001f563253
BLAKE2b-256 dda7687dad6007ea2e1009182e735c21e49b421f56bd8fe060458e634a2c644d

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-musllinux_1_1_ppc64le.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-musllinux_1_1_ppc64le.whl
Algorithm Hash digest
SHA256 59d5f8cc943da885fa6f3e7bdbad7b420d1dc5fd3b879a9c285b6faeae460bf1
MD5 94be4ce310723b6237b01259e42bf896
BLAKE2b-256 6cc2f8f6936c6ace3b4b638d4248f10d04fd196e79e8cf8f1e3c87ac10232269

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 e1115b035ab7cf7423b82809e3d4daba36028c95acbb3bded8a097cf97f1ef9a
MD5 527ef399fff8d1617fffaefce7492d3c
BLAKE2b-256 77290492ff5d9357725555f17aa30557c8623df212f161297d7a68dfacb60e0e

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 a4dda2b2bd3f20a8978cf9a5fbc324543b774a498c6da32b39a1cb7d4767ea67
MD5 cc00a7f74826a4a429ad27991efc1c0b
BLAKE2b-256 9d87b4d80eb2935ee3102084ed4378ba8a34f6348e24d0b8cea4f3835d7d17df

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-manylinux_2_24_s390x.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-manylinux_2_24_s390x.whl
Algorithm Hash digest
SHA256 dffefe868bd9a627c3b9ba1446838385bd714db042f397893e9f371781d976ff
MD5 f70849f8aa79739637333b0b995ac9a1
BLAKE2b-256 a3aa6da06d61a5732067ed0e20b650070ba56d010b048ab94871859affd2e410

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-manylinux_2_24_ppc64le.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-manylinux_2_24_ppc64le.whl
Algorithm Hash digest
SHA256 ec549893fd70de1b76a1b13cd966fe1b9d3d772858af8fc69267ea253eceb3a0
MD5 1277487f69eee027ee66aa1a83cfee8e
BLAKE2b-256 805e1bce1d78b8b1bf3a0c9fd77b7d365459ecdc9cd9bbd633ddbf5b5f7aa995

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.20-py3-none-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for pkgcheck-0.10.20-py3-none-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 002fdbc27fc880830aac58d3a17bfd5f7de3bf247a1f46944f3848166383b346
MD5 b51b4d63507d2612da80a9bc107cdeca
BLAKE2b-256 533998256523fb3c1033131379e4953714332108838b03e68dcb5ff5ddaaa65d

See more details on using hashes here.

Supported by

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