Skip to main content

A set of utilities to maintain Gentoo overlay

Project description

Description

Provides certain tools to be run on the overlay directory. See individual commands help for details.

This is a small collection of tools to help automate some tasks related to Gentoo overlay maintenance.

It can:

  • Generate a README like this.
  • Look up a package in remotes and tell if a new version is available.

Getting started

Installation

Install the project from PyPI:

$ pip install --user overlay-maintain-tools

Or from nitratesky overlay:

$ eselect repository enable nitratesky && emerge -a1 app-portage/overlay-maintain-tools

Sample usage

The overlay directory is at /srv/overlay. To generate a README with the badges, create a skeleton template (like the one in repo) and run:

$ overlay_maintain_tools --overlay-dir /srv/overlay mkreadme --skeleton-file /path/to/readme.template

To generate a report on packages versions in overlay, make sure that metadata.xml file has remotes set and run:

$ overlay_maintain_tools --overlay-dir /srv/overlay check-remote-versions

Details

Usage:

$ overlay_maintain_tools [OPTIONS] COMMAND [ARGS]...

General Options:

  • --version: Show version and exit.
  • --overlay-dir PATH: Specify location for overlay. [default: .]
  • --worker-count INTEGER RANGE: Number of workers for creating package cache. [default: 8]
  • --quiet: Suppresses output. [default: False]
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

These options can be specified for any COMMAND except for create-config which ignores these options.

Commands:

  • check-remote-versions: Prints report on the versions of packages.
  • mkreadme: Creates a README for an overlay.

Commands

overlay_maintain_tools mkreadme

Creates a README for an overlay. The generated README can utilize data on packages available in the overlay and their versions. For sample template, see the documentation.

Usage:

$ overlay_maintain_tools mkreadme [OPTIONS]

Options:

  • --skeleton-file PATH: The file containing README template. Should be inside the template directory.
  • --template-dir DIRECTORY: Template directory. Can be specified if more complex jinja2 templates will be used.
  • --output PATH: Where to save the resulting README. If not supplied - print to stdout.
  • --help: Show this message and exit.

overlay_maintain_tools check-remote-versions

Prints report on the versions of packages. Checks versions available upstream. Pulls the data from remotes specified inside tag in metadata.xml

Usage:

$ overlay_maintain_tools check-remote-versions [OPTIONS]

Options:

  • --show-updates-only: Shows only packages that have updates with links to remotes_with_new_versions.
  • --background: Suppress output of this subcommand completely. Exit code = 100 denotes that there are updates in remotes
  • --color: Enable/disable color in output
  • --help: Show this message and exit.

Contrib directory

There are shell completions for bash and zsh (generated through typer).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

overlay_maintain_tools-1.0.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

overlay_maintain_tools-1.0.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file overlay_maintain_tools-1.0.0.tar.gz.

File metadata

  • Download URL: overlay_maintain_tools-1.0.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for overlay_maintain_tools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45a5287273ae9a87caefcea7e1ddc72b4efa5a8cc59eed678123ed6322436e7e
MD5 4f865312eb2a7c614f78d6748904a5b3
BLAKE2b-256 930cedafcd5e663fe656e05ce30bd2b595e14982763000636a4beea9ab12a446

See more details on using hashes here.

File details

Details for the file overlay_maintain_tools-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: overlay_maintain_tools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for overlay_maintain_tools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38e1526ae1dc1f978db18203b2952853d203ab6ebffa0e5f8e57965eae48d009
MD5 9376e76924f923121c3587391334cb69
BLAKE2b-256 27d0ed36f84d6973b9f353cefa67699769ed33b8de2654acb36aea418b00d34c

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