Re: [PATCH v2] patman: Add a 'keep_change_id' setting

2023-11-02 Thread Maxim Cournoyer
Hi Simon, Simon Glass writes: > On Thu, 12 Oct 2023 at 20:06, Maxim Cournoyer > wrote: >> >> A Change-Id can be useful for traceability purposes, and some projects >> may wish to have them preserved. This change makes it configurable >> via a new 'keep_chan

[PATCH v2] patman: Add a 'keep_change_id' setting

2023-10-12 Thread Maxim Cournoyer
A Change-Id can be useful for traceability purposes, and some projects may wish to have them preserved. This change makes it configurable via a new 'keep_change_id' setting. Signed-off-by: Maxim Cournoyer --- Changes in v2: - Add missing argument to send parser - Correctly

[PATCH] patman: Add a 'keep_change_id' setting

2023-10-12 Thread Maxim Cournoyer
A Change-Id can be useful for traceability purposes, and some projects may wish to have them preserved. This change makes it configurable via a new 'keep_change_id' setting. Signed-off-by: Maxim Cournoyer --- tools/patman/control.py | 9 +++-- tools/patman/patchstream.p

[PATCH] tools: Fix patman launcher script.

2023-08-31 Thread Maxim Cournoyer
There is no "run_patman" procedure in patman's __main__.py file, which would cause the following error at execution: "AttributeError: module 'patman.__main__' has no attribute 'run_patman'" Signed-off-by: Maxim Cournoyer --- tools/patman/pypro

[PATCH 2/2] tools: Fix package discovery in pyproject.toml of u_boot_pylib.

2023-07-07 Thread Maxim Cournoyer
When building from source, setuptools would complain about not finding package via its auto-discovery mechanism. Manually specify how to locate the files, relative to the package's directory. * tools/u_boot_pylib/pyproject.toml: New tool.setuptools.packages.find section. Signed-off-by:

[PATCH 1/2] tools: Fix README file in pyproject.toml of u_boot_pylib.

2023-07-07 Thread Maxim Cournoyer
* tools/u_boot_pylib/pyproject.toml (readme): Replace README.md with README.rst. Signed-off-by: Maxim Cournoyer --- tools/u_boot_pylib/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/u_boot_pylib/pyproject.toml b/tools/u_boot_pylib/pyproject.toml index

[PATCH v5 03/13] gnu: u-boot: Reduce the number of native inputs.

2023-01-15 Thread Maxim Cournoyer
The extra python inputs are only needed for running the u-boot-test-tools test suite. This lowers the requirements for cross-building the various u-boot packages. * gnu/packages/bootloaders.scm (u-boot) [native-inputs]: Delete bc. Move python-coverage, python-pycryptodomex and python-pytest to...

Re: [PATCH v3 3/8] patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'

