Skip to main content

Tool to update ebuilds.

Project description

livecheck

QA Tests Coverage Status Documentation Status PyPI - Version GitHub tag (with filter) GitHub GitHub commits since latest release (by SemVer including pre-releases)

Tool for overlays to update ebuilds. Inspired by the MacPorts port subcommand of the same name.

Installation

On Gentoo, add my overlay and install:

eselect overlay enable tatsh-overlay
emerge --sync
emerge livecheck

Command line usage

Usage: livecheck [OPTIONS] [PACKAGE_NAMES]...

Options:
  -a, --auto-update            Rename and modify ebuilds.
  -d, --debug                  Enable debug logging.
  -e, --exclude TEXT           Exclude package(s) from updates.
  -g, --git                    Use git and pkgdev to make changes.
  -k, --keep-old               Keep old ebuild versions.
  -p, --progress               Enable progress logging.
  -W, --working-dir DIRECTORY  Working directory. Should be a port tree root.
  --help                       Show this message and exit.

Heuristic update detection

This package can do automated lookups based on commonly used hosts. Currently:

  • GitHub archives
  • GitHub commit hashes
  • GitHub releases
  • JetBrains products
  • PyPI

This works as long as the version system is usable with Portage's version comparison function. For anything else, see Package configuration.

Package configuration

For packages that will not work with currently heuristic checking, a configuration file named livecheck.json can be placed in the directory alongside the ebuild.

Configuration keys

  • branch - The GitHub branch name to use for commits.
  • keep_old - boolean - Keep old ebuild versions.
  • no_auto_update - boolean - Do not allow auto-updating of this package.
  • regex - The regular expression to use.
  • semver - When set to false, do not allow detection of semantic versioning.
  • transformation_function - string - Function to use to transform the version string. Currently only dotize is supported. Others are for internal use.
  • type - none, regex, or checksum.
  • url - URL of the document to run regular expressions against.
  • use_vercmp - boolean - if vercmp from Portage should be used. Default: true.

Development use

Set up PYTHONPATH

As root, set the environment variable PYTHONPATH to include where the livecheck module is located. Use python -m livecheck instead of livecheck to execute commands.

With a virtualenv

Run poetry install --all-extras --with=dev,docs,tests to set up a virtualenv.

Fully copy /etc/portage to the root of your virtualenv. Then you must fix make.profile. Also consider making changes in repos.conf if necessary.

Example:

poetry shell
cd "${VIRTUAL_ENV}/etc"
cp -R /etc/portage .
cd portage
ln -sf "$(readlink -f /etc/portage/make.profile)" make.profile

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

livecheck-0.0.13.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

livecheck-0.0.13-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file livecheck-0.0.13.tar.gz.

File metadata

  • Download URL: livecheck-0.0.13.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.6-gentoo-limelight

File hashes

Hashes for livecheck-0.0.13.tar.gz
Algorithm Hash digest
SHA256 4fbce177d3e184bbc6d5e0eeb791500b49cffdfb7d875435cadd345e9aa36dd5
MD5 477ee5efd333c5e60ef42fd3f96be663
BLAKE2b-256 3e30641720f8f0a87d5b6096f0b8464767222af32c3a5e8759e2e02da8b6d9da

See more details on using hashes here.

File details

Details for the file livecheck-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: livecheck-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.6-gentoo-limelight

File hashes

Hashes for livecheck-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d1a01e62c0b3cd10b255d569a220eaa97adba99129fd646f511fad85ebe5d138
MD5 2b044117c3aed530604e63f9e58b4501
BLAKE2b-256 0ac9b7e5ff80557dcf312baa8455852993aecee4d5ea6fa29a5f863948b7bd1a

See more details on using hashes here.

Supported by

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