William S Fulton
ec2b47ef2a
Remove need for Python 2to3
...
All Python examples and tests have been written to be both Python 2 and Python 3
compatible, removing the need for 2to3 to run the examples or test-suite.
The 2to3 executable is not always available and even when available does not
always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python
module instead, but this isn't available in some older versions of Python 3.
I had this problem on Ubuntu Bionic on Travis:
checking Examples/python/callback
pyenv: 2to3-3.8: command not found
The `2to3-3.8' command exists in these Python versions:
3.8
3.8.1
Reference issues:
https://github.com/pypa/virtualenv/issues/1399
https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
2020-08-15 18:04:58 +01:00
William S Fulton
89bee6a7fa
Modify examples to be both Python 2 and 3 compatible
...
For removing dependency on 2to3
2020-08-15 16:46:01 +01:00
William S Fulton
2af35cb4ff
Remove python3 specific runme3.py test files
...
This file can be run using Python 2, the test is just ignored
2020-08-15 12:20:23 +01:00
William S Fulton
d4ffa46f41
Convert python tests using 2to3
...
These tests were converted using 2to3 and should be valid using
Python 2.7 and Python 3+.
2020-08-15 00:16:04 +01:00
William S Fulton
66df0bd224
Convert python test scripts to be Python 2 and 3 compatible
...
Unicode testing
2020-08-15 00:09:31 +01:00
William S Fulton
36bb54f01d
Convert swigobject python test to be python 2 and 3 compatible
2020-08-14 23:27:35 +01:00
William S Fulton
982b08dced
Convert two tests to work with both Python 2 and 3
...
Now these two tests work without having to use 2to3
2020-08-13 23:34:28 +01:00
William S Fulton
d820045336
Improve director_exception Python test
...
Add code to handle missed exceptons.
Remove print statement.
2020-08-13 22:00:01 +01:00
William S Fulton
9169555628
Remove further print statements from Python tests
...
Use exceptions instead of printing to stdout.
Part of an effort to convert Python tests to python 3 syntax.
2020-08-13 21:47:20 +01:00
William S Fulton
64d3617b3c
Improve Python testing catching exceptions
...
Catch expected exceptions only
2020-08-13 21:40:11 +01:00
William S Fulton
7c34d3828f
Improve contract Python testcase testing
...
Catch expected exceptions only - fix bug in test
2020-08-13 21:31:56 +01:00
William S Fulton
365d4961d4
Remove print statements from Python tests
...
Use exceptions instead of printing to stdout.
Part of an effort to convert Python tests to python 3 syntax.
2020-08-13 21:22:47 +01:00
William S Fulton
e535190c34
Update Visual C++ instructions in Windows.html
2020-08-13 20:07:10 +01:00
William S Fulton
f383095851
Alphabetise testing of examples
2020-08-13 20:07:10 +01:00
William S Fulton
143837ddf1
Update changes file
2020-08-13 16:26:50 +01:00
William S Fulton
bfddc50a6a
Add C# support for void *VOID_INT_PTR member variables
...
Issue reported by Carlos Frederico Biscaya on swig-user mailing list.
2020-08-13 16:06:48 +01:00
William S Fulton
a38f30a194
Add basic std::pair Python testing
...
Based on Ruby's li_std_pair_runme.rb
2020-08-13 16:06:48 +01:00
William S Fulton
46e17f1458
Merge pull request #1843 from chrisburr/patch-1
...
PyTypeObject::ob_base isn't available in PyPy
2020-07-29 21:49:50 +01:00
Chris Burr
eafe1e2daa
Use Py_TYPE in SwigPyBuiltin_SetMetaType
2020-07-28 08:11:02 +02:00
Chris Burr
917110212e
PyTypeObject::ob_base isn't available in PyPy
2020-07-17 12:15:54 +02:00
William S Fulton
d967e4c8b8
Use conventional 'v' prefix for release tagging
...
See semantic versioning:
https://semver.org/spec/v2.0.0.html
Closes #1825
2020-06-23 19:18:58 +01:00
William S Fulton
ce4164b66d
Add director comparison operator fix to changes file
2020-06-14 23:09:11 +01:00
William S Fulton
ee7eb6b58a
Merge branch 'directors-comparison-operators'
...
* directors-comparison-operators:
Use %rename
Fix wrapping of virtual comparison operators with directors
2020-06-14 22:23:57 +01:00
William S Fulton
09a5b83aac
Merge pull request #1822 from vapier/master
...
configure: use AC_PATH_TOOL for pkg-config
2020-06-14 10:23:02 +01:00
William S Fulton
4546aae41d
Add missing python cygwin build in appveyor.yml
2020-06-13 14:04:50 +01:00
William S Fulton
148f6b48fc
Move python cygwin to Appveyor allow_failure list.
2020-06-13 13:56:28 +01:00
Mike Frysinger
e9a21197ec
configure: use AC_PATH_TOOL for pkg-config
...
AC_CHECK_PROGS will find the tool using exactly the name given: it
only searches for "pkg-config". When doing native builds, this is
generally fine. However, when cross-compiling, this is not ideal
as `pkg-config` is often configured for the build system, not the
system we want to cross-compile for.
Switch to using the AC_PATH_TOOL tool instead. This will look for
"pkg-config" with a $host- prefix first before falling back to the
plain "pkg-config". When doing native builds, things should still
behave the same, but now things work better out of the box when we
cross-compile.
For example, `./configure --host=aarch64-linux-gnu` will first look
for "aarch64-linux-gnu-pkg-config" before falling back to the plain
"pkg-config".
2020-06-12 19:08:29 -04:00
William S Fulton
b94dd4b770
Merge branch 'pyopers-docs'
...
* pyopers-docs:
Fix references to pyopers.swg in the Python docs
2020-06-12 23:10:45 +01:00
William S Fulton
23e5362882
Merge branch 'vapier-master'
...
* vapier-master:
configure: change $PKGCONFIG to $PKG_CONFIG
2020-06-12 23:09:31 +01:00
William S Fulton
d3fa519a9c
Stop running cygwin python test on Appveyor
...
Currently broken, unable to find header files.
2020-06-12 23:08:00 +01:00
William S Fulton
8bf2f473f4
Revert "Allow cygwin to fail on Appveyor"
...
This reverts commit dbb88876e6 .
2020-06-12 23:06:40 +01:00
Mike Frysinger
24945669fd
configure: change $PKGCONFIG to $PKG_CONFIG
...
The PKG_CONFIG variable name aligns with the standard upstream
value that the pkg-config project itself uses.
2020-06-11 18:04:15 -04:00
Zackery Spytz
8f795a4220
Fix references to pyopers.swg in the Python docs
...
[skip ci]
2020-06-09 17:42:46 -06:00
William S Fulton
b7bcb338cf
Add C++20 documentation chapter
2020-06-08 20:56:40 +01:00
William S Fulton
dbb88876e6
Allow cygwin to fail on Appveyor
2020-06-08 20:52:10 +01:00
William S Fulton
470d1926f8
Bump version to 4.1.0
2020-06-08 20:47:47 +01:00
William S Fulton
efe5f181cf
html fixes
2020-06-08 20:19:47 +01:00
William S Fulton
7070320335
Revert "Add C++20 documentation chapter"
...
This reverts commit 36e8d521de .
Conflicts:
Doc/Manual/R.html
2020-06-08 20:06:55 +01:00
William S Fulton
3c007e81d6
swig-4.0.2 release notes
2020-06-07 23:03:06 +01:00
Zackery Spytz
b1b13d7d0a
Use %rename
2020-06-07 13:56:07 -06:00
William S Fulton
8041bfdf09
Ruby testcase fix
...
Reportedly failing. Failure can be replicated with 2.5.1 by increasing
number of loops.
Workaround is to disable GC.
Closes #1646
2020-06-07 17:59:21 +01:00
William S Fulton
db3774ac8d
Merge branch 'develop'
...
Github issue #1805 and pull request #1807
* develop:
Replace `-isystem` compile flag with `-I`
2020-06-07 14:05:10 +01:00
William S Fulton
a70998889b
Changes file updates
2020-06-07 11:32:16 +01:00
William S Fulton
938c3bbb54
Merge branch 'fix-1199'
...
* fix-1199:
fix #1199
2020-06-07 10:29:55 +01:00
William S Fulton
991c2afe11
Merge branch 'python-doxygen-quotes'
...
* python-doxygen-quotes:
Fix generated Python code for Doxygen comments with triple quotes
Fix generated Python code for Doxygen comments ending with quote
2020-06-07 10:23:33 +01:00
William S Fulton
2e846e564d
Merge branch 'escape-filepaths'
...
* escape-filepaths:
escape phony targets as well
escape target name
escape path of generated file
escape filepaths
2020-06-07 10:11:39 +01:00
William S Fulton
ba0154d90a
Fix node 6 and 8 testing on Travis
...
Later versions of node-gyp (7.0.0) being installed by npm don't seem
to work with node 6 and 8.
2020-06-06 10:29:41 +01:00
William S Fulton
6275af60a7
Ruby s390x now working on Travis
2020-06-06 08:46:09 +01:00
William S Fulton
a6dc8821c2
Merge branch 'andreas-schwab-master'
...
* andreas-schwab-master:
Ruby wstring - only include endian.h on linux
2020-06-06 08:42:17 +01:00
Andreas Schwab
58ffbe616f
Ruby wstring - only include endian.h on linux
...
This file is not always available on other systems.
See #1801
2020-06-06 08:39:47 +01:00