summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* remove unused importsEli Schwartz2021-10-261-1/+1
|
* pylint: turn on superflous-parensDylan Baker2021-08-311-2/+2
| | | | | | | | We have a lot of these. Some of them are harmless, if unidiomatic, such as `if (condition)`, others are potentially dangerous `assert(...)`, as `assert(condtion)` works as expected, but `assert(condition, message)` will result in an assertion that never triggers, as what you're actually asserting is `bool(tuple[2])`, which will always be true.
* editorconfig: add setting to trim trailing whitespaceEli Schwartz2021-08-151-3/+3
| | | | | | | and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
* fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger2021-06-297-16/+16
|
* coverage: Enable coverage reportsDaniel Mensinger2021-06-221-0/+53
|
* docs: Generate a table of all wrapdb releasesXavier Claessens2021-06-051-0/+19
| | | | | wrapdb CI will trigger Meson's CI to regenerate the list when releases.json is updated.
* mass rewrite of string formatting to use f-strings everywhereEli Schwartz2021-03-043-16/+16
| | | | performed by running "pyupgrade --py36-plus" and committing the results
* various python neatness cleanupsEli Schwartz2021-03-042-2/+2
| | | | | | | | | | | | | | | | All changes were created by running "pyupgrade --py3-only --keep-percent-format" and committing the results. I have not touched string formatting for now. - use set literals - simplify .format() parameter naming - remove __future__ - remove default "r" mode for open() - use OSError rather than compatibility aliases - remove stray parentheses in function(generator) scopes
* gen_data.py: even more sortingEli Schwartz2021-01-131-1/+1
| | | | | | | | | | | glob.glob() is not sorted, despite using shell-style wildcards, and the documentation does not mention this: https://bugs.python.org/issue21748 Recently, it does start mentioning "Whether or not the results are sorted depends on the file system." which does not really get to the heart of the matter... This is causing fuzz too.
* gen_data.py: sort files when generating mesondataEli Schwartz2021-01-121-1/+1
| | | | | | | | | The current way this works is chaos since the tool might return files in any order and thus shuffle around the order of embedded files. This results in big diffs that cannot be easily reviewed. Also regenerate the data according to the, going forward, canonical ordering algorithm.
* Hotdoc: use template for Commands.md instead of generating the entire file ↵Eli Schwartz2021-01-101-14/+6
| | | | | | | | | | | | | | | | | | (#8154) * doc: fix hotdoc misuse for dynamically generated content hotdoc has a native include feature for including files inline. Use this to generate one file for each dynamically generated code block, and include that file in Commands.md; see: https://hotdoc.github.io/syntax-extensions.html#smart-file-inclusion-syntax This permits us to move back to using the in-tree version of the hotdoc *.md sources, thus fixing the incorrect inclusion of "builddir/" in the "Edit on github" links which resulted from using copies as the source. Fixes #8061 * doc: call the dummy file a "stamp" as it is a better known term
* use real pathlib moduleDylan Baker2020-11-201-1/+1
| | | | | We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
* cmake: Disable the new (CMake 3.16) PCH supportDaniel Mensinger2020-10-241-1/+2
| | | | | | | Subprojects that use the CMake PCH feature will cause compilation/linker errors. The CMake PCH support should thus be disabled until this can be properly translated to meson.
* typing: fix mypy typing errorDaniel Mensinger2020-10-121-3/+3
|
* typing: fix code reviewDaniel Mensinger2020-09-081-3/+3
|
* typing: fully annotate toolsDaniel Mensinger2020-09-084-21/+22
|
* mdata: Generate mesondata.py from */data foldersDaniel Mensinger2020-07-161-0/+139
|
* Store website build script. [skip ci]Jussi Pakkanen2020-07-011-0/+51
|
* Made Commands.md dynamically generated (#7346)TheQwertiest2020-06-302-0/+205
|
* Merge pull request #6620 from jon-turney/test-output-checkDylan Baker2020-05-131-0/+4
|\ | | | | Add a mechanism for validating meson output in tests
| * Update dircondenser.py tool to update paths in test.json as wellJon Turney2020-04-301-0/+4
| | | | | | | | | | Update dircondenser.py tool to update paths appearing in the expected stdout in test.json when the containing directory is renamed.
* | boost: Only use usage-requirements defines (fixes #7046)Daniel Mensinger2020-05-011-14/+42
|/
* cmake2meson fix if nesting (#6676)Yann Dirson2020-02-231-8/+17
|
* boost: Rewrite boost_names.py generatorDaniel Mensinger2020-02-201-143/+228
|
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-082-9/+9
|
* Update Python2 syntax to Python3 syntax in ghwt.pyMichael Brockus2019-12-061-5/+5
|
* CI: add initial type annotation checkingMichael Hirsch, Ph.D2019-11-073-17/+20
|
* cmake2meson: improve exceptions, add type annotations, use argparseMichael Hirsch, Ph.D2019-10-191-22/+22
|
* Fix unused variables warningsDaniel Mensinger2019-04-291-1/+1
|
* allow nested if loopMichael Hirsch, Ph.D2019-01-161-17/+31
| | | | close paren
* modernize library default syntax, be like CMake static defaultMichael Hirsch, Ph.D2019-01-061-2/+2
|
* Fix flake8 whitespace reportsJon Turney2018-09-131-1/+1
| | | | | | $ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)' ./mesonbuild/build.py:964:5: E303 too many blank lines (2) ./tools/dircondenser.py:70:36: E221 multiple spaces before operator
* Add script to condense test directory names.Jussi Pakkanen2018-07-311-0/+82
|
* Boost: Add Python librariesNiklas Claesson2017-10-251-0/+3
| | | | Fixes: #2507
* Boost: Jamfile has two syntaxes for boost librariesNiklas Claesson2017-10-121-0/+4
| | | | Fixes #2456
* Boost: Improve search algorithmNiklas Claesson2017-10-011-0/+180
| | | | | | | | | | | | | | | | | The new implementation will correctly pick boost from 3 possible locations on windows and two locations on posix compatible OSs. The new search algorithm also differentiates between debug and release builds of Boost and multi or single threading builds. It was also decided to map "Meson modules" to Boost software libraries and not Boost modules since it there are a lot of options regarding linking. Some modules can even be used either as headers-only or with dynamic linking. This commit also fixes a bug that prevented header-only use on Windows. Fixes: #2274 #2239 #1803 #669
* cmake2meson: convert varexp to lowercaseGeorg Müller2017-09-141-1/+1
| | | | | since variable names in 'set' statements are converted to lowercase, the variable itself should be converted to lower-case too when used.
* cmake2meson: strip comments from statementsGeorg Müller2017-09-141-1/+4
| | | | | | | | | | Without this change, the following correct cmake will cause an error: statement( arg1 # arg2 arg3 )
* cmake2meson: convert statements to lower caseGeorg Müller2017-09-141-1/+1
| | | | | cmake does not distinguish between upper and lower case, so convert it to lower case for the later comparisons.
* Improve ac_converter to print a help message.Jussi Pakkanen2017-07-311-1/+8
|
* Removed unnecessary pass statements.Jussi Pakkanen2017-07-161-1/+0
|
* Removed duplicate key in dictionary.Jussi Pakkanen2017-07-161-1/+0
|
* A few typo fixes in the converter script.Jussi Pakkanen2017-06-041-2/+2
|
* Added more functions to the list of checks.Jussi Pakkanen2017-06-041-0/+143
|
* cleanup: Unbound local variableMike Sinkovsky2017-01-181-0/+1
|
* cleanup: Remove redundant parenthesesMike Sinkovsky2017-01-181-3/+3
|
* cleanup: Redundant character escapeMike Sinkovsky2017-01-181-1/+1
|
* style: [E1**] IndentationMike Sinkovsky2017-01-111-2/+3
|
* style: [E301] expected 1 blank line, found 0Mike Sinkovsky2017-01-111-0/+1
|
* style: fix E703 violationsIgor Gnatenko2017-01-011-1/+1
| | | | | | E703: statement ends with a semicolon Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>