Skip to content

Commit 9e851fb

Browse files
Expose werk as console script
The idea is to also remove the werk wrapper from zeugs_cmk and use the werk script which comes from .venv/bin. Change-Id: I1e13982500b8e0a64b6bb628442c93e66688ecc7
1 parent 075223d commit 9e851fb

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

Diff for: BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ create_venv(
179179
site_packages_extra_files = [":sitecustomize.py"],
180180
whls = [
181181
"@rrdtool_native//:rrdtool_python_wheel",
182+
"//packages/cmk-werks:wheel",
182183
] + select({
183184
"@//:gpl_repo": [],
184185
"@//:gpl+enterprise_repo": [

Diff for: CHANGES

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you want to see the changes of a specific version and maybe filter the
1111
changes in a flexible way, please check out the list of changes on our
1212
website (https://checkmk.com/werks), see the werk list in your site (click
1313
"Help" in the navigation bar, then "Change log (Werks)") or execute the
14-
"./werk list" command from the git directory of Checkmk.
14+
"scripts/run-uvenv werk list" command from the git directory of Checkmk.
1515

1616
From the git of Check_MK, you can create the ChangeLog file with the command
1717
"make `pwd`/ChangeLog".

Diff for: buildscripts/scripts/stages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ STAGES:
320320
scripts/run-uvenv python3 -m cmk.werks.utils changelog CHANGELOG precompiled.json &>> ${RESULTS}/werk_commands.txt
321321
# we don't have access to the fixup notes in ci, we might have to fetch them, or temporarily disable this check:
322322
scripts/run-uvenv python3 -m cmk.utils.werks mail . HEAD werk_mail --assume-no-notes-but=$(git log --before="$(date --date="4 weeks ago" --iso=seconds)" --format="%H" --max-count=1) &>> ${RESULTS}/werk_commands.txt
323-
scripts/run-uvenv ./werk list &>> ${RESULTS}/werk_commands.txt
323+
scripts/run-uvenv werk list &>> ${RESULTS}/werk_commands.txt
324324
TEXT_ON_SKIP: "No Werk code files changed"
325325
RESULT_CHECK_FILE_PATTERN: "results/werk_commands.txt"
326326

Diff for: packages/cmk-werks/BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ format_multirun(
7676

7777
py_wheel(
7878
name = "wheel",
79+
console_scripts = {"werk": "cmk.werks.cli:main"},
7980
distribution = "cmk-werks",
8081
strip_path_prefixes = ["packages/cmk-werks"],
8182
# TODO: Duplicated from pyproject.toml
8283
version = "1.0.0",
84+
visibility = ["//visibility:public"],
8385
deps = [":cmk-werks"],
8486
)
8587

Diff for: werk

-9
This file was deleted.

0 commit comments

Comments
 (0)