<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/examples/menuconfig_example.py, branch main</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=main</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2026-02-02T07:22:15Z</updated>
<entry>
<title>drop support for Python 2.x as it is very much EOL</title>
<updated>2026-02-02T07:22:15Z</updated>
<author>
<name>Benjamin Cabé</name>
<email>benjamin@zephyrproject.org</email>
</author>
<published>2025-10-23T15:25:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=24aef157aead07f813f874f43ee471b057e622cb'/>
<id>urn:sha1:24aef157aead07f813f874f43ee471b057e622cb</id>
<content type='text'>
A follow-up to b96a5ad562deffa697d966c29546650aae645f48 where we stopped
having CI run tests on Python 2.x. This actually drops the few remaining
Python 2.x compatibility bits as Python 2.x has EOL'd a long time ago.

Signed-off-by: Benjamin Cabé &lt;benjamin@zephyrproject.org&gt;
Signed-off-by: Torsten Rasmussen &lt;Torsten.Rasmussen@nordicsemi.no&gt;
</content>
</entry>
<entry>
<title>Use 'python3' instead of 'python' in hashbangs</title>
<updated>2020-01-24T20:33:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2020-01-24T20:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e'/>
<id>urn:sha1:9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e</id>
<content type='text'>
It's not obligatory for distributions to have a 'python' binary these
days, but 'python3' is likely to be available:
https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors.
Change all hashbangs to point to 'python3'.

This will break running

    $ ./script.py

on *nix systems that don't have a 'python3' executable. Changing it to

    $ python script.py

is pretty painless at least.

This change won't break Python 2 when installing via 'pip', because
entry_points creates bounce scripts with their own hashbangs.

The major version will be increased, in case someone looks at the major
version but doesn't install via 'pip'.

Fixes: #89
</content>
</entry>
<entry>
<title>Catch EnvironmentError instead of OSError/IOError</title>
<updated>2019-07-01T22:03:02Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-07-01T20:52:17Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=e5e2fe5a6f084fb98c2c9b4adec0383fec4a5256'/>
<id>urn:sha1:e5e2fe5a6f084fb98c2c9b4adec0383fec4a5256</id>
<content type='text'>
menuconfig.py tended to crash on I/O errors on Python 2, due to
forgetting to update some 'except OSError's. Catch EnvironmentError
instead.

EnvironmentError is a common base class of IOError and OSError on Python
2, and an alias for OSError on Python 3. Use it elsewhere too, as it
might help catch obscure I/O errors on Python 2.
</content>
</entry>
<entry>
<title>Improve warning control API (with backwards compatibility)</title>
<updated>2019-06-03T04:50:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-02T23:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=bf36f5de0f49d56975b1a844e25484ec385dc971'/>
<id>urn:sha1:bf36f5de0f49d56975b1a844e25484ec385dc971</id>
<content type='text'>
A wart of the warning control API (enable/disable_*_warnings()) is that
the current warning settings can't be queried. Querying warning settings
is useful in functions that want to temporarily enable/disable some
warning and then put things back to how they were.
kconfiglib.load_allconfig() ran into this, for example.

Make the internal warning control variables public (improve the naming
at the same time), and encourage just setting them directly. Keep the
old API for backwards compatibility.

Also remove _warn_redun_assign() and _warn_override(). They're trivial
and were called in a single place.
</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>String repetition consistency nit</title>
<updated>2019-05-19T00:26:13Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-19T00:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=57e3aa38707a5b827d987b10dbf999e7081076cd'/>
<id>urn:sha1:57e3aa38707a5b827d987b10dbf999e7081076cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use a consistent style in examples</title>
<updated>2019-03-06T01:15:29Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-06T01:10:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=66557edc120faac569004ba2bc426c5ac6a1100b'/>
<id>urn:sha1:66557edc120faac569004ba2bc426c5ac6a1100b</id>
<content type='text'>
Also remove some unused imports.
</content>
</entry>
<entry>
<title>Use a consistent import style in the examples</title>
<updated>2018-09-27T17:54:45Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-27T17:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7bbd12d306bba4d7fd47905cf2d0b4e3f7bdabbd'/>
<id>urn:sha1:7bbd12d306bba4d7fd47905cf2d0b4e3f7bdabbd</id>
<content type='text'>
Do the PEP 8 ordering thingy with standard library imports first.
</content>
</entry>
<entry>
<title>Rename examples/menuconfig.py to menuconfig_example.py</title>
<updated>2018-04-30T23:28:44Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-04-30T23:26:39Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=4d0d74dc0a10e63e1372f925d0d2493cba351aa1'/>
<id>urn:sha1:4d0d74dc0a10e63e1372f925d0d2493cba351aa1</id>
<content type='text'>
To avoid confusing it with the new terminal menuconfig implementation.

Clean up the README a bit at the same time, removing some stuff that's
less essential now (e.g. the menuconfig_example.py "screenshot").
</content>
</entry>
</feed>
