summaryrefslogtreecommitdiff
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* message: simplify handling of error levelsChristoph Reiter2019-01-101-1/+1
| | | | | | | | Instead of allowing each error level to be enabled just enable all of them through the enable_warnings() method. This matches what the code is currently doing (minus that one helper script) and simplifies things. Also remove the error count, it's not used.
* update-glib-annotations: make it work with meson and drop autotools supportChristoph Reiter2018-12-171-85/+67
| | | | | | | | | | Clean up the code and make it work with meson. Assume a fixed build dir to make it less magic and so we can give better error messages. This also removes all the include path logic because since c93dafe97e70 it no longer parses headers anyway and it wasn't doing anything with it. Also tested on Windows.
* Drop deprecated and redundant universal newline modeTomasz Miąsko2018-12-091-1/+1
|
* Drop all Python 2 compat codeChristoph Reiter2018-12-082-9/+0
| | | | We only support 3.4+ now.
* autotools: remove release helper targetsChristoph Reiter2018-12-071-52/+0
| | | | They haven't been used in years and would need an update for meson.
* tests: depend on flake8 instead of including pep8/pyflakesChristoph Reiter2018-08-152-2662/+0
| | | | | | | | | | | | | | | | g-i includes an old version of pep8 and pyflakes and uses that during "make check". It (1) doesn't catch all cases newer versions of pycodestyle/pyflakes catch and (2) doesn't test all Python files (3) doesn't work with meson. Instead of updating just remove them and depend on flake8 instead. To run the checks simply run flake8 in the root dir. This also makes it possible to run those checks when using meson and not autotools. To not get test suite failures on flake8 updates move the checks from "make check" to an extra "make check.quality" target.
* Gio-2.0.gir: Don't exclude gsettingsbackend.h and pass needed defineRico Tzschichholz2016-10-031-1/+1
|
* Salvage the build directory parameter of update-glib-annotations.pyMikhail Zabaluev2015-10-151-9/+8
| | | | | | | It was not possible to use the tool with a custom build directory, even when it was given as the second command line parameter. https://bugzilla.gnome.org/show_bug.cgi?id=756665
* Change update-glib-annotations to use Python 3Simon Feltman2015-09-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use unicode literals in all Python filesSimon Feltman2015-09-292-1/+6
| | | | | | | | | | | | Add unicode_literals future import which turns any string literal into a unicode string. Return unicode strings from the Python C extension module. Force writing of annotations (g-ir-annotation-tool) to output utf8 encoded data to stdout. This is an initial pass at following the "unicode sandwich" model of programming (http://nedbatchelder.com/text/unipain.html) needed for supporting Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Replace repr format usage with string formatterSimon Feltman2015-09-291-2/+2
| | | | | | | | | | | Replace occurances of "%r" (repr) in format strings where the intended behaviour is to output a quoted string "'foo'" with explicit usage of "'%s'". This is needed to move the codebase to unicode literals in order to upgrade to Python 3. Python 2 unicode strings are expanded with repr formatting prefixed with a "u" as in "u'foo'" which causes failures for various text formatting scenarios. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use print as a function for Python 3 compatibilitySimon Feltman2015-09-292-6/+8
| | | | | | | Use future import "print_function" and update relevant uses of print as a function call. See: PEP 3105 https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Enable "true division" for all Python filesSimon Feltman2015-09-292-0/+2
| | | | | | | | | | Import Python 3 compatible "true division" from the future (PEP 238). This changes the Python 2 classic division which uses floor division on integers to true division. Verfied we don't actually use the division operator anywhere in the code base so this a safety for supporting both Python 2 and 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use absolute_import for all Python filesSimon Feltman2015-09-292-0/+3
| | | | | | Use absolute_import to ensure Python 3 compatibility of the code base. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* tests: Update misc/pep8.py to 1.6.2Dieter Verfaillie2015-06-291-366/+610
| | | | | Updated from: https://raw.githubusercontent.com/jcrocholl/pep8/1.6.2/pep8.py
* tools: move verbump.py from tools to misc...Dieter Verfaillie2015-06-291-0/+47
| | | | ... so it lives next to the rest of the maintainer utilities.
* misc: add tool semi-automating the GTK-Doc test suite update procedureDieter Verfaillie2015-06-241-0/+234
| | | | | | | | | Creates .xml.in files in tests/scanner/annotationparser/gtk-doc which then need to be carefully compared for changes (using your favorite diff tool) with the .xml files already contained in that same directory. https://bugzilla.gnome.org/show_bug.cgi?id=725685
* tests: Update misc/pep8.py to 1.4.6Dieter Verfaillie2013-10-081-62/+78
| | | | | Updated from: https://raw.github.com/jcrocholl/pep8/1.4.6/pep8.py
* gir: Add gmodule-2.0.cRico Tzschichholz2013-09-131-0/+5
| | | | | Grab annotions from gmodule like we do for glib and gio. This result in a properly generated and documented GModule-2.0.gir.
* tests: Update misc/pep8.py to 1.4.5Dieter Verfaillie2013-05-071-433/+1451
| | | | | | | | | | | | | | | | | Version in our tree is a wee bit outdated. For example, later work will introduce an utf8 encoded python source file which our old pep8.py does not yet understand (yeah, it really was *that* ancient)... Updated from: https://raw.github.com/jcrocholl/pep8/1.4.5/pep8.py Takes 552c1f1525e37a30376790151c1ba437776682c5, f941537d1c0a40f0906490ed160db6c79af572d3, 5a4afe2a77d0ff7d9fea13dd93c3304a6ca993de and a17f157e19bd6792c00321c8020dca5e5a281f45 into account... https://bugzilla.gnome.org/show_bug.cgi?id=699535
* Remove the insane pre-commit hookJasper St. Pierre2013-02-011-86/+0
| | | | | | I'm sick and tired of this. https://bugzilla.gnome.org/show_bug.cgi?id=693040
* update-glib-annotations: Set required environment variablesColin Walters2012-04-171-0/+5
| | | | Assume srcdir=builddir, so users don't have to set this.
* Don't extract annotations from headersJohan Dahlin2012-04-051-16/+0
| | | | | | The headers are already parsed as they are passed in to g-ir-scanner. This avoids quite a few warnings triggered with the new annotation parser.
* update-glib-annotations.py: reduce code duplicationDieter Verfaillie2012-04-051-63/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672254
* Add a make-check check to pre-commit hookJohan Dahlin2011-08-291-0/+16
|
* update-glib-annotations.py: Attempt to make work for srcdir!=builddirColin Walters2011-07-221-15/+24
| | | | | | | This doesn't quite work yet because we need to know from glib which files are in srcdir and which are in builddir. Also add some debugging prints.
* update-glib-annotations.py: Merge annotation extraction scriptsColin Walters2011-06-233-64/+94
|
* update-glib-annotations.py: new scriptColin Walters2011-06-071-0/+28
|
* misc: rewrite extract-gio-sources.sh to use gio-public-headers.txtColin Walters2011-06-072-10/+28
| | | | | | | Rather than maintaining our own exclusion list, grab the text file generated by commit ab0e9dbfa76e056f875e969c0d7b6e133ec75431 in glib. Also it is now Python for sanity.
* misc: rewrite extract-gobject-sources.sh to use gobject-public-headers.txtColin Walters2011-06-072-12/+26
| | | | | | | Rather than maintaining our own exclusion list, grab the text file generated by commit ab0e9dbfa76e056f875e969c0d7b6e133ec75431 in glib. Also it is now Python for sanity.
* Fix misc/extract-gobject-sources.sh.Pavel Holejsovsky2010-12-191-2/+5
| | | | | g-ir-annotation-tool is in builddir root now. Also avoid feeding problematic and not-GI-useful headers to it.
* Update path to g-ir-annotation-tool in extract-gio-sources.sh.Pavel Holejsovsky2010-12-161-1/+1
|
* Add a script to import gobject annotationsJohan Dahlin2010-09-241-0/+9
|
* Add a script to extract gio annotationsJohan Dahlin2010-09-241-0/+10
|
* [pep8] Skip emacs backup filesJohan Dahlin2010-09-061-0/+3
|
* pep8: Update to 99 length linesColin Walters2010-08-311-1/+1
| | | | | 69 is just too short for a compiler with long error messages and nested code.
* Add a pre-commit hook and enforce itJohan Dahlin2010-08-171-0/+70
|
* Fix pep8.py and its invocation.Chris Rivera2009-05-281-1/+1
| | | | | | | | | | pep8.py:input_file() normally returns the number of errors found in a given file, but it returns an empty dict if the file is excluded. Change it to return 0 instead. config.py is auto-generated with a prefix that may be longer than 80 characters. Exclude config.py in the pep8.py check. This fixes 4042.
* Disable blank line check, it works differently under Python 2.5 from 2.6Johan Dahlin2009-01-031-28/+0
| | | | | | | | | | | 2009-01-03 Johan Dahlin <jdahlin@async.com.br> * misc/pep8.py: Disable blank line check, it works differently under Python 2.5 from 2.6 and was rather annoying from the start. svn path=/trunk/; revision=999
* Make pyflakes.py conform to pep8.pyJohan Dahlin2008-08-141-27/+56
| | | | svn path=/trunk/; revision=371
* Add pyflakes.py and run it in make check. Update the source code to fixJohan Dahlin2008-08-141-0/+513
| | | | | | | | | | | | | | | | | 2008-08-14 Johan Dahlin <johan@gnome.org> * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * misc/pyflakes.py: * tests/Makefile.am: Add pyflakes.py and run it in make check. Update the source code to fix the errors reported by pyflakes. svn path=/trunk/; revision=370
* add a pep8 scriptJohan Dahlin2008-08-101-0/+867
svn path=/trunk/; revision=343