Tool to update ebuilds.
Project description
livecheck
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.
-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
type
-none
,regex
, orchecksum
branch
- The GitHub branch name to use for commitsno_auto_update
- boolean - Do not allow auto-updating of this packageregex
- The regular expression to usetransformation_function
- string - Function to use to transform the version string. Currently onlydotize
is supported. Others are for internal use.url
- URL of the document to run regular expressions againstuse_vercmp
- boolean - ifvercmp
from Portage should be used. Default:true
.
Development use
Run poetry install --with=dev --with=docs --with=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
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
Built Distribution
Hashes for portage_livecheck-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16839c4a27cd3d5067a169f25eb249cbbef025cdf308d0cda4a14d074dd044c8 |
|
MD5 | ffda99c4c8b10f5818a44398a6336362 |
|
BLAKE2b-256 | c31fd5987c8560b20a02d23c4c1145abd1f342c94a9bc443211b0e94a547eb03 |