forked from pool/obs-service-replace_using_package_version
Dan Čermák
7762b681ec
- Update to version 1667988064.d72b7ba: * Bump version: 0.0.3 → 0.0.4 * Update obs-service-replace_using_package_version.spec * Adapt spec to the current project setup * Bump actions/setup-python from 4.1.0 to 4.3.0 * Bump actions/setup-python from 3 to 4.1.0 * Bump pytest-cov from 3.0.0 to 4.0.0 * Bump flake8 from 4.0.1 to 5.0.1 * Bump tox from 3.25.0 to 3.25.1 * Bump tox from 3.24.5 to 3.25.0 * Bump actions/cache from 2 to 3 * Bump actions/checkout from 2 to 3 * Bump actions/setup-python from 2 to 3 * Bump pytest from 7.0.0 to 7.0.1 * Bump pytest from 6.2.5 to 7.0.0 * Switch from custom run_command to using check_output * Remove additional space from pyproject.toml * Replace travis CI badge with GitHub Actions badge * Make the file parameter default to the build recipe * Add integration tests using pytest_container * Bump coverage from 6.3 to 6.3.1 * Switch from travis-ci to github actions * Remove trailing whitespace * Switch to poetry instead of using setup.py * Correct spelling & gramar in .service * Add missing closing description element to .service * Follow the python package naming conventions OBS-URL: https://build.opensuse.org/request/show/1034808 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/obs-service-replace_using_package_version?expand=0&rev=12
34 lines
1.7 KiB
Desktop File
34 lines
1.7 KiB
Desktop File
<service name="replace_using_package_version">
|
|
<summary>Replaces a regex with the version value of a package</summary>
|
|
<description>This service replaces a given regex with the version value of
|
|
a given package. Can be used to align the version of you package or image
|
|
to the version of another package.</description>
|
|
<parameter name="file">
|
|
<description>This is the file where the change will be applied</description>
|
|
</parameter>
|
|
<parameter name="regex">
|
|
<description>This is the regular expression used to parse the input file.
|
|
It uses python re module syntax</description>
|
|
</parameter>
|
|
<parameter name="package">
|
|
<description>This is the package which version will be used as a replacement
|
|
for the regex. It must be included in the build as a dependency.</description>
|
|
</parameter>
|
|
<parameter name="parse-version">
|
|
<description>Parses the package version string to match the
|
|
major.minor.patch format. Then any found match is used as the replacement
|
|
string. It can be set to three different values: major, minor or patch.
|
|
If set to major only the first numeric value will be used as the
|
|
replacement (e.g. if version is 3.1.3 only 3 will be used). If set to minor
|
|
only the first and second numeric values separated by a dot will be used
|
|
(e.g. if version is 3.1~git_r125 only 3.1 will be used). If set to patch
|
|
it will reach up to the first three numeric values separated with a dots.</description>
|
|
</parameter>
|
|
<parameter name="replacement">
|
|
<description>This parameter is an alternative to the package parameter,
|
|
instead to look for a package version it will just use the given string
|
|
for the regex replacement. It is mostly used to debug or test the
|
|
regex.</description>
|
|
</parameter>
|
|
</service>
|