<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/kconfiglib.py, branch v12.2.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.2.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.2.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-06-06T07:27:42Z</updated>
<entry>
<title>Make 12.2.1 release</title>
<updated>2019-06-06T07:27:42Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-06T07:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=5ace27e6d7562dd77e619f39803258fe63d4ca95'/>
<id>urn:sha1:5ace27e6d7562dd77e619f39803258fe63d4ca95</id>
<content type='text'>
Adds commit 443e6bb ("menuconfig: Fix help display on Python 2").
</content>
</entry>
<entry>
<title>Make 12.2.0 release</title>
<updated>2019-06-06T03:32:37Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-06T03:10:10Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=fe91f478b5620235b8a462533850afef4731dac0'/>
<id>urn:sha1:fe91f478b5620235b8a462533850afef4731dac0</id>
<content type='text'>
Do the opposite of what other people are doing and make menuconfig.py
Python 2-compatible. Turns out it's not that tricky after all, and it
makes everything consistently Python 2/3-compatible and streamlines
things.

 - Commit 41b5891 ("menuconfig: Get rid of 'nonlocal'")

 - Commit b2e211d ("menuconfig: Fall back on getch() when get_wch()
   isn't available")

 - Commit c3162be ("menuconfig: Only decode curses.erasechar() on Python
   3")

 - Commit fe6ed99 ("menuconfig: Import print_function for Python 2
   compatibility")

 - Commit c209188 ("menuconfig: Have hashbang point to 'python' instead
   of 'python3'")

 - Commit d577865 ("Remove Python 3 menuconfig special-casing from
   Makefile patch")

 - Commit 319f7f0 ("Update various comments now that menuconfig is
   Python 2-compatible")

 - Commit 5fbd70e ("Update setup.py now that menuconfig is Python
   2-compatible")

Also investigate exactly what the Python version requirements are and tweak
and document things a bit:

 - Commit e0baa79 ("Tweak python_requires to 2.7/3.2+")

 - Commit 3a772a6 ("Add a section on version compatibility to the
   README")
</content>
</entry>
<entry>
<title>Update various comments now that menuconfig is Python 2-compatible</title>
<updated>2019-06-06T02:57:22Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-05T11:45:38Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=319f7f0f09a620e7cd9987d4834660598bfb7109'/>
<id>urn:sha1:319f7f0f09a620e7cd9987d4834660598bfb7109</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make 12.1.0 release</title>
<updated>2019-06-04T09:00:13Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-04T08:58:52Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7627bdfac95a4289570f3011840739be20544395'/>
<id>urn:sha1:7627bdfac95a4289570f3011840739be20544395</id>
<content type='text'>
Adds commit 22f2778 ("Mention that the load_config() message is
different for replace=False")
</content>
</entry>
<entry>
<title>Mention that the load_config() message is different for replace=False</title>
<updated>2019-06-04T01:09:35Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-04T01:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=22f277826fe21df548c45569f9c3a1d45b5a55fa'/>
<id>urn:sha1:22f277826fe21df548c45569f9c3a1d45b5a55fa</id>
<content type='text'>
Handy to know when writing merging utilities.
</content>
</entry>
<entry>
<title>Get rid of bare 'except:' in _save_old()</title>
<updated>2019-06-03T05:21:32Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-03T05:21:32Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=5c904f4549da814d524edded8b550b33a370b040'/>
<id>urn:sha1:5c904f4549da814d524edded8b550b33a370b040</id>
<content type='text'>
Catch Exception instead, which avoids catching things like keyboard
interrupts.
</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>Add kconfiglib.VERSION</title>
<updated>2019-06-03T02:42:35Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-03T02:03:57Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=455e3661c6f50b088b35a3b2662052e7e2a24769'/>
<id>urn:sha1:455e3661c6f50b088b35a3b2662052e7e2a24769</id>
<content type='text'>
Holds a (&lt;major&gt;, &lt;minor&gt;, &lt;patch&gt;) tuple, e.g. (12, 0, 0).
</content>
</entry>
<entry>
<title>Fix obscure crash with rsource and $srctree pointing to a symlink</title>
<updated>2019-06-01T04:21:54Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-01T02:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=92791a3fe15bb2d5c14039fbd531be73255f0c6d'/>
<id>urn:sha1:92791a3fe15bb2d5c14039fbd531be73255f0c6d</id>
<content type='text'>
Sourcing a file with an absolute path and using rsource in it triggered
a relpath() between the absolute path and $srctree. Since e.g.
symlink/../bar/ = bar/ is not guaranteed for symlinks, this could lead
to the rsource'd file not being found if $srctree pointed to a symlink.

Switch to a simpler, more textual method for stripping $srctree from
glob results, which should be robust against symlink shenanigans. This
also makes the code a bit easier to follow.

Discovered by Marc Herbert.

Piggyback some minor cleanup.
</content>
</entry>
</feed>
