<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/setconfig.py, branch v13.6.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v13.6.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v13.6.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-12-14T17:12:07Z</updated>
<entry>
<title>Add Kconfig.__init__() helper flag for suppressing tracebacks</title>
<updated>2019-12-14T17:12:07Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-12-14T17:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1ec91703ecdb4c369212fabe2ca0a68f040b7697'/>
<id>urn:sha1:1ec91703ecdb4c369212fabe2ca0a68f040b7697</id>
<content type='text'>
Tools that don't use standard_kconfig() currently generate spammy
tracebacks for e.g. syntax errors.

Add a suppress_traceback flag to Kconfig.__init__() for catching
"expected" exceptions and printing them to stderr and exiting with
status 1. Use it to make all tools consistently hide tracebacks.
</content>
</entry>
<entry>
<title>setconfig: Use 'orig_type' instead of 'type' in error message</title>
<updated>2019-07-02T16:07:34Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-07-02T15:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=29758ae0652799488a567df682a7ef391c68aecb'/>
<id>urn:sha1:29758ae0652799488a567df682a7ef391c68aecb</id>
<content type='text'>
It's confusing to have tristate symbols show up as bool in the bad-value
error message when modules are disabled. set_value() validates the value
against 'orig_type' rather than 'type' as well.

Piggyback some quote consistency and make a comment in set_value() more
informative.
</content>
</entry>
<entry>
<title>Have load_config() and write_(min_)config() return messages</title>
<updated>2019-06-03T04:50:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-02T16:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=55bc8c380869ea663092212e8fe388ad7abae596'/>
<id>urn:sha1:55bc8c380869ea663092212e8fe388ad7abae596</id>
<content type='text'>
Hardcoding load_config() and write_(min_)config() to write any message
to stdout is awkward, because it means that the message can't be easily
reused when stdout is the wrong place to write it to (e.g. in
menuconfig/guiconfig). This gets extra bad now that there's also the "No
change to ..." message.

Modify load_config() and write_(min_)config() to return the message as a
string instead, and have them always return a message, instead of just
when 'filename' is None and verbose=True. This makes things flexible and
straightforward.

Use the new behavior in menuconfig.py and guiconfig.py. They now show
"No change to ..." when saving a file doesn't modify it.

Tools that want to write messages to stdout should now do
print(kconf.load_config()) / print(kconf.write_config()).

There's no clean way to preserve perfect backwards compatibility here,
but keep accepting the 'verbose' argument and print a deprecation
warning if a value is ever passed for it. That way, scripts will keep
running, though possibly with less output on stdout.

This changes the meaning of the load_config() return value as well,
though I suspect it was only ever used by the menuconfig/guiconfig
interfaces.

The new behavior applies for kconfiglib.VERSION &gt;= (12, 0, 0).
</content>
</entry>
<entry>
<title>Make .config.old easier to discover</title>
<updated>2019-05-19T01:07:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-19T01:07:47Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=50ded1daebc6cc7e133ac02912fd184aba5f642d'/>
<id>urn:sha1:50ded1daebc6cc7e133ac02912fd184aba5f642d</id>
<content type='text'>
Mention that the old version of an overwritten configuration file is
saved to &lt;filename&gt;.old in a few different places, to make it easier to
discover.
</content>
</entry>
<entry>
<title>Whitespace consistency nit</title>
<updated>2019-03-22T19:43:30Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-22T19:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=5cec7cc7ecc78e8fe52c715c7465b0256392f428'/>
<id>urn:sha1:5cec7cc7ecc78e8fe52c715c7465b0256392f428</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert some comments to module docstrings in utilities</title>
<updated>2019-03-22T16:29:12Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-22T14:42:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c70a45eb935dc536ce59ec860c17b4c1c531a663'/>
<id>urn:sha1:c70a45eb935dc536ce59ec860c17b4c1c531a663</id>
<content type='text'>
This makes running pydoc(3) on the utilities helpful.

Reuse the module docstring for the --help text for utilities that use
argparse.

Also fix some copy-paste errors in the all*config.py descriptions and
clean up the language a bit.

Piggyback removal of an optimization in allmodconfig.py that's pretty
irrelevant now.
</content>
</entry>
<entry>
<title>setconfig: Fix help text format</title>
<updated>2019-03-06T03:14:59Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-06T03:11:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=faa4476260b60a0e3bec1c253213e50e6d4ce96e'/>
<id>urn:sha1:faa4476260b60a0e3bec1c253213e50e6d4ce96e</id>
<content type='text'>
Need to use RawDescriptionHelpFormatter to preserve newlines in the
description.

Also fix a typo in the help text (s/assignments/assignment/)
</content>
</entry>
<entry>
<title>setconfig: Add script</title>
<updated>2019-02-11T02:07:30Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-02-11T01:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=22d3cc30fd6bc38da2af2a446a8babe28e79701c'/>
<id>urn:sha1:22d3cc30fd6bc38da2af2a446a8babe28e79701c</id>
<content type='text'>
This is a simple script for updating configuration values from the
command line, with (optional) checking that the assigned value matches
the actual symbol value afterwards (which it might not if there are
unsatisfied dependencies).

Sample usage:

  $ setconfig FOO_SUPPORT=y BAR_BITS=8

This is useful for patching the configuration in automated build
systems, in a way that's safer than directly patching configuration
files.
</content>
</entry>
</feed>
