Commit Graph

39 Commits

Author SHA1 Message Date
rdb ee4e9c224c
Remove Python 2 support, six dependency (#619) 2022-10-16 14:56:56 +02:00
Mirko Galimberti fe46b03657
update CHANGELOG and version (#624) 2022-05-29 11:11:03 +02:00
Lucas Fernandes Oliveira 6699ec4187
add suffix to support IBM jre on Windows (#622)
Co-authored-by: Lucas Oliveira <lucasfeol94@@mgail.com>
2022-05-29 10:47:45 +02:00
Gabriel Pettier 4f9bb54100 update CHANGELOG and version 2021-10-30 14:18:57 +02:00
Gabriel Pettier f8bd8f64a4 1.4.0 release 2021-08-24 23:18:10 +02:00
Craig Macdonald d5d4c99b6f refactoring of Java location bootstrap, addressing #537 2021-08-23 01:30:45 +02:00
Gabriel Pettier c083fce166 Release 1.3.0
Full Changelog: https://github.com/kivy/pyjnius/compare/1.2.1...1.3.0

Implemented enhancements:
- (https://github.com/kivy/pyjnius/pull/483)/(https://github.com/kivy/pyjnius/pull/489) allow passing a `signature` argument to constructors, to force selection of the desired one
- (https://github.com/kivy/pyjnius/pull/497)/(https://github.com/kivy/pyjnius/pull/506)/(https://github.com/kivy/pyjnius/pull/507) support for more "dunder" methods/protocols on compatible interfaces than just `__len__`, and allow users to provide their own.
- (https://github.com/kivy/pyjnius/pull/500)(https://github.com/kivy/pyjnius/pull/522) allow ignoring private methods and fields in autoclass (both default to False)
- (https://github.com/kivy/pyjnius/pull/503) auto detect java_home on OSX, using `/usr/libexec/java_home` (if JAVA_HOME is not declared)
- (https://github.com/kivy/pyjnius/pull/514) writing to static fields (and fix reading from them)
- (https://github.com/kivy/pyjnius/pull/517) make signature exceptions more useful
- (https://github.com/kivy/pyjnius/pull/502) provide a stacktrace for where JVM was started.
- (https://github.com/kivy/pyjnius/pull/523) expose the class's class attribute
- (https://github.com/kivy/pyjnius/pull/524) fix handling of Java chars > 256 in Python3
- (https://github.com/kivy/pyjnius/pull/519) Always show the exception name

Fixed bugs:
- (https://github.com/kivy/pyjnius/pull/481) wrong use of strip on JRE path
- (https://github.com/kivy/pyjnius/pull/465) correct reflection to avoid missing any methods from parent classes or interfaces
- (https://github.com/kivy/pyjnius/pull/508) don't had error details with a custom exception when java class is not found
- (https://github.com/kivy/pyjnius/pull/510) add missing references to .pxi files in setup.py, speeding up recompilation
- (https://github.com/kivy/pyjnius/pull/518) ensure autoclass prefers methods over properties
- (https://github.com/kivy/pyjnius/pull/520) improved discovery of libjvm.so + provide a workaround if it doesn't work

Documentation:
- (https://github.com/kivy/pyjnius/pull/478) document automatic Thread detach feature
- (https://github.com/kivy/pyjnius/pull/512) document the requirement to keep reference to object/functions passed to java, for as long as it might use them
- (https://github.com/kivy/pyjnius/pull/521) fix inheritance in example

Many thanks to the contributors that stepped up to help this release, it wouldn't have been possible without them.

Craig Macdonald, Gabriel Pettier, Jim, André Miras, Young Ryul Bae, yyang, Pascal Chambon, Kevin Ollivier, Guillaume Gay, Christian M. Salamut, collaborated for this release.
2020-05-03 14:31:00 +02:00
Gabriel Pettier e685086aba bump to 1.2.2-dev0 2019-12-05 23:58:02 +01:00
Gabriel Pettier ede72eb1c9 1.2.1 release 2019-12-05 00:08:23 +01:00
Gabriel Pettier 76e100b0d5 build all manylinux in one step, no matrix 2019-12-01 02:47:47 +01:00
Gabriel Pettier cbd79e7716 bump 2019-11-30 17:04:26 +01:00
Gabriel Pettier 9ee1183cda fix import in python 3.8/windows 2019-11-30 16:27:24 +01:00
Gabriel Pettier 30cda7518f manylinux for linux build 2019-11-30 16:27:24 +01:00
Gabriel Pettier 810e391092 move env logic to submodule, allow runtime lookup
this should allow building portable wheels
2019-11-30 16:21:28 +01:00
Peter Badida 5f6aa738b2
Bump to 1.2.1.dev0 2019-02-04 10:58:50 +01:00
Peter Badida 8f3b16e23b
Bump to 1.2.0 2019-02-04 10:45:24 +01:00
Peter Badida 1c74839e1c
Bump to 1.1.5.dev0 2018-12-05 00:32:19 +01:00
Peter Badida 7bccd20523
Bump to 1.1.4 2018-12-04 23:55:16 +01:00
Peter Badida d75c428fb7
Bump to new dev version 2018-10-22 22:25:29 +02:00
Peter Badida 3d9ae0275a
Bump to 1.1.3 2018-10-22 21:35:54 +02:00
Dan 8d66f198db Add tests for isinstance, fix edge cases. 2017-12-11 14:04:32 -05:00
Mathieu Virbel f40123a9b8 Bump to 1.1.2-dev 2017-03-24 01:38:57 +01:00
Mathieu Virbel a7e791aa26 Bump to 1.1.1 2017-03-24 01:38:54 +01:00
Mathieu Virbel ca8c52e758 Bump to 1.1.1-dev 2017-03-23 21:04:39 +01:00
Mathieu Virbel 2aa566d37f Bump to 1.1.0 2017-03-23 21:04:35 +01:00
dessant b214ff1f8b pep8 fixes 2017-03-23 19:56:02 +02:00
Akshay Arora 81aabc58e9 Update __init__.py 2016-10-27 11:42:14 +05:30
Akshay Arora b5a1ecb7ec Detach only on android 2016-10-26 20:42:55 +05:30
Akshay Arora 9838660626 call detach on all threads before exiting 2016-10-26 20:34:01 +05:30
Mathieu Virbel ce3572ba79 fixes hashCode overflow. (disclamer: i wont talk about collision probabiliity or whatever. In my point of view, it seems very low, as the id() is based on the address of the object, it except if you uses tons of memory, you wont get it. And whatever the changes are, this will never keep up safe from colliding with others java object.). Closes #146 2015-03-02 11:22:05 +01:00
Mathieu Virbel f5b555d3d2 Add specific case for Android/libART: it crash if we check NativeInvocationHandler/InvocationHandler with isAssignableFrom. Plus, include some defaults methods implementation of java.lang.Object (hashCode, toString, equals), which is used by ART. Closes #92. Closes #113. 2014-07-31 13:49:25 +02:00
Mathieu Virbel e3a2965810 bump to 1.1-dev 2012-08-20 18:48:22 +02:00
Mathieu Virbel f9c63fd186 set version to 1.0 2012-08-20 18:47:44 +02:00
Mathieu Virbel 60ee14ed6f add the previous tests from python-for-android/javawrapper branch.
+ fix findclass (need cleaning)
+ fix array return with chars
+ export reflect module by default (it's already used in jnius so..)
2012-08-18 12:59:15 +02:00
Mathieu Virbel 774fc295e9 add cast(classname, obj) method to be able to use an instance from another class def 2012-08-16 00:16:17 +02:00
Mathieu Virbel a4af093aa1 raise exception correctly now + add more unittests 2012-08-15 16:31:22 +02:00
gabriel.pettier 83fb36b2c7 prefer () to \ to break long lines 2012-08-14 23:29:47 +02:00
Mathieu Virbel 7319fab9e5 fix package import, make tests work again. 2012-08-14 15:12:34 +02:00
Mathieu Virbel 162d011912 add autoclass/ensureclass, auto reflection for JavaObject, and fixes around j_self 2012-08-14 15:09:48 +02:00