| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
- super used where direct call to superclass existed
- convert a few older-style super() (two-argument) uses
- in a few places, where there was an intersection with a super change,
variables that override a builtin (e.g. "dict") were renamed.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| | |
|
| |
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
| |
Now the scons "product" build (including generating and
building docs) is done in CI, it's useful to fail more
distinctly on xml problems. Modify scripts to do that,
and do a bit of reformatting along the way.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
Add compilation db for use by clang tools and cquery (fix issue #3355)
|
| | | |
|
| |/
|
|
|
|
| |
In Python3 this is the default.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
| |
caching parsed docbook schema. Yields approx 60x speedup
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When generating documentation from SConsXML markup, add some
markup to match the Python doc style better. In pseudo-markup,
we will now get:
<bold>foo</bold>(args)
<italic>env</italic>.<bold>foo</bold>(args)
That is, the function name is highlighted, and for the
environment method, env looks like a variable (which it is),
rather than the literal name env.
The methods to create an element now take keyword args,
so they can pass them on to the etree.Element method,
which understands an attribute keyword we need for one
of these changes. Added a method to create a SubElement,
which makes usage clearer. To complement the *Text
methods, *Tail methods were added to set/get the .tail
attribute of a node.
This change is to the tools only, and affects the result of
doing "python bin/docs-update-generated.py".
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| |
|
|
|
|
|
|
|
| |
cElementTree is deprecated in Py3 series, leave a TODO.
Don't remove just yet, right now building the generated files may
have problems in Py3, so leave ability to use Py2 for that
(see issue #3580)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
| |
Trying yet another layout to make it look better.
Minor tweaks to the doc production tools - dropping some very
old usage (pre-Python-2.5).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
| |
get importlib magic number from util
sider complaints about unicode usage
sider complaint about subprocess return value unused
sider complaint about shutil import unused (it is used, but
inside a big string that is written to a file to be executed)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* context managers on file r/w + use shutil.copy where it makes sense.
* lxml wants (demands?) that xml files be processed as bytes
* for the phase where we gen the entity files, read as text anyway
* Need to solve a problem where the generated xml is putting the \n in
literally, not evaluating it.
* Fix some examples broken for py3
* Fix more octal constant instances
* Cleanups suggested by PyCharm: staticmethods, two blanks
before class definition, others.
This addresses issues called out in #3300, but is not a complete
solution because the actual doc build step still fails with the
epydoc failures (which aren't directly because of Py3; epydoc
build doesn't work any better on my system with Py3, even with
the forked version with patches).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Regexes that contained unescaped backslashes and were not listed
in raw string form caused one more test failure when Python 3.8
was experimentally turned on in the Travis CI build.
Also one utility script had the same, not affecting tests - found through
inspection.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
| |
On a linux host (missing some things that may be on the Travis CI
setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
| |
One was "real": had failed to indent a with: block
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Several locations with simple usage of deprecated "imp" module
changed to use "importlib". These match with work in #3159,
but this is not a complete implementation of #3159.
More regex patterns are changed to be raw strings.
Some strings which did not seem appropriate to change to raw
strings (e.g. contain embedded tabs, which Python should honor)
had backslashes escaped to avoid accidental Python interpretation.
Example:
'\t<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.targets" />\n'
Python 3.8 was Warning \M was an unknown escape.
More open().write(), open().read() style usage changed to use
context managers so the file is closed.
WIP part: even with Python 3.7, the tests which call sconsign.py
fail; oddly they do not fail without the patch to compat.py.
sconsign.py does an import using imp module (which is what
generates the errors) so needs to be updated anyway. It does not
quite fit the "simple usage" pattern - can't do a simple relative
import since sconsign is normally located elsewhere in the tree than
the main scons code body.
With this version of the patch, 700 tests now pass with 3.8, and
Warning messages reduced to 2800 (current master has 200 pass,
9000 warns)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| | |
it removes the trace who and when imported it.
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| | |
- added missing icons for XXE4
- adapted schema location, such that the validation works properly in SernaFree and XXE
|
| | |
| |
| |
| | |
except.
|
| | | |
|
| |/ |
|
| |
|
|
|
|
| |
directory again
- fixed indentation in SConsDoc.py
|
| |
|
|
|
|
| |
bin/SConsDoc.py: catch parse exceptions and improve error msgs
bin/docs-validate.py: allow testing individual files from cmd line
src/engine/SCons/Tool/zip.xml: fix text to validate against DTD
|
| | |
|
| |
|
|
| |
one up in the hierarchy to the 'scons_output' tag
|
| |
|
|
|
|
| |
- started to work on support for UserGuide examples
- added xslt for transforming SCons XSD to Docbook documents
- added SConstructs for all documents and titlepage for the UserGuide
|
| | |
|
| |
|
|
| |
- added SConstruct for the MAN pages
|
| |
|
|
| |
- rewrote User Guide XML files, such that they are valid against it
|
| |
|
|
| |
- prepared introduction of SCons XSD namespace
|
| | |
|
| |
|
|
|
|
|
| |
Comb out all code that supported earlier versions of Python. Most such
code is in snippets of only a few lines and can be identified by having
a Python version string in it. Such snippets add up; this combing pass
probably got rid of over 500 lines of code.
|
| |
|
|
|
|
| |
Apply the refactorings from the 'dict' fixer, less occurrences that were
manually audited to be safe. Also pick up changes in bin/sfsum, a Python
file that was not being scanned before.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Applied a number of idiomatic changes.
Uses of the 'sort()' method were converted into calls of 'sorted()' when
possible and the sorted() expression was inserted into a subsequent statement
whenever that made sense.
The statement 'while 1:' was changed to 'while True:'.
Names from the 'types' module (e.g., 'types.FooType') were converted to the
equivalent build-in type (e.g., 'foo').
Comparisons between types were changed to use 'isinstance()'.
|
| |
|
|
|
| |
development. Note that this set of changes is NOT backward-compatible;
the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
|
| |
|
|
|
| |
by the signature specification from the <scons_function> tag to
the <arguments> tag.
|
| |
|
|
|
|
|
| |
* Add the support for global="0" and env="0" to SConsDoc.py.
* Remove unnecessary .IP lines before '\""" delimiters before the
next builder / tool / function entry.
* Add support for <variablelist> lists.
|