<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/patman, branch v2025.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/patman?h=v2025.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/patman?h=v2025.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2024-09-01T17:05:43Z</updated>
<entry>
<title>patman: Resolve python string vs. regex escaping syntax</title>
<updated>2024-09-01T17:05:43Z</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2024-07-26T19:02:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7b8f0bfa6e1a0390bea8e2b24d7d7fa33d654db3'/>
<id>urn:sha1:7b8f0bfa6e1a0390bea8e2b24d7d7fa33d654db3</id>
<content type='text'>
Python strings have their own notion of backslash-escaping, and that can
conflict with the intentions for strings passed to the 're' module. In
particular, I get warnings like this:

tools/patman/../patman/commit.py:9: SyntaxWarning: invalid escape sequence '\s'
  re_subject_tag = re.compile('([^:\s]*):\s*(.*)')

We should use a raw string (r'...') so that all escaping is passed into
the regex module, not interpreted within the string itself.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools: patman: fix `pip install` with Python 3.12</title>
<updated>2024-07-26T14:01:06Z</updated>
<author>
<name>Brandon Maier</name>
<email>brandon.maier@collins.com</email>
</author>
<published>2024-07-01T17:51:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f0a166e096072eef3caced135e67816d3b8e50bb'/>
<id>urn:sha1:f0a166e096072eef3caced135e67816d3b8e50bb</id>
<content type='text'>
Installing patman with `cd ./tools/patman &amp;&amp; pip install -e .` fails
with the error below.

As described in the error output below, the license line is not allowed
to be only defined in the setup.py. We remove the 'license' field
entirely, as the Python Packaging User Guide recommends using projects
classifiers instead[1] and we already set the GPL-2.0+ classifier.

&gt; $ cd ./tools/patman &amp;&amp; pip install -e .
&gt; Obtaining file:///.../u-boot/tools/patman
&gt;   Installing build dependencies ... done
&gt;   Checking if build backend supports build_editable ... done
&gt;   Getting requirements to build editable ... error
&gt;   error: subprocess-exited-with-error
&gt;
&gt;   × Getting requirements to build editable did not run successfully.
&gt;   │ exit code: 1
&gt;   ╰─&gt; [61 lines of output]
&gt;       /tmp/pip-build-env-mqjvnmz8/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:76:
&gt;           _MissingDynamic: `license` defined outside of `pyproject.toml` is ignored.
&gt;       !!
&gt;
&gt;       ********************************************************************************
&gt;       The following seems to be defined outside of `pyproject.toml`:
&gt;
&gt;       `license = 'GPL-2.0+'`
&gt;
&gt;       According to the spec (see the link below), however, setuptools CANNOT
&gt;       consider this value unless `license` is listed as `dynamic`.
&gt;
&gt;       https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
&gt;
&gt;       To prevent this problem, you can list `license` under `dynamic` or alternatively
&gt;       remove the `[project]` table from your file and rely entirely on other means of
&gt;       configuration.
&gt;       ********************************************************************************
&gt;
&gt;       !!

[1] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

Signed-off-by: Brandon Maier &lt;brandon.maier@collins.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools: patman: fix deprecated Python ConfigParser methods</title>
<updated>2024-07-03T06:36:33Z</updated>
<author>
<name>Brandon Maier</name>
<email>brandon.maier@collins.com</email>
</author>
<published>2024-06-04T16:16:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a1488750935342f1750bd4f3cbd999688523898e'/>
<id>urn:sha1:a1488750935342f1750bd4f3cbd999688523898e</id>
<content type='text'>
The method `ConfigParser.readfp()` is marked deprecated[1].

In Python 3.12 this method have been removed, so replace it with
`ConfigParser.read_file()`.

[1] https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp

Signed-off-by: Brandon Maier &lt;brandon.maier@collins.com&gt;
CC: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Add a tag for when a patch gets added to a series</title>
<updated>2024-07-03T06:36:32Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2024-04-19T02:36:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=18de1afd4895bb143eb906e52b93db1b1aac6dfc'/>
<id>urn:sha1:18de1afd4895bb143eb906e52b93db1b1aac6dfc</id>
<content type='text'>
When a patch is added to a series after the initial version, there are no
changes to note except that it is new. This is typically done to suppress
the "(no changes in vN)" message. It's also nice to add a change to the
cover letter so reviewers know there is an additional patch. Add a tag to
automate this process a bit.

