summaryrefslogtreecommitdiffstats
path: root/SCons/Variables
Commit message (Collapse)AuthorAgeFilesLines
* Address review comments on Variables PR (#4031)Mats Wichmann2021-10-083-7/+9
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Tweak Variables incl. manpage, docstringsMats Wichmann2021-10-078-304/+366
| | | | | | | | | | | | | | * Added link anchors in variables-related funcs/methods, and link to them - these methods are not part of the generated link setup. * Clarified that vars set to defaults are not saved. * Updated docstrings in the Variables source (for API docs). * Added return-type annotations to Variables. * Fix for converter function possibly failing if it tries to access an environment. Fixes #2064. * Fixed up the behavior of aliases to variables, and added docu. Fixes #3869. * Fix PathIsDirCreate validator to catch permission problems. Fixes #2828 Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop dictionary has_key references: Py2-ism.Mats Wichmann2021-03-111-4/+0
| | | | | | | | | | | | | | In some cases, added a __contains__ method instead, not because it necessarily was needed, but for completeness. Also one completely unrelated change because it happened to be sitting modified in the tree when I committed modified files: be a little more cautious about building CHECK_METHODS in our subclassing of the optparse Option class... current cpython starts it at None, then fills it in, so it shouldn't be None when we subclass. Signed-off-by: Mats Wichmann <mats@linux.com>
* Initial support in tests for Python 3.10Mats Wichmann2021-01-221-1/+1
| | | | | | | | | Expected bytecode and one changed expected exception message. Change some more regexes to be specified as rawstrings in response to DeprecationWarnings. Signed-off-by: Mats Wichmann <mats@linux.com>
* Update some copyright strings and drop __revision__ [skip appveyor]Mats Wichmann2020-09-2312-165/+145
| | | | | | | | | | | | | | | | | | Touches the first and second levels of SCons (except SCons.Tool), not tests or docs which remain TODO. Make sure docstring is first non-comment content, eliminate cases where docstring is set elsewhere but assigns to __doc__ - this approach of course worked inside Python, but confuses various tools. Some module-level docstrings modified a bit, in particular the convention of having the name of the module as the first line is dropped, replaced by a summary description going there instead - this improves the look in the API Docs, which otherwise display something like: SCons.Foo - SCons.Foo Signed-off-by: Mats Wichmann <mats@linux.com>
* Run autoflake on codeMats Wichmann2020-09-216-6/+0
| | | | | | | | | | Eliminate unneeded imports, and a few unneeded statements - usually "pass" where it is not syntactically needed. A couple of import try blocks were eliminated or changed when they're "cannot happen" due to current floor Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* Minor: drop engine prefix from docstrings [ci skip]Mats Wichmann2020-06-115-5/+5
| | | | | | | | A number of module docstrings start with the module name, these end up appearing in API docs. Drop the "engine/" prefix where it appears. Signed-off-by: Mats Wichmann <mats@linux.com>
* Docstring changes from Sphinx conversion [ci skip]Mats Wichmann2020-05-301-23/+27
| | | | | | | | These changes are prompted by complaints Sphinx makes about existing docstrings; split from the Sphinx-build PR to make for easier reviewing. Signed-off-by: Mats Wichmann <mats@linux.com>
* classes no longer explicitly inherit from objectMats Wichmann2020-05-243-5/+5
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-0612-0/+2423
with current python packaging practices