summaryrefslogtreecommitdiff
path: root/setup.py
AgeCommit message (Collapse)Author
2018-11-18Make 10.22.1 releasev10.22.1Ulf Magnusson
Adds commit df61771 ("menuconfig: Never snap scroll back to max_scroll"), which fixes a small menuconfig UI nit. Add 'configuration-management' as a tag to setup.py as well.
2018-11-17Make 10.22.0 releasev10.22.0Ulf Magnusson
Adds commit b65baa4 ("Add support for KCONFIG_ALLCONFIG"), which allows particular symbol values to be forced during all{def,no,mod,yes}config.
2018-11-07Make 10.21.0 releasev10.21.0Ulf Magnusson
Adds two small library/menuconfig improvements: - Commit 7992519 ("Always strip trailing whitespace in 'MenuNode.help' and __str__()") tightens up the format of strings a bit, and documents it. - Commit b810bda ("menuconfig: Support HOME and END in the jump-to dialog") adds support for some keys that were missing from the jump-to dialog.
2018-11-04Make 10.20.0 releasev10.20.0Ulf Magnusson
Adds a small menuconfig improvement: Commit 35af004 ("menuconfig: Move cursor to choice selection when entering choices").
2018-11-02Make 10.19.1 releasev10.19.1Ulf Magnusson
Adds fixes for two obscure crashes, related to consecutive empty if's and toggling symbols without a type in the menuconfig: - Commit 0e6cd82 ("Fix removal of multiple consecutive 'if' nodes") - Commit db60270 ("menuconfig: Fix crash when toggling symbols without a type")
2018-11-01Make 10.19.0 releasev10.19.0Ulf Magnusson
Adds commit 8be38f2 ("Don't show backtraces for expected exceptions in tools"), which hides backtraces for expected errors from tools (like Kconfig syntax errors and missing files).
2018-10-31Make 10.18.0 releasev10.18.0Ulf Magnusson
Commit 14603c0 ("Make errno/strerror/filename available on IOError") makes IOError/OSError.errno/strerror/filename available to scripts, when it is raised from e.g. Kconfig.load_config(). Previously, some implementation trickery related to custom exception messages meant that they weren't available.
2018-10-26Make 10.17.0 releasev10.17.0Ulf Magnusson
Adds commit 699fd81 ("Support enabling the assignment-to-undef. symbol warning via the environment"). This makes it possible to enable the warning for assigning an undefined symbol within a .config file, while using the bundled tools. Previously, enabling the warning required modifying the tools to call Kconfig.enable_undef_warnings().
2018-10-22Make 10.16.0 releasev10.16.0Ulf Magnusson
- Commit 85ba6b2 ("menuconfig: Mention jump-to in info dialog help") makes it a bit easier to discover that jump-to can be entered from the info dialog. - Commit d920dbe ("Use standard_sc_expr_str() in _name_and_loc()") makes named choices show up as '<choice NAME>' in warnings, instead of just as 'NAME'. Some small parsing optimizations are included as well.
2018-10-21Make 10.15.0 releasev10.15.0Ulf Magnusson
- Commit 9a4127a ("Allow programmatically expanding preprocessor functions with args") adds a Variable.expanded_value_w_args() function for calling preprocessor functions programmatically. Not being able to pass arguments to Variable.expanded_value was an oversight. - Commit 516deb4 ("menuconfig: Show the selected symbol for promptless choices") makes menuconfig show the selected symbol next to promptless choices in show-all mode. This is relevant for named choices defined in multiple locations. Some minor parsing optimizations are included as well.
2018-10-16Make 10.14.3 releasev10.14.3Ulf Magnusson
Adds commit 98af94d ("Make Kconfig.choices match its description"). Previously, Kconfig.choices was accidentally identical to Kconfig.unique_choices. It's now crappy as advertised, and keeps duplicates. Removing duplicates (while preserving order) was the original reason for adding Kconfig.unique_defined_syms and Kconfig.unique_choices. It'd be rare to need Kconfig.choices.
2018-10-14Make 10.14.2 releasev10.14.2Ulf Magnusson
Adds two small menuconfig improvements/fixes: - Commit 9a7b374 ("menuconfig: Fix some minor resizing jumpiness on gnome-terminal") - Commit 3d0dc9f ("menuconfig: Switch back to "very visible" cursor after Ctrl-F")
2018-10-14Make 10.14.1 releasev10.14.1Ulf Magnusson
Adds commit 63bbecb ("menuconfig: Fix crash when pressing Ctrl-F with no matches in jump-to dialog"). Ctrl-F is the view-help shortcut in the jump-to dialog.
2018-10-14Make 10.14.0 releasev10.14.0Ulf Magnusson
Adds two menuconfig improvements and a documentation improvement: - Commit 96682d7 ("menuconfig: Add jump-to for choices, menus, and comments") generalizes the jump-to feature so that choices, menus, and comments can be jumped to in addition to symbols (or into, in the case of choices and menus). - Commit fae2e70 ("menuconfig: Do not show range hint for symbols without ranges") despams the menuconfig interface and could potentially avoid some confusion. - Commit bde4cc7 ("Add some hints re. generating custom configuration output") adds some documentation hints re. using the Symbol.config_string field when generating custom output. It can be useful for pruning symbols even when the output format isn't .config-like.
2018-10-10Make 10.13.0 releasev10.13.0Ulf Magnusson
Adds commit a247f3f ("menuconfig: Improve/fix promptless choice handling"), which fixes an obscure menuconfig crash involving symbols in promptless choices, and improves how choices are displayed in show-all/show-name mode a bit ('<choice (name, if any)>' instead of either nothing or '<name>').
2018-10-06Make 10.12.0 releasev10.12.0Ulf Magnusson
Adds commit f1e4d04 ("menuconfig: Remove "Value for " prefix from input dialog titles"), which de-spams the menuconfig interface a bit. Some documentation fixes and improvements are included as well: - Commit 631c51f ("Point to IS_ENABLED() is README") - Commit f594975 ("Add hints on incremental building to 'getting started'") - Commit d044ee9 ("Clarify --config-out description a bit") - Commit 358b77a ("Hint that load_config() with replace=False is for merging") - Commit 5d15df9 ("Update genconfig usage description") The naming in some internal evaluation functions was cleaned up too.
2018-10-03Make 10.11.0 releasev10.11.0Ulf Magnusson
Adds commit 4602028 ("genconfig: Allow writing a full .config without incremental build info"), which adds a flag to genconfig that might be handy in projects that include .config files in Makefiles but that don't use incremental build information.
2018-10-03Make 10.10.2 releasev10.10.2Ulf Magnusson
Just adds commit 4af2ac3 ("Actually fix README RST display on PyPI").
2018-10-03Make 10.10.1 releasev10.10.1Ulf Magnusson
Just adds commit fe28703 ("Fix README RST display on PyPI").
2018-10-03Make 10.10.0 releasev10.10.0Ulf Magnusson
Gets the README updated from commit 534e3e7 ("Add a 'getting started' section to the README") up on PyPI.
2018-10-03Make 10.9.3 releasev10.9.3Ulf Magnusson
Adds commit 21e47ce ("Fix parse error message on the line after help texts"), which fixes incorrect line contents being reported for parse errors on the line after a help text.
2018-10-02Make 10.9.2 releasev10.9.2Ulf Magnusson
Adds some documentation nits: - 08abf44 ("Mention that pydoc works after installing with pip") - 6aaf01c ("Clean up documentation a bit re. named choice") - 6fe5198 ("menuconfig: Mark quit_dialog() as internal")
2018-10-01Make 10.9.1 releasev10.9.1Ulf Magnusson
Adds commit 43e7711 ("setup: Use a list instead of a tuple for 'classifiers'"), which fixes a setup.py issue on Python 3.7.
2018-10-01setup: Use a list instead of a tuple for 'classifiers'Ulf Magnusson
Fixes a warning on Python 3.7: Warning: 'classifiers' should be a list, got type 'tuple' Maybe it could prevent other issues too: https://github.com/pypa/pypi-legacy/issues/670
2018-10-01Make 10.9.0 releasev10.9.0Ulf Magnusson
Adds commit 3b692df ("olddefconfig: Add script"), which bundles a new script that mimics 'make olddefconfig'. This could also be accomplished by entering the menuconfig interface and saving, but its more awkward. Some minor internal documentation clarifications and cleanups are included as well: - Commit 53db3ee ("Clarify node_iter() documentation re. iteration order") - Commit c1dcaa3 ("Refactor parsing to get rid of _saved_line") - Commit 6aab113 ("Don't set filename and linenr on 'if' menu nodes")
2018-10-01olddefconfig: Add scriptUlf Magnusson
Works like 'make olddefconfig', updating a configuration by filling in default values for all new symbols. This could also be accomplished by entering the 'menuconfig' interface and saving the configuration, but it's more awkward and less obvious. Piggyback two oldconfig changes: - Mention KCONFIG_CONFIG - Check if the .config file exists before parsing the Kconfig files, instead of after
2018-09-27Make 10.8.1 releasev10.8.1Ulf Magnusson
Adds commit c91e17c ("Give clearer errors for bad endchoice/endif/endmenu nesting"). Previously, an endchoice/endif/endmenu without a corresponding choice/if/menu generated a cryptic "unrecognized construct" error.
2018-09-23Make 10.8.0 releasev10.8.0Ulf Magnusson
Adds support for user-defined preprocessor functions in Python, which can be used to get information from existing Python tools into Kconfig, e.g. to have Kconfig symbols depend on hardware information stored in some other format. See commit b6827ca ("Add support for user-defined Python preprocessor functions").
2018-09-14Make 10.7.0 releasev10.7.0Ulf Magnusson
Adds commit b9b2ebb ("menuconfig: Add RGB color support to styles."), which makes it possible to specify colors in MENUCONFIG_STYLE using #RRGGBB notation. The rendered colors may be more or less exact depending on terminal capabilities. In the best case, we can redefine colors. Otherwise, we fall back on the closest available color. Contributed by Mitja Horvat (punkfluid).
2018-09-09Make 10.6.1 releasev10.6.1Ulf Magnusson
Adds commit af6c8dc ("menuconfig: Fix some glitching on small terminals"), which fixes some minor graphical glitching in the menuconfig interface when the terminal is too small for things to fit. Commit 374f488 ("Clean up kernel Makefile patch and add new targets") adds some new targets to the Linux makefile patch as well, though the makefile patch isn't bundled on PyPI.
2018-09-08Make 10.6.0 releasev10.6.0Ulf Magnusson
New features: - Commit ac8d152 ("menuconfig: Add support for custom color schemes (aka styles)"), contributed by Mitja Horvat (pinkfluid), adds support for configuring the style (colors and attributes) of menuconfig interface elements by setting a new MENUCONFIG_STYLE environment variable. The format of MENUCONFIG_STYLE is documented in the menuconfig.py module docstring. This format is now used internally as well to define the predefined styles. - Commit a092257 ("Allow macro expansion within symbol names") adds support for expanding macros within symbol names. This could be used e.g. to define template Kconfig files that get instantiated by setting preprocessor variables before including them. Other changes: - Commit 6683213 ("Allow user values on 'option env' symbols") makes it possible to give 'option env' symbols user values. There's no good reason to disallow it (it's a leftover from an older way of implementing them), and it simplifies the code a bit. Note that 'option env' symbols are only supported for backwards compatibility at this point. Environment variables can be expanded directly.
2018-08-29Make 10.5.0 releasev10.5.0Ulf Magnusson
Adds a small menuconfig tweak that could avoid some user confusion: Commit 66a2bf5 ("menuconfig: Do not use red for invisible symbols outside of show-all mode")
2018-08-29Make 10.4.0 releasev10.4.0Ulf Magnusson
New features: - Commit 84bd863 ("menuconfig: Add a more 'make menuconfig'-like color scheme") adds an alternative menuconfig color scheme contributed by contributed by Mitja Horvat (pinkfluid). The new color scheme can be enabled by setting the environment variable MENUCONFIG_THEME to 'aquatic'. The default color scheme now also uses bold text for the selected entry, like the 'aquatic' theme. Fixes: - Commit d1e2a65 ("menuconfig: Always show implicit submenus with visible nodes") fixes a display issue involving prompt-only conditions where visible child nodes could disappear outside of show-all mode. Other changes: - Commit 0ed2ba0 ("Improve the running-without-Makefile-patch documentation") updates the documentation on how to run Kconfiglib on the Linux kernel without using the Makefile patch. - Misc. internal menuconfig refactoring.
2018-08-26Make 10.3.0 releasev10.3.0Ulf Magnusson
New features: - Commit 20de53b ("Add a Kconfig.kconfig_filenames attribute") and commit 932d0f7 ("Add a Kconfig.env_vars attribute that lists env. variables") make lists of all Kconfig files and referenced environment variables available. This could be used e.g. to implement alternative incremental build schemes. Note that the sync_deps() mechanism already indirectly catches any relevant changes to files and environment variables though (anything that changes the configuration output). - Commit 17d7c1e ("menuconfig: Show all symbols at each menu location for multi.def. choices") makes it so that if a named choice is defined in multiple locations, each of which adds options, you can select any of the options regardless of via menu entry you enter the choice. Previously, you could only select the options defined at that menu entry's location. Named choices with symbols in more than one location are completely broken in the C tools, so there's no reference for the behavior there. This seems less confusing at least. Suggested by Mitja Horvat (pinkfluid). Fixes: - Commit 0b46af4 ("menuconfig: Don't return when selecting a choice symbol with children") improves menuconfig behavior in an extremely obscure case. - Commit 1c2c4ae ("oldconfig: Fix help display command for choices") makes '?' print the help for choices in oldconfig. The command was accidentally set to '??' there. - Commit ddfd5df ("Improve menu structure for promptless choices") fixes a menuconfig display issue for promptless choices (which can appear "legitimately" if a named choice is defined in multiple locations to add extra options). Cleanup: - Commit 2320b7a ("oldconfig: Use Kconfig.node_iter() and clean up") - Some manual tree walking in other places has also been rewritten to use Kconfig.node_iter().
2018-08-26oldconfig: Use Kconfig.node_iter() and clean upUlf Magnusson
Some general cleanup: - Handle the iteration with the new Kconfig.node_iter() helper. This makes some function so short that they become pointless. Have just main() + oldconfig(node) + small helper functions. - Use _name_and_loc_str(sc) for choices too, so that all locations get reported for named choices defined in multiple locations - Rewrite the intro to be less wordy and remove the sample session (leftover from when oldconfig.py was in examples/, and not that exciting) - Print "Updated configuration written to..." instead of "Configuration saved to..." - Various other nits
2018-08-24Make 10.2.1 releasev10.2.1Ulf Magnusson
Fixes broken-looking menuconfig include path information for items in the top-level Kconfig file, via commit 64600b3 ("menuconfig: Hide the include path for top-level items").
2018-08-24Make 10.2.0 releasev10.2.0Ulf Magnusson
Adds commit 13884e9 ("Show include paths in menuconfig symbol information"), which adds a MenuNode.include_path attribute to Kconfiglib. MenuNode.include_path holds the Kconfig include path of the menu node, which shows how its Kconfig file got 'source'd, starting from the top-level Kconfig file. MenuNode.include_path is used to show include paths in the menuconfig symbol information. It will also be used in genrest.py in Zephyr, which generates an RST Kconfig reference.
2018-08-23Make 10.1.1 releasev10.1.1Ulf Magnusson
Includes two small bug fixes: - Commit 9b77511 ("Fix file descriptor leak for the top-level Kconfig file") - Commit d158fed ("Fix recursive 'source' error reporting")
2018-08-23Make 10.1.0 releasev10.1.0Ulf Magnusson
New features: - Commit 7dae988 ("Add a generic node iterator") adds a Kconfig.node_iter() helper generator for iterating through all menu nodes in the menu tree, in definition order. Optionally, symbols defined in multiple locations are only generated once. This generator is now used internally by write_config() as well. Suggested by Mitja Horvat (pinkfluid). - Commit d2c1430 ("Introduce Kconfig.unique_defined_syms and Kconfig.unique_choices") adds versions of Kconfig.defined_syms/choices that only include symbols and choices defined in multiple locations once, while still preserving definition order. This is almost always what you want when iterating through (just) symbols and choices. It removes set() hackery (where it's easy to accidentally mess up the order) and the like. Fixes: - Commit 4ebc2aa ("Flag extra tokens after 'if'/'depends on'/'visible if' expressions") tightens up syntax checking so that extra trailing tokens after 'if', 'depends on', and 'visible if' expressions raise a syntax error, instead of being silently ignored. Oversight.
2018-08-21Make 10.0.1 releasev10.0.1Ulf Magnusson
Adds commit 7f3844f ("Make symbol order match between headers and .config files"), which fixes a bug introduced by commit 71872a8 ("Massively speed up U-Boot parsing"). The ordering of symbols in header files now matches the order in .config files again, which was always the intent. It makes things more readable, and is nice for version control too.
2018-08-18Make 10.0.0 releasev10.0.0Ulf Magnusson
Adds commit 8a3999b ("Fix $srctree logic for the top-level Kconfig file"), which fixes an old braino: The top-level Kconfig file passed to Kconfig.__init__() wasn't looked up relative to $srctree, breaking out-of-tree operation for scripts unless ugly manual $srctree hacks were added. All Kconfig files are now consistently looked up relative to $srctree. This is a backwards-incompatible change (though with a simple fix), so the major version is bumped. A note is printed on errors that might be due to the changed behavior.
2018-08-18Make 9.4.2 releasev9.4.2Ulf Magnusson
This just reverts commit 8a3999f ("Fix $srctree logic for the top-level Kconfig file"), so that it can go in a major release instead. I realized it has enough breakage potential for existing scripts to warrant a major version bump.
2018-08-17Make 9.4.1 releasev9.4.1Ulf Magnusson
- Commit 8a3999b ("Fix $srctree logic for the top-level Kconfig file") fixes a major braino where the top-level Kconfig file passed to Kconfig.__init__() wasn't looked up relative to $srctree, breaking out-of-tree operation for e.g. menuconfig. All Kconfig files are now consistently looked up relative to $srctree. - Misc. internal code cleanup
2018-08-11Make 9.4.0 releasev9.4.0Ulf Magnusson
Kconfiglib changes: - Commit 1f864b1 ("Support custom printing of symbols/choices in expressions") adds support for printing symbols and choices with a custom format in expressions. This makes it simpler to implement things like like turning all symbols/choices into links when generating documentation, and printing symbol values after symbols. - Commit 6aea8d0 ("Don't pass encoding= to Popen()") fixes an accidental Python 3.6+ requirement when using the $(shell) preprocessor function with Python 3. menuconfig changes: - Commit 8efc358 ("menuconfig: Omit tristate value hint for int/string/hex defaults") removes the boolean value hints to the right of defaults in the symbol information for string/int/hex symbols. Stuff like '- 74 (value: "n")' isn't helpful, and looks confusing. - Commit 3511f24 ("menuconfig: Make symbol information less spammy") makes the symbol information more compact in general, e.g. by skipping value hints where they aren't helpful ('FOO(=y)' instead of 'FOO(=y) (=y)'), and by shortening stuff like '(value: "y")' to just '(=y)'.
2018-07-27Make 9.3.0 releasev9.3.0Ulf Magnusson
- b650ccd ("Use universal newlines mode in $(shell) implementation") improves the behavior of $(shell) on Windows. A trailing \r\n-style newline sequence is now stripped in full, instead of leaving \r in there. - 6899f91 ("Restore compatibility with old kernels") restores some compatibility with old kernels originally dropped by c19fc11 ("Drop some compatibility and tighten up lexing"). It turns out that people are still running Kconfiglib on kernels from at least 2013 (see https://github.com/ulfalizer/Kconfiglib/pull/48).
2018-07-20Make 9.2.1 releasev9.2.1Ulf Magnusson
Just adds commit 5452ad3 ("Fix detection of hex literals"). Braino. Include some int and hex literals in the Kstrict testcase too.
2018-07-20Make 9.2.0 releasev9.2.0Ulf Magnusson
Adds support for automatically warning for references to undefined Kconfig symbols. See commit ca89d02 ("Add KCONFIG_STRICT flag for flagging refs. to undefined syms"). (There was an outdated docstring in that comment. KCONFIG_STRICT needs to be set to "y".)
2018-07-18Make 9.1.0 releasev9.1.0Ulf Magnusson
Adds e08b695 ("Add def_int, def_hex, and def_string keywords"), getting rid of some Kconfig inconsistency.
2018-07-18setup.py: Specify encoding when reading README.rstUlf Magnusson
https://github.com/clearlinux-pkgs/python-kconfiglib adds a patch for this. It avoids issues on systems that use the C locale, which implies ASCII encoding and raises UnicodeDecodeError when reading README.rst. Piggyback adding 'menuconfig' as another keyword.
2018-07-15Make 9.0.0 releasev9.0.0Ulf Magnusson
This release revamps the globbing design to make 'source' globbing, requiring at least at least one matching file. A new o(r)source statement can be used when it's okay for a pattern to not match any files. Relevant commit, with motivations: 7a428aa ("Switch to more sensible globbing statements (w/ backwards compatibility)"). Backwards compatibility is maintained by having g(r)source be an alias for o(r)source. A small API change was introduced too: Kconfig.srctree is now set to the empty string instead of None when $srctree is unset. This gives nice behavior for e.g. os.path.join().