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.1.tar.gz (454.1 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.1-cp39-cp39-manylinux_2_24_x86_64.whl (505.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

pkgcheck-0.10.1-cp38-cp38-manylinux_2_24_x86_64.whl (505.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

File details

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

File metadata

  • Download URL: pkgcheck-0.10.1.tar.gz
  • Upload date:
  • Size: 454.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for pkgcheck-0.10.1.tar.gz
Algorithm Hash digest
SHA256 5b7d05a30ca5061006e73bfdab3cd5fdb5c596f618997886a516829af3e9fa77
MD5 d300cb609dbc86ec31fad43138c832b5
BLAKE2b-256 dfe177942ca92f5be5417d57e116b5f087726f1b220f7e90546a93518211ea5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pkgcheck-0.10.1-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 505.8 kB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for pkgcheck-0.10.1-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 a17dc826c2acc9f9eb4d45c575698a33562aef6a9110868e4957e40dc7b4c623
MD5 7505fc922d93650e294996c5111a7d33
BLAKE2b-256 9e52734ef524787ccf536fbdf55f24da62a9edaae2ce40c9224fd22236f154bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pkgcheck-0.10.1-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 505.8 kB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for pkgcheck-0.10.1-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 6f1497b63f5fa9245ea7bfd477dac4e985786919e1454774021204fc2ba904ca
MD5 32a140622d1eefdba7a2d4840e22a9c7
BLAKE2b-256 54a9fbd42aaf39c8f128ff9e4b923207a077017c581ed6117edc0578b19001e7

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