From 4f1595db6d3cebb036770b5542ebbc40594be65f Mon Sep 17 00:00:00 2001 From: feelamee Date: Sun, 26 May 2024 00:38:26 +0200 Subject: [PATCH 1/2] donate-cpu.py: added requirements file --- tools/donate-cpu-requirements.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/donate-cpu-requirements.txt diff --git a/tools/donate-cpu-requirements.txt b/tools/donate-cpu-requirements.txt new file mode 100644 index 00000000000..1d1077372cf --- /dev/null +++ b/tools/donate-cpu-requirements.txt @@ -0,0 +1,2 @@ +psutil +packaging From 6b469564b117f1248c1e347608e19bc12aef9967 Mon Sep 17 00:00:00 2001 From: feelamee Date: Sun, 26 May 2024 00:45:52 +0200 Subject: [PATCH 2/2] readme.md: update using donate cpu guide --- readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 45c616ede5d..a653810a04c 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,13 @@ A manual is available [online](https://cppcheck.sourceforge.io/manual.pdf). Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core or as many as you like). It is simple: 1. Download (and extract) Cppcheck source code. - 2. Run script: `python cppcheck/tools/donate-cpu.py`. + 2. Run: + ``` + cd cppcheck/ + virtualenv .env + .env/bin/pip install -r tools/donate-cpu-requirements.txt + .env/bin/python tools/donate-cpu.py + ``` The script will analyse debian source code and upload the results to a cppcheck server. We need these results both to improve Cppcheck and to detect regressions.