2023-01-13 Thread Maxim Cournoyer
Hi Sjoerd, - Original Message - > From: "Sjoerd Simons" > To: "Simon Glass" , "Maxim Cournoyer" > > Cc: "Maxim Cournoyer" , "U-Boot Mailing > List" > Sent: Friday, January 13, 2023 5:19:39 AM > Subject: Re: [PATCH

[PATCH 2/2] patman: symlink top level .checkpatch.conf

2023-01-13 Thread Maxim Cournoyer
This makes it possible to run the patman test suite simply by invoking 'pytest' from the patman sub-directory: $ cd tools/patman $ pytest Otherwise, the top level .checkpatch.conf would be ignored and multiple test_checkpatch.py tests would fail. Signed-off-by: Maxim

[PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"

2023-01-13 Thread Maxim Cournoyer
This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because it broke usage of patman on Linux, whose check script doesn't know about '--strict' or '--u-boot'. Reported-by: Sjoerd Simons Signed-off-by: Maxim Cournoyer --- tools/patman/checkpatch.py | 2 +- 1

Re: patman: ModuleNotFoundError

2023-01-12 Thread Maxim Cournoyer
Hi, - Original Message - > From: "Tony Dinh" > To: "Simon Glass" , "Maxim Cournoyer" > , "U-Boot Mailing List" > > Cc: "Stefan Roese" > Sent: Thursday, January 12, 2023 7:07:20 PM > Subject: patman: ModuleNotFou

Re: [PATCH v5 6/6] patman: additionally honor a local .patman config file

2022-12-20 Thread Maxim Cournoyer
Hi Simon, Simon Glass writes: > On Mon, 19 Dec 2022 at 22:38, Maxim Cournoyer > wrote: >> >> This enables versioning a project specific patman configuration file. >> It also makes it possible to declare the project name, which is not a >> useful thing to do in

[PATCH v5 6/6] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
This enables versioning a project specific patman configuration file. It also makes it possible to declare the project name, which is not a useful thing to do in $HOME/.patman. A new test is added, along updated documentation. Signed-off-by: Maxim Cournoyer --- Changes in v5: - Use try/finally

[PATCH v5 5/6] patman: fail early in Setup when provided config file does not exist

2022-12-19 Thread Maxim Cournoyer
Rationale: if the user explicitly provide this argument, they probably intend for it to be used. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman

[PATCH v5 4/6] patman: set the default config_fname argument value to None

2022-12-19 Thread Maxim Cournoyer
This better matches Python conventions, allowing to easily test whether the optional argument is provided. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 2 +- tools/patman/settings.py | 9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff

[PATCH v5 3/6] patman: import gitutil module where it is needed

2022-12-19 Thread Maxim Cournoyer
Instead of propagating it from the module entry point (main script). Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 3 +-- tools/patman/settings.py | 8 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/patman/__main__.py b

[PATCH v5 2/6] patman: replace deprecated SafeConfigParser with ConfigParser

2022-12-19 Thread Maxim Cournoyer
The SafeConfigParser class has been renamed in Python 3.2 to ConfigParser, and the old alias has been deprecated since. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff

[PATCH v5 1/6] patman: fix pep8 warnings in settings module

2022-12-19 Thread Maxim Cournoyer
Remove extraneous imports, variables and comply to PEP 8 maximum line width, among other PEP 8 changes suggested by Pyflake. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 38 +- 1 file changed, 21 insertions(+), 17

[PATCH v5 0/6] add support for repository-local .patman config file

2022-12-19 Thread Maxim Cournoyer
an empty args list to parse_known_args in test Maxim Cournoyer (6): patman: fix pep8 warnings in settings module patman: replace deprecated SafeConfigParser with ConfigParser patman: import gitutil module where it is needed patman: set the default config_fname argument value to None pat

Re: [PATCH] patman: add '--get-maintainer-script' argument

2022-12-19 Thread Maxim Cournoyer
Hi Simon, Simon Glass writes: > Hi Maxim, > > On Mon, 19 Dec 2022 at 15:12, Maxim Cournoyer > wrote: >> >> This makes it possible to configure a project to use some other >> location or script than the default scripts/get_maintainer.pl one >> used in the

[PATCH v2] patman: add '--get-maintainer-script' argument

2022-12-19 Thread Maxim Cournoyer
-by: Maxim Cournoyer --- Changes in v2: - Add functional test - Fix 'os.path.exist' typo in 'find_get_maintainer' tools/patman/__main__.py | 7 + tools/patman/control.py| 12 --- tools/patman/func_test.py | 49 +++

Re: [PATCH 6/6] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
Hi Simon, Simon Glass writes: > Hi Maxim, > > On Mon, 19 Dec 2022 at 08:50, Maxim Cournoyer > wrote: >> >> This enables versioning a project specific patman configuration file. >> It also makes it possible to declare the the project name is, >> which

[PATCH v4 6/6] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
This enables versioning a project specific patman configuration file. It also makes it possible to declare the project name, which is not a useful thing to do in $HOME/.patman. A new test is added, along updated documentation. Signed-off-by: Maxim Cournoyer --- Changes in v4: - Use tools.run

[PATCH v4 5/6] patman: fail early in Setup when provided config file does not exist

2022-12-19 Thread Maxim Cournoyer
Rationale: if the user explicitly provide this argument, they probably intend for it to be used. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman

[PATCH v4 4/6] patman: set the default config_fname argument value to None

2022-12-19 Thread Maxim Cournoyer
This better matches Python conventions, allowing to easily test whether the optional argument is provided. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 2 +- tools/patman/settings.py | 9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff

[PATCH v4 3/6] patman: import gitutil module where it is needed

2022-12-19 Thread Maxim Cournoyer
Instead of propagating it from the module entry point (main script). Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 3 +-- tools/patman/settings.py | 8 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/patman/__main__.py b

[PATCH v4 2/6] patman: replace deprecated SafeConfigParser with ConfigParser

2022-12-19 Thread Maxim Cournoyer
The SafeConfigParser class has been renamed in Python 3.2 to ConfigParser, and the old alias has been deprecated since. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff

[PATCH v4 1/6] patman: fix pep8 warnings in settings module

2022-12-19 Thread Maxim Cournoyer
Remove extraneous imports, variables and comply to PEP 8 maximum line width, among other PEP 8 changes suggested by Pyflake. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/settings.py | 38 +- 1 file changed, 21 insertions(+), 17

[PATCH v4 0/6] add support for repository-local .patman config file

2022-12-19 Thread Maxim Cournoyer
es in v4: - Use tools.run to invoke git in test suite Changes in v3: - Clear command line arguments in test_git_local_config - Also test overriding a 'send' command line argument Changes in v2: - Explicitly provide an empty args list to parse_known_args in test Maxim Cournoyer (6): patman

[PATCH v3 8/8] patman: document default 'send' command

2022-12-19 Thread Maxim Cournoyer
Document that this command is the default and what it's intended for. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/__main__.py b/tools/p

[PATCH v3 7/8] patman: document how to run test suite via pytest

2022-12-19 Thread Maxim Cournoyer
Pytest offers useful features such as selecting tests by means of a regular expression, or running the pdb debugger upon encountering a test failure. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/patman.rst | 6 ++ 1 file changed, 6

[PATCH v3 6/8] patman: hide the 'test' command unless test data is available

2022-12-19 Thread Maxim Cournoyer
Some tests would fail when the test data is not available, so it doesn't make much sense to expose the action when patman is running outside of the u-boot git checkout. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- Changes in v3: - Mention the test command is hidden unles

[PATCH v3 4/8] patman: rename main script to __main__.py

2022-12-19 Thread Maxim Cournoyer
This allows running the package as a Python module, like e.g.: $ python -m patman It also prevents Pytest from attempting to parse main.py, which would cause errors. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/{main.py => __main__

[PATCH v3 5/8] patman: add pytest configuration file

2022-12-19 Thread Maxim Cournoyer
With this change, a user can run the patman test suite using Pytest the same as when using 'patman test': $ cd tools/patman && pytest [...] 44 passed, 8 warnings in 8.87s $ ./patman test Ran 44 tests in 8.460s Reviewed-by: Simon Glass Signed-off-b

[PATCH v3 3/8] patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'

2022-12-19 Thread Maxim Cournoyer
always invoking the checkpatch.pl script with the minimally required arguments for the test suite to pass. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- Changes in v3: - Fix typo in commit message Changes in v2: - Reword the commit message with a better explanation of the problem

[PATCH v3 2/8] patman: locate test data files via __file__ and pathlib

2022-12-19 Thread Maxim Cournoyer
Previously it would rely on the executing script location, which could break for example when running the tests via 'pytest'. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/func_test.py | 8 ++-- 1 file changed, 6 insertions(+), 2

[PATCH v3 1/8] patman: cosmetic: Fix PEP 8 warnings for the gitutil module.

2022-12-19 Thread Maxim Cournoyer
This patch fixes all the PEP 8 warnings reported by Pyflake for the gitutil module. Reviewed-by: Simon Glass Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/gitutil.py | 106 1 file changed, 65 insertions(+), 41 deletions

[PATCH] patman: add '--get-maintainer-script' argument

2022-12-19 Thread Maxim Cournoyer
This makes it possible to configure a project to use some other location or script than the default scripts/get_maintainer.pl one used in the U-Boot and Linux projects. It can be configured via a .patman configuration file and accepts arguments, as documented. Signed-off-by: Maxim Cournoyer

[PATCH v3 1/1] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
This enables versioning a project specific patman configuration file. It also makes it possible to declare the project name, which is not a useful thing to do in $HOME/.patman. A new test is added, along updated documentation. Signed-off-by: Maxim Cournoyer --- Changes in v3: - Clear command

[PATCH v2 1/1] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
This enables versioning a project specific patman configuration file. It also makes it possible to declare the project name, which is not a useful thing to do in $HOME/.patman. A new test is added, along updated documentation. Signed-off-by: Maxim Cournoyer --- Changes in v2: - Explicitly

[PATCH v2 0/1] add support for repository-local .patman config file

2022-12-19 Thread Maxim Cournoyer
v2: - Explicitly provide an empty args list to parse_known_args in test Maxim Cournoyer (1): patman: additionally honor a local .patman config file tools/patman/patman.rst | 8 ++- tools/patman/settings.py | 24 +++ tools/patman/test_settings.py | 43 ++

[PATCH 6/6] patman: additionally honor a local .patman config file

2022-12-19 Thread Maxim Cournoyer
This enables versioning a project specific patman configuration file. It also makes it possible to declare the the project name is, which is not a useful thing to do in $HOME/.patman. A new test is added, along updated documentation. Signed-off-by: Maxim Cournoyer --- tools/patman/patman.rst

[PATCH 5/6] patman: fail early in Setup when provided config file does not exist

2022-12-19 Thread Maxim Cournoyer
Rationale: if the user explicitly provide this argument, they probably intend for it to be used. Signed-off-by: Maxim Cournoyer --- tools/patman/settings.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman/settings.py index

[PATCH 4/6] patman: set the default config_fname argument value to None

2022-12-19 Thread Maxim Cournoyer
This better matches Python conventions, allowing to easily test whether the optional argument is provided. Signed-off-by: Maxim Cournoyer --- tools/patman/__main__.py | 2 +- tools/patman/settings.py | 9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/patman

[PATCH 3/6] patman: import gitutil module where it is needed

2022-12-19 Thread Maxim Cournoyer
Instead of propagating it from the module entry point (main script). Signed-off-by: Maxim Cournoyer --- tools/patman/__main__.py | 3 +-- tools/patman/settings.py | 8 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py

[PATCH 2/6] patman: replace deprecated SafeConfigParser with ConfigParser

2022-12-19 Thread Maxim Cournoyer
The SafeConfigParser class has been renamed in Python 3.2 to ConfigParser, and the old alias has been deprecated since. Signed-off-by: Maxim Cournoyer --- tools/patman/settings.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/patman

[PATCH 1/6] patman: fix pep8 warnings in settings module

2022-12-19 Thread Maxim Cournoyer
Remove extraneous imports, variables and comply to PEP 8 maximum line width, among other PEP 8 changes suggested by Pyflake. Signed-off-by: Maxim Cournoyer --- tools/patman/settings.py | 38 +- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a

[PATCH 0/6] add support for repository-local .patman config file

2022-12-19 Thread Maxim Cournoyer
This series is based on top of series #45. It adds support for a .patman config file local to the git repository. A new test 'test_settings.py' test module is added; it is automatically discovered and run via pytest, e.g.: 'cd tools/patman && pytest'. Maxim

[PATCH v2 8/8] patman: document default 'send' command

2022-12-19 Thread Maxim Cournoyer
Document that this command is the default and what it's intended for. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py index 82cef

[PATCH v2 7/8] patman: document how to run test suite via pytest

2022-12-19 Thread Maxim Cournoyer
Pytest offers useful features such as selecting tests by means of a regular expression, or running the pdb debugger upon encountering a test failure. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/patman.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH v2 5/8] patman: add pytest configuration file

2022-12-19 Thread Maxim Cournoyer
With this change, a user can run the patman test suite using Pytest the same as when using 'patman test': $ cd tools/patman && pytest [...] 44 passed, 8 warnings in 8.87s $ ./patman test Ran 44 tests in 8.460s Signed-off-by: Maxim Cournoyer --- (n

[PATCH v2 6/8] patman: hide the 'test' action unless test data is available

2022-12-19 Thread Maxim Cournoyer
Some tests would fail when the test data is not available, so it doesn't make much sense to expose the action when patman is running outside of the u-boot git checkout. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/__main__.py | 9 ++--- 1 file chang

[PATCH v2 4/8] patman: rename main script to __main__.py

2022-12-19 Thread Maxim Cournoyer
This allows running the package as a Python module, like e.g.: $ python -m patman It also prevents Pytest from attempting to parse main.py, which would cause errors. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/{main.py => __main__.py} | 0 tools/patman/pat

[PATCH v2 3/8] patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'

2022-12-19 Thread Maxim Cournoyer
always invoking the checkpatch.pl script with the minimally required arguments for the test suite to pass. Signed-off-by: Maxim Cournoyer --- Changes in v2: - Reword the commit message with a better explanation of the problem - Add the '--strict' argument to script invocation tools/patma

[PATCH v2 2/8] patman: locate test data files via __file__ and pathlib

2022-12-19 Thread Maxim Cournoyer
Previously it would rely on the executing script location, which could break for example when running the tests via 'pytest'. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/func_test.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --g

[PATCH v2 1/8] patman: cosmetic: Fix PEP 8 warnings for the gitutil module.

2022-12-19 Thread Maxim Cournoyer
This patch fixes all the PEP 8 warnings reported by Pyflake for the gitutil module. Signed-off-by: Maxim Cournoyer --- (no changes since v1) tools/patman/gitutil.py | 106 1 file changed, 65 insertions(+), 41 deletions(-) diff --git a/tools/patman

[PATCH v3] doc: add texinfodocs and infodocs targets

2022-12-18 Thread Maxim Cournoyer
. Signed-off-by: Maxim Cournoyer --- Changes in v3: - Adjust texinfo target and direntry names, description in doc/conf.py - Equally adjust the man page name, for consistency Changes in v2: - Do not invoke nonexistent 'sphinx-pre-install' script Makefile | 2 +- doc/Makefile

[PATCH 9/9] patman: document default 'send' command

2022-12-18 Thread Maxim Cournoyer
Document that this command is the default and what it's intended for. Signed-off-by: Maxim Cournoyer --- tools/patman/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py index 82cef4fc0b..11f19281fb 100755

[PATCH 6/9] patman: add pytest configuration file

2022-12-18 Thread Maxim Cournoyer
With this change, a user can run the patman test suite using Pytest the same as when using 'patman test': $ cd tools/patman && pytest [...] 44 passed, 8 warnings in 8.87s $ ./patman test Ran 44 tests in 8.460s Signed-off-by: Maxim Cournoyer --- tools/pat

[PATCH 7/9] patman: hide the 'test' action unless test data is available

2022-12-18 Thread Maxim Cournoyer
Some tests would fail when the test data is not available, so it doesn't make much sense to expose the action when patman is running outside of the u-boot git checkout. Signed-off-by: Maxim Cournoyer --- tools/patman/__main__.py | 9 ++--- 1 file changed, 6 insertions(+), 3 dele

[PATCH 5/9] patman: rename main script to __main__.py

2022-12-18 Thread Maxim Cournoyer
This allows running the package as a Python module, like e.g.: $ python -m patman It also prevents Pytest from attempting to parse main.py, which would cause errors. Signed-off-by: Maxim Cournoyer --- tools/patman/{main.py => __main__.py} | 0 tools/patman/patman

[PATCH 8/9] patman: document how to run test suite via pytest

2022-12-18 Thread Maxim Cournoyer
Pytest offers useful features such as selecting tests by means of a regular expression, or running the pdb debugger upon encountering a test failure. Signed-off-by: Maxim Cournoyer --- tools/patman/patman.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/patman/patman.rst b

[PATCH 4/9] patman: fix test_indent test

2022-12-18 Thread Maxim Cournoyer
The checkpatch.pl script indentation check now checks that lines start with tabs an complains otherwise, so to make the test fail, start a line with spaces. This is now also emitted as a warning rather than as a check. Signed-off-by: Maxim Cournoyer --- tools/patman/test_checkpatch.py | 11

[PATCH 3/9] patman: invoke the checkpatch.pl script with '--u-boot'

2022-12-18 Thread Maxim Cournoyer
This resolves 10 out of 11 test failures seen when running 'tools/patman/patman test', which were caused by a change in the checkpatch.pl script. Signed-off-by: Maxim Cournoyer --- tools/patman/checkpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to

[PATCH 2/9] patman: locate test data files via __file__ and pathlib

2022-12-18 Thread Maxim Cournoyer
Previously it would rely on the executing script location, which could break for example when running the tests via 'pytest'. Signed-off-by: Maxim Cournoyer --- tools/patman/func_test.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/patman/func

[PATCH 1/9] patman: cosmetic: Fix PEP 8 warnings for the gitutil module.

2022-12-18 Thread Maxim Cournoyer
This patch fixes all the PEP 8 warnings reported by Pyflake for the gitutil module. Signed-off-by: Maxim Cournoyer --- tools/patman/gitutil.py | 106 1 file changed, 65 insertions(+), 41 deletions(-) diff --git a/tools/patman/gitutil.py b/tools/patman

[PATCH v2] doc: add texinfodocs and infodocs targets

2022-12-17 Thread Maxim Cournoyer
. Signed-off-by: Maxim Cournoyer --- Changes in v2: - Do not invoke nonexistent 'sphinx-pre-install' script Makefile | 2 +- doc/Makefile | 10 ++ doc/media/Makefile | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Make

Re: [PATCH] doc: add texinfodocs and infodocs targets

2022-12-17 Thread Maxim Cournoyer
Hi Heinrich, Heinrich Schuchardt writes: > On 12/17/22 02:51, Maxim Cournoyer wrote: >> Sphinx supports generating Texinfo sources and Info documentation, >> which can be navigated easily and is convenient to search (via the >> indexed nodes or anchors, for example). This

Re: [bug#60135] [PATCH] doc: fix typos

2022-12-17 Thread Maxim Cournoyer
Hi, Heinrich Schuchardt writes: > On 12/17/22 06:28, Julien Lepiller wrote: >> Le 17 décembre 2022 03:09:40 GMT+01:00, Maxim Cournoyer >> a écrit : >>> Fix a few typos spot during a first read of the contribution process. >>> >>> Signed-off-by: Ma

Re: [bug#60135] [PATCH] doc: fix typos

2022-12-17 Thread Maxim Cournoyer
Hi Julien, Julien Lepiller writes: > Le 17 décembre 2022 03:09:40 GMT+01:00, Maxim Cournoyer > a écrit : >>Fix a few typos spot during a first read of the contribution process. >> >>Signed-off-by: Maxim Cournoyer >>--- >> >> doc/develop/proces

[PATCH] doc: add texinfodocs and infodocs targets

2022-12-17 Thread Maxim Cournoyer
. Signed-off-by: Maxim Cournoyer --- Makefile | 2 +- doc/Makefile | 11 +++ doc/media/Makefile | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index de5746399a..597a8886c3 100644 --- a/Makefile +++ b/Makefile @@ -2372,7 +2372,7

[PATCH] doc: fix typos

2022-12-17 Thread Maxim Cournoyer
Fix a few typos spot during a first read of the contribution process. Signed-off-by: Maxim Cournoyer --- doc/develop/process.rst | 4 ++-- doc/develop/sending_patches.rst | 6 +++--- doc/develop/system_configuration.rst | 6 +++--- 3 files changed, 8 insertions(+), 8

[PATCH 3/3] patman: locate README.rst via importlib

2022-12-17 Thread Maxim Cournoyer
Rationale: this is more robust than assumptions about the file hierarchy layout of the installation of patman, for example on non file-hierarchy standard (FHS) systems such as Guix System or Nix OS. Signed-off-by: Maxim Cournoyer --- tools/patman/main.py | 8 +++- 1 file changed, 3

[PATCH 2/3] patman: fix installation of README.rst data file

2022-12-17 Thread Maxim Cournoyer
This fixes a regression introduced in commit 74df491051d6 ("buildman: Convert documentation to rST"). Signed-off-by: Maxim Cournoyer --- tools/patman/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/setup.py b/tools/patman/setup.py index

[PATCH 1/3] patman: remove extraneous imports

2022-12-17 Thread Maxim Cournoyer
* tools/patman/main.py: Remove extraneous imports and fix indentation. Signed-off-by: Maxim Cournoyer --- tools/patman/main.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/patman/main.py b/tools/patman/main.py index 5a7756a221..8067a288ab 100755 --- a/tools