<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/guiconfig.py, branch v12.12.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.12.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v12.12.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-07-01T22:03:02Z</updated>
<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>menuconfig/guiconfig: Use orig_defaults in symbol info</title>
<updated>2019-06-24T07:29:10Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-24T07:29:10Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=a7302a6a03096e1c5839c2a582dd70ddbae2962a'/>
<id>urn:sha1:a7302a6a03096e1c5839c2a582dd70ddbae2962a</id>
<content type='text'>
Forgot that they show defaults separately. Use orig_defaults instead of
'defaults' to de-spam it a bit. The direct dependencies are shown above
the defaults.
</content>
</entry>
<entry>
<title>menuconfig/guiconfig: Clean up 'range' checking a bit</title>
<updated>2019-06-09T12:00:25Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-07T15:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c295c312dd76be6b61bdaccda5b70be9cb79cf5f'/>
<id>urn:sha1:c295c312dd76be6b61bdaccda5b70be9cb79cf5f</id>
<content type='text'>
Just cosmetic.
</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>Strip direct deps. from property conditions in Symbol/Choice/MenuNode.__str__()</title>
<updated>2019-05-25T14:18:29Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-25T11:52:09Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=bb33eed5cc6bdce2b65aa570ecd9a400bcd9c180'/>
<id>urn:sha1:bb33eed5cc6bdce2b65aa570ecd9a400bcd9c180</id>
<content type='text'>
Commit e81a77b ("Consistently put direct deps. last when propagating")
makes the position of the direct deps. in property conditions
predictable after dependency propagation, making it easy to strip them
as needed.

Use this to implement MenuNode.orig_{prompt,defaults,selects,implies,ranges},
which work like the non-orig_* versions but omit the direct deps. Use
those in turn to omit the direct deps in Symbol/Choice.__str__().

The direct deps. (with propagated parent deps.) can still be seen after
'depends on ...', so there is no loss of information.

This unclutters Kconfig definitions shown in menuconfig/guiconfig and in
any generated documentation. The old output also had duplicated
dependencies, though it doesn't matter for evaluation.

Before:

  config A
  	bool
  	prompt "A" if DEP
  	default y if FOO &amp;&amp; DEP
  	depends on DEP

After:

  config A
  	bool
  	prompt "A"
  	default y if FOO
  	depends on DEP
</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>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>guiconfig: Remove unused UNKNOWN import</title>
<updated>2019-05-07T10:08:43Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-07T10:08:43Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=cc6fbd75f418b3f0bc49759a75ded5f91c8f0718'/>
<id>urn:sha1:cc6fbd75f418b3f0bc49759a75ded5f91c8f0718</id>
<content type='text'>
</content>
</entry>
<entry>
<title>guiconfig: Comment nits</title>
<updated>2019-05-06T11:11:25Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-06T10:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=d4d31b2e901a3fbb46363cc9b2dc7efcb258a980'/>
<id>urn:sha1:d4d31b2e901a3fbb46363cc9b2dc7efcb258a980</id>
<content type='text'>
Move the global variable descriptions earlier, remove some redundant
comments, and clarify that the Python 3-only comment in setup.py is
talking about the terminal menuconfig.
</content>
</entry>
<entry>
<title>guiconfig: Micro-optimize tree item creation some more</title>
<updated>2019-05-06T11:05:37Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-05-06T10:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0befc4be60b1edc26ebeb1b7833933055c388204'/>
<id>urn:sha1:0befc4be60b1edc26ebeb1b7833933055c388204</id>
<content type='text'>
Mostly to get things consistent with _update_jump_to_display().
</content>
</entry>
</feed>