There are two nits with the current approach:

- It favors '-' as a bullet point, but some people may prefer '*' (or
  something else)
- Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
  probably just noise in most series, but they may be useful for treewide
  series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
  I've left them in.

Suggestions for the above appreciated.

Suggested-by: Douglas Anderson &lt;dianders@chromium.org&gt;
Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Douglas Anderson &lt;dianders@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Add Commit-cc as an alias for Patch-cc</title>
<updated>2024-07-03T06:36:32Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2024-04-19T02:36:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b4f73931ed1dda09872ebe6ac47cf2fd6d690704'/>
<id>urn:sha1:b4f73931ed1dda09872ebe6ac47cf2fd6d690704</id>
<content type='text'>
Most tags referring to commits (or patches) are named Commit-something. The
exception is Patch-cc. Add a Commit-cc alias so we can use whichever one is
convenient.

Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
</content>
</entry>
<entry>
<title>patman: Fix tests if add_maintainers is set to False</title>
<updated>2024-07-03T06:36:32Z</updated>
<author>
<name>Sean Anderson</name>
<email>seanga2@gmail.com</email>
</author>
<published>2024-04-19T02:36:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=eba80858039c403cb3e2ef166c7f1418838d4ec2'/>
<id>urn:sha1:eba80858039c403cb3e2ef166c7f1418838d4ec2</id>
<content type='text'>
If add_maintainers is set to False in the user's ~/.patman config, it will
cause the custom_get_maintainer_script to fail since that test expects
maintainers to be added. Set add_maintainer to True in the .patman config
to prevent this.

Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument")
Signed-off-by: Sean Anderson &lt;seanga2@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Properly document the patchwork_url setting</title>
<updated>2024-03-21T06:36:54Z</updated>
<author>
<name>Douglas Anderson</name>
<email>dianders@chromium.org</email>
</author>
<published>2024-03-11T21:02:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fcd0c8b8474f7db0b94608424715a73fbeba92dc'/>
<id>urn:sha1:fcd0c8b8474f7db0b94608424715a73fbeba92dc</id>
<content type='text'>
The "Series-patchwork-url:" tag description says that it overrides the
settings file but doesn't specify the name of the setting. Elsewhere
in the documentation about the "useful" settings we see a setting that
sounds promising called "patchwork_server" that's actually not a valid
setting. It should be "patchwork_url".

Fix these problems so the doc is right and more useful.

Signed-off-by: Douglas Anderson &lt;dianders@chromium.org&gt;
</content>
</entry>
<entry>
<title>doc: fix three-dash references in reStructuredText</title>
<updated>2024-01-13T17:17:46Z</updated>
<author>
<name>Grzegorz Szymaszek</name>
<email>gszymaszek@short.pl</email>
</author>
<published>2024-01-06T10:36:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=753f76e417a91c19dd32571bf5398c5526fb21a5'/>
<id>urn:sha1:753f76e417a91c19dd32571bf5398c5526fb21a5</id>
<content type='text'>
The "Sending patches" and "Patman patch manager" documents refer to the
three-dash, "---", that separates patch parts. The symbol is written in
the documentation in the same form as it is in actual patches: as three
U+002D HYPHEN-MINUS characters. When building the documentation, Sphinx
converts this symbol to a U+2014 EM DASH, that is invalid in this case.

Make the three-dash symbol a reStructuredText inline literal to prevent
its conversion; that is, enclose it in a pair of double backquotes (`).

Signed-off-by: Grzegorz Szymaszek &lt;gszymaszek@short.pl&gt;
Reviewed-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
</content>
</entry>
<entry>
<title>tools: Move python tools to version 0.0.6</title>
<updated>2023-12-13T23:39:06Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-11-19T15:36:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=049ee9090399679826a6294098efc2242f5e63ad'/>
<id>urn:sha1:049ee9090399679826a6294098efc2242f5e63ad</id>
<content type='text'>
A new release has been done with this version, so update it. Use the
version numbers in dependencies also.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>patman: Update the run script</title>
<updated>2023-12-13T23:39:06Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-11-19T15:36:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=dff917d973e5d7aafbc28d9a5eb59fd5e95fb675'/>
<id>urn:sha1:dff917d973e5d7aafbc28d9a5eb59fd5e95fb675</id>
<content type='text'>
Patman now has its main program in a function, so update the toml file
to match.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
