Skip to main content

gpyutils

gpy-depgraph

gpy-depgraph is an auxiliary tool to convert plain package lists into dependency graphs. It can be used to ease maintenance tasks by ordering them per-dependency.

The package list is either read from files (specified as parameters) or from stdin. The default output format is a .dot graph (suitable for further processing using GraphViz).

The operation is done using supplied package lists and a specified repository (to obtain dependencies). All packages must be available in the repository.

gpy-drop-dead-impls

gpy-drop-dead-impls scans the tree for -r1 packages that are listing obsolete Python implementations in PYTHON_COMPAT. The script can optionally automatically remove those implementations from ebuilds.

The output is a plain list of packages. If --fix is used, script can also modify ebuilds.

The scan can be done per-repository or per-package.

gpy-impl

gpy-impl is a simple PYTHON_COMPAT mangler. It is based on the interface exposed by ekeyword.

It takes an ebuild path followed by one or more Python implementations, optionally prefixed using ‘-’, ‘%’ or ‘+’. The two former prefixes cause it to remove the specific implementation from PYTHON_COMPAT, otherwise the implementation is added to PYTHON_COMPAT. The script outputs a ‘diff’ of PYTHON_COMPAT afterwards.

The script operates on the specified file only.

gpy-showimpls

gpy-showimpls lists the implementations supported by various versions of a package in a table. It is similar to eshowkw in that regard.

The output for each package slot consists of the package slot name followed by a table listing supported implementations. Supported implementations are color-coded for their importance. Unsupported are simply not listed.

gpy-showimpls prints three extra columns that annotate the ebuild with potentially useful extra information.

The first column explains the package keywords state. No symbol means no keywords (live ebuild likely), ‘~’ means no stable keywords and ‘S’ means that the package has at least one stable keyword.

The second column explains the support for multiple implementations. No symbol means that the package supports multiple implementations (likewise python-r1), ‘s’ denotes that only one implementation can be chosen (likewise python-single-r1) and ‘a’ denotes that any of supported implementations will be used (likewise python-any-r1).

The third column denotes the eclass suite used. No symbol means that python-r1 eclass is used, asterisk means that the ‘python.eclass’ is used. In this case, all untested implementations are listed as enabled and some of them may not actually work.

The scan can be done per-package only.

gpy-upgrade-impl

gpy-upgrade-impl is intended to help when considering ‘upgrading’ the default Python implementations. Given two implementations (the old one and the new one), it scans the tree for packages that support the old implementation but do not support the new one.

For example, gpy-upgrade-impl python{3_2,3_3} will list all packages that support Python 3.2 but do not work with Python 3.3.

Optionally, it may automatically add the new implementation to PYTHON_COMPAT (-r1 packages only). Please remember to read/test the ebuild afterwards since the implementation may have been omitted intentionally and the Python package may require patching.

The output is a plain list of packages. If --fix is used, script can also modify ebuilds.

The scan can be done per-repository or per-package.

gpy-verify-deps

gpy-verify-deps scans installed packages for missing dependencies. It compares the package’s RDEPEND/PDEPEND against the requirement list provided in package’s metadata.

Note that the results need to be taken with a grain of salt, as the tool heavily relies on upstream providing the correct metadata. Sometimes the right solution will be to fix (or patch locally) the package’s dependencies rather than add an unnecessary dependency to the ebuild.

Metadata

Release files for gpyutils 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpyutils 0.16.0
File Size Uploaded Provenance Actions
gpyutils-0.16.0.tar.gz 30.9 kB Without provenance Details for gpyutils-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpyutils 0.16.0
File Interpreter ABI Platform Actions
gpyutils-0.16.0-py3-none-any.whl Python 3 none any Details for gpyutils-0.16.0-py3-none-any.whl

Total release size: 68.7 kB

Release files / gpyutils-0.16.0.tar.gz

Download URL gpyutils-0.16.0.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f9ab41d25f18e59f1c503700da3ba0c9276d1fdd7142ffa2ba347b5f73aee4e3
BLAKE2b-256 checksum
How to use checksums
0e2fa4ad68cd0dcaa52e963a59426f089cc7f135684c2377271e5bb4410f89ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / gpyutils-0.16.0-py3-none-any.whl

Download URL gpyutils-0.16.0-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c304dbc4c6536c06110a65856e641090fa10b424ed6eb705bca3a166002b97ad
BLAKE2b-256 checksum
How to use checksums
61d37fb9b5becb0efd0839d62a24fcfd215c82cb1b9afb731a12436f90f05100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for gpyutils 0.16.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page