William S Fulton
4f7106cda2
Merge branch 'js-v8-52-tests'
...
* js-v8-52-tests:
fixed nvm
node tests: use provided version if present
travis tests for different node versions
fix travis tests
Test NodeJS 4, 6, 8, and 10
Remove warnings on Node 6.x aka V8 5.0 and 5.1
Add Node 7.x aka V8 5.2+ support
2018-08-02 07:10:55 +01:00
William S Fulton
8f224694e7
Python help for py3 update
2018-07-23 07:56:47 +01:00
William S Fulton
0bede22fbc
Add changes file entry for %pythonnondynamic fix
2018-07-23 07:39:09 +01:00
William S Fulton
037bf2b385
Slim down pythonnondynamic testing feature testing
...
No need to test twice, just test using C.
2018-07-23 07:27:01 +01:00
William S Fulton
89f00ca2f3
Fix pythonnondynamic feature for modern classes and Python 3
...
Corrects adding metaclass to the nondynamic class so that the
implementation works. Uses metaclass syntax that will work for both
python 2 and 3 or proper Python 3 syntax when using -py3.
2018-07-23 07:26:48 +01:00
William S Fulton
fe082382c7
Fix pythonnondynamic feature for modern classes
...
Fixes nondynamic mode when an instance variable is set with the same
name as a class variable in a class derived from a SWIG proxy class.
The python_nondynamic testcase now works using -modern and testcase
enhanced slightly too.
Fixes #718
2018-07-23 07:25:11 +01:00
furylynx
bb73a1ce52
fixed nvm
2018-07-21 21:19:28 +02:00
furylynx
2785313706
node tests: use provided version if present
2018-07-21 16:41:06 +02:00
furylynx
1cbabb2e06
travis tests for different node versions
2018-07-21 16:17:54 +02:00
furylynx
7f886fd4fc
fix travis tests
2018-07-21 12:47:03 +02:00
William S Fulton
5ce880ee41
Fix SWIG_Py_None regression from last commit
2018-07-18 11:44:27 +01:00
William S Fulton
344e9fefa8
Python singletons tidy up
2018-07-17 20:23:55 +01:00
William S Fulton
d56d7a7253
Initialize Python function-local statics (singletons)
...
Singletons are created during Python module initialization in order to avoid
deadlocks with subsequent multi-threaded usage.
Fixes #1275 #1279
2018-07-17 19:56:12 +01:00
William S Fulton
8e6799d783
Revert "Merge branch 'petrmitrichev-remove-function-local-statics'"
...
This reverts commit b8ed7759d5 , reversing
changes made to 6f2399e86d .
2018-07-17 08:46:53 +01:00
William S Fulton
f8ffc04215
Use SWIGRUNTIME for SwigPyObject_repr2
2018-06-30 19:30:58 +01:00
William S Fulton
b8ed7759d5
Merge branch 'petrmitrichev-remove-function-local-statics'
...
* petrmitrichev-remove-function-local-statics:
Python initialization code tidy up
Remove SWIG_STATIC_POINTER (Python)
Add comments that explain the need for globals.
Avoid function-local statics that call Python code to avoid deadlocks with GIL
2018-06-30 19:29:29 +01:00
William S Fulton
4b4e0180f4
Python initialization code tidy up
...
I've moved the initialization of statics a little earlier on - a little
safer as it is hard to follow exactly when some of these were being
used, such as SWIG_Py_None which sometimes replaces Py_None.
2018-06-30 19:28:03 +01:00
William S Fulton
b3763c8dc8
Remove SWIG_STATIC_POINTER (Python)
...
It's use has been removed to discourage thread unsafe static
initialisation.
2018-06-30 17:47:01 +01:00
Petr Mitrichev
40ea0a9606
Add comments that explain the need for globals.
2018-06-28 17:33:31 +02:00
Petr Mitrichev
d956081fd3
Avoid function-local statics that call Python code to avoid deadlocks with GIL
2018-06-28 14:27:52 +02:00
William S Fulton
6f2399e86d
Switch Travis additional testing from python 3.6 to 3.7
2018-06-18 19:40:16 +01:00
William S Fulton
602b0d5a2c
Add doxygen testing of Java constructor wrappers
2018-06-18 18:56:21 +01:00
William S Fulton
9cc05724ef
Add java runtime test for nested classes
2018-06-18 18:55:14 +01:00
William S Fulton
c5f9bb1e41
Add doxygen test for nested classes
2018-06-18 07:43:27 +01:00
William S Fulton
9f3ee5b965
Doxygen JavaDoc class comments fix
...
Generate "javaimports" typemap contents before Doxygen JavaDoc comments.
2018-06-17 00:17:07 +01:00
William S Fulton
5cfb04adb7
Show enum name in presence of Doxygen comment for simple Java enums
2018-06-17 00:17:07 +01:00
William S Fulton
cb8d42b750
Doxygen comment JavaDoc indentation fix for simple Java enums
2018-06-17 00:17:07 +01:00
William S Fulton
ae32180709
Remove duplicate doxygen comment when using simple Java enums
2018-06-17 00:17:07 +01:00
William S Fulton
ecc66fdcbd
Add Doxygen test for constant and fix JavaDoc indentation
2018-06-17 00:17:07 +01:00
William S Fulton
50d7f36f45
Correct JavaDoc from doxygen comments indentation
...
Adds missing JavaDoc indentation for doxygen comments obtained from:
- enum values
- class methods
- constructors
- global functions/variables
2018-06-17 00:16:57 +01:00
William S Fulton
d22ecafb36
Fix Java doxygen:notranslate for single line comments
...
Remove extra generated line
2018-06-16 21:23:12 +01:00
William S Fulton
57f7070406
Turn on Travis testing of Python 3.7
2018-06-15 19:40:35 +01:00
William S Fulton
1665712fcb
Python 3.7 support: Remove use of deprecated PyUnicode_GetSize
2018-06-15 19:39:19 +01:00
William S Fulton
e96316bf31
Fix seg fault using Python 2 invalid utf-8 strings and wstring
...
Fixes seg fault when passing a Python string, containing invalid utf-8 content,
to a wstring or wchar * parameter. A TypeError is thrown instead, eg:
%include <std_wstring.i>
void instring(const std::wstring& s);
instring(b"h\xe9llooo") # Python
2018-06-15 19:39:12 +01:00
William S Fulton
3915e7bd08
Remove final remnants of GCJ - jstring.i
2018-06-15 06:57:53 +01:00
William S Fulton
4079fb927b
Python 3.7 support - deprecation of classes in the collections module
...
Change the base classes in the pyabc.i file to use the
collections.abc module instead of collections due to the deprecation
of the classes in the collections module in Python 3.7.
2018-06-12 21:05:07 +01:00
William S Fulton
47297f3453
Mark some changes entries as potentially incompatible
2018-06-12 20:23:48 +01:00
William S Fulton
6bf1cba6b5
Note versions of Python which are no longer supported in changes file
2018-06-12 20:16:11 +01:00
William S Fulton
56f5b1c3c2
Restore Travis testing of Python 3.2/3.3
2018-06-12 08:02:23 +01:00
William S Fulton
ecf61f8e39
Restore Python 3.2/3.3 support
2018-06-12 08:02:23 +01:00
William S Fulton
cf3ff89433
Fix doxygen testing for jdk < 9
2018-06-11 23:40:58 +01:00
Olly Betts
7f98830110
[Python] Fix new GCC8 warnings in generated code
...
Avoid casts between incompatible function types where possible (when
keyword args are in use, it is not possible to avoid such warnings as
they are inherent in the design of Python's C API in that particular
case). Fixes #1259 .
2018-06-11 15:51:53 +12:00
William S Fulton
a539d9e1e5
Remove some debugging in java Makefile
2018-06-09 00:49:56 +01:00
William S Fulton
b0a42e38e7
Revert "JAVA_HOME nad tools.jar not needed for Java testing"
...
This reverts commit 7373b99079 .
Seems to be needed for older jdks - needs some more work, as the
classpath used is not correct for jdk9.
2018-06-09 00:40:26 +01:00
William S Fulton
7373b99079
JAVA_HOME nad tools.jar not needed for Java testing
...
tools.jar doesn't seem to be needed (in jdk9 anyway), so removing it.
2018-06-08 19:12:39 +01:00
William S Fulton
4e27fdbfc1
Fix java test-suite parallel build (doxygen test cases)
...
CommentParser.class was being generated and read from multiple threads
Compile it just once using make dependencies.
2018-06-08 08:40:07 +01:00
Olly Betts
2ea976f1d8
Always use PyCapsule
...
It is supported by all the Python versions we now support.
2018-06-08 11:08:31 +12:00
Olly Betts
a82c1b943b
Drop support for Python 3.0 to 3.3
...
See #701 .
2018-06-08 11:08:31 +12:00
Olly Betts
1198155083
Drop Python 2.6 support too
...
See #701 .
2018-06-08 11:08:31 +12:00
Olly Betts
78c56168ab
Update manual contents for removed Python section
...
I removed the section on classic classes in the previous commit,
but failed to update the contents list.
2018-06-08 11:08:31 +12:00