diff --git a/add-bugzilla-versions/README.rst b/add-bugzilla-versions/README.rst index 714ac0a..7d7ff3e 100644 --- a/add-bugzilla-versions/README.rst +++ b/add-bugzilla-versions/README.rst @@ -1,38 +1,32 @@ Adds new project versions to the KDE Bugtracking System. The script does the following: #. For each project listed in :code:`add-bugzilla-versions/../modules.git`. - #. Use CMake to extract the value of the - :code:`BUGZILLA_APPLICATION_VERSION` CMake variable. + #. Use CMake to determine the project version, as defined by CMake’s project_ + command. - The variable must be a cached string variable. For example:: - - set(BUGZILLA_APPLICATION_VERSION "2.3.4" CACHE STRING "" FORCE) + .. _project: https://cmake.org/cmake/help/latest/command/project.html#command:project If the variable is not found, the project is skipped. #. Add the variable to the target project in the KDE Bugtracking System. To run the script: #. Create, enter and prepare a Python virtual environment:: python3 -m venv venv . venv/bin/activate pip install -r requirements.txt - Alternatively, you may install the Python modules listed in\ - :code:`requirements.txt` globally in your system, using either your - package manager or pip, and run the script outside a virtual environment. - #. Run the script:: python3 add-versions.py \ -s \ -e \ -p .. note:: If you skip a parameter, the script prompts you for it on the command line.