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

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.8.tar.gz (460.3 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.8-cp39-cp39-manylinux_2_24_x86_64.whl (510.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

pkgcheck-0.10.8-cp38-cp38-manylinux_2_24_x86_64.whl (287.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

File details

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

File metadata

  • Download URL: pkgcheck-0.10.8.tar.gz
  • Upload date:
  • Size: 460.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pkgcheck-0.10.8.tar.gz
Algorithm Hash digest
SHA256 eb54b9c6edb12b50ae62e7001d399544c561b37c2b6a88d572833dec7e9b178c
MD5 6aab54dfeac697f4d55b42b0e306b2ed
BLAKE2b-256 0183bcabdecb6a3166668d955854067a355df855622ddf7e4e8c31cc5757fcef

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.8-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pkgcheck-0.10.8-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 510.0 kB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pkgcheck-0.10.8-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 63a9768d63282452630dc4522bb7a94a21b18ddc4f15ff775733d04a930441fd
MD5 c31b6038738cda99cc6fb22f9c4e565f
BLAKE2b-256 54cd035e8bc6a682546f95ac7744a2c36a66dea1ebc2a421aa465aa600860d13

See more details on using hashes here.

File details

Details for the file pkgcheck-0.10.8-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pkgcheck-0.10.8-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 287.5 kB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pkgcheck-0.10.8-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 01a53cb5bf3e47b2b2d1b0fb71f1a596169cadd1f3d2f2bee2b9f72f917af291
MD5 73ed4df0789b453ea844fd32f48de87c
BLAKE2b-256 c4345e4187de595a6d5ebdec7dfe3033732d3b24c70d0d43d87e1944f88ee277

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