33 Commits

Author SHA1 Message Date
Julien Cabieces
51dc2ec2ac api(Deprecated): Generate always /Deprecated/ annotation with text
Use cmake to remove text when SIP version is less than 6.9.0
2024-12-17 09:06:44 +01:00
Julien Cabieces
92db5c2d82 feat(Deprecated): Add message to SIP deprecated annotation
Works only with SIP 6.9.0
2024-12-17 09:05:46 +01:00
Nyall Dawson
ed19d996b2 Collect attribute docstrings for PyQGIS documentation 2024-08-14 13:05:46 +10:00
Nyall Dawson
849ff14dc8 Misc updates 2024-08-13 20:28:55 +10:00
Nyall Dawson
d5b4c71ecc Fix spacing 2024-08-13 20:28:55 +10:00
Denis Rouzaud
6e9933145a
Adds a file to hold a map from class/method to headerfile (#58054)
* create map file for class / header files for PyQGIS API docs

* create map files

* install file

* add line numbers

* also add methods

* wait to sort

* more methods

* fix CMakeLists install

* fix sorting

* fix spell check

* remove map files for Qt6

* Revert "remove map files for Qt6"

This reverts commit 972f483410f556d1735a2070943b8ad9e2522c5e.

* do not test class_map files + auto sipify_all on branches

* fix warning
2024-07-16 11:40:25 +02:00
Julien Cabieces
4c13db781c [PyQt6] Make sipify_all.sh generate sip files for both Qt5 and Qt6 2023-12-14 04:14:40 +10:00
Julien Cabieces
fd72e65209 fix sipify for qt5 2023-12-13 05:36:44 +10:00
Julien Cabieces
9f833af55c Modify sipify script to generate PyQt6 bindings 2023-12-13 05:36:44 +10:00
Loïc Bartoletti
a72ffafb8f Have to use g prefix for gnu tools also on *BSD 2022-03-17 08:18:45 +10:00
Denis Rouzaud
cb6b306b36
option to run sipify_all.sh on a single module (#40874) 2021-01-06 16:22:44 +01:00
Martin Dobias
88cb8313c8 Python bindings for QGIS 3D library 2018-10-13 22:05:39 +02:00
Denis Rouzaud
cc3e29bcc2 add __repr__ for more geometry classes and add test 2018-06-19 07:02:17 -04:00
Denis Rouzaud
e5b02cd2a8 use dedicated files for auto additions 2018-06-03 11:07:09 -08:00
Denis Rouzaud
6301f9b6f3 [sipify] write helpers in core.__init__.py for Q_ENUM
whenever reading a Q_ENUM macro, sipify will create a helper in the core module:
BaseClass.EnumType.parentClass = lamda: BaseClass

this will allow to use the meta object to access the QMetaEnum of the object
2018-05-17 22:54:18 -04:00
Denis Rouzaud
847f0e1829 adapt sipify scripts and test to place auto generated sip files in dedicated folder 2018-05-14 10:44:11 -04:00
Denis Rouzaud
0a93674329 make sipify_all.sh much faster by using background processes 2018-02-02 16:30:29 -09:00
Denis Rouzaud
1d4e6a820a [sipify] use configuration file for SIP sources (*.sip.in)
to allow preprocessing the files to handle version specific features such as template based classes documentation in 4.19.7+
2018-01-17 10:16:37 -04:00
Denis Rouzaud
5327978ecf SIP 4.19.7+ allows to document template based classes 2018-01-17 10:16:37 -04:00
Ismail Sunni
b7a4366c40 Add {GP} to make the script use gsed in macos. 2017-07-28 10:35:43 +02:00
Denis Rouzaud
54c6291378 script to write include SIP files 2017-06-28 10:45:51 +02:00
raymondnijssen
07b2bf1124 add some cheering 2017-04-30 14:47:44 +02:00
raymondnijssen
64215373e1 add beer 2017-04-30 14:47:44 +02:00
Denis Rouzaud
d71a563ee1 fix sipify_all 2017-04-30 12:58:34 +02:00
Denis Rouzaud
bbdc77dd91 followup #a86f5ea52d75862c190105d1ceb23c47a61bba4e fix issues links 2017-04-30 11:38:22 +02:00
Denis Rouzaud
a86f5ea52d remove PyNames for QgsGeometry::compare methods
single python method with some MethodCode to dispatch to proper cpp methods.
2017-04-30 11:29:45 +02:00
Denis Rouzaud
b88f350b22 add server files to sipify
you just now need to unblacklist them :)
2017-04-28 18:52:15 +02:00
Denis Rouzaud
70da6b6ee7 add server files to sipify
you just now need to unblacklist them :)
2017-04-28 16:45:04 +02:00
Denis Rouzaud
157709129e sipify layer tree classes 2017-04-25 13:28:01 +02:00
Matthias Kuhn
60e2b1b837 mac compatibility fix 2017-04-01 19:10:59 +02:00
Denis Rouzaud
21be025d25 use sip includes rather than listing header to generate all sip files 2017-03-30 15:13:01 +02:00
Denis Rouzaud
a3bdd4405a SIP test: use blacklist rather than whitelist 2017-03-30 15:13:01 +02:00
Denis Rouzaud
77d7236a93 sipify improvements
* remove enum value assignments
 * remove deleted functions
 * remove private members
 * remove function bodies
 * remove keywords (override, inline)
 * comment out but print SIP_SKIP
 * allow use of #if(n)def SIP_RUN and remove code in #else statements

 * fix PyName
 * fix SIP_SKIP

 * add a list of auto-generated sip files and a script to build them at once
2017-03-30 15:13:01 +02:00