jni 1.0.0b22__zip → 1.1.0b6__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jni-1.1.0b6/.gitattributes +3 -0
- jni-1.1.0b6/.github/FUNDING.yml +1 -0
- jni-1.1.0b6/.gitignore +6 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/.readthedocs.yml +1 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/CHANGES.rst +12 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/PKG-INFO +32 -19
- {jni-1.0.0b22 → jni-1.1.0b6}/README.rst +4 -3
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/conf.py +2 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/install.rst +2 -2
- jni-1.1.0b6/pyproject.toml +350 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/__about__.py +0 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/_config.py +1 -2
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/_util.py +1 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/__init__.py +1 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/_notes_.txt +23 -19
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/darwin/jni_md.h.dsc.txt +2 -2
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/jni.h.dsc.txt +2 -2
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/linux/jni_md.h.dsc.txt +2 -2
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/win32/jni_md.h.dsc.txt +2 -2
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cffi/__init__.py +17 -17
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/ctypes/__init__.py +3 -3
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/ctypes/_ct.py +5 -8
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cython/__init__.py +20 -20
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cython/jni.c +1865 -1773
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cython/jni.h +1 -1
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/jni.c +13 -4
- jni-1.1.0b6/src/jni/pvm.c +228 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni.egg-info/PKG-INFO +32 -19
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni.egg-info/SOURCES.txt +5 -0
- jni-1.1.0b6/src/jni.egg-info/requires.txt +22 -0
- jni-1.1.0b6/tests/__main.py +134 -0
- jni-1.1.0b6/tests/__main__.py +11 -0
- jni-1.1.0b6/tests/_jvm.py +254 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/AbstractCallback.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/BaseExample.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/Example$1.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/Example$Inner.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/Example$Stuff.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/Example.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/ICallback.class +0 -0
- jni-1.1.0b6/tests/java/classes/org/jt/jni/test/Thing.class +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/test_jni.py +52 -51
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/test_util.py +2 -1
- jni-1.0.0b22/pyproject.toml +0 -304
- jni-1.0.0b22/src/jni.egg-info/requires.txt +0 -22
- jni-1.0.0b22/tests/__main__.py +0 -89
- jni-1.0.0b22/tests/_jvm.py +0 -136
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/AbstractCallback.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/BaseExample.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/Example$1.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/Example$Inner.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/Example$Stuff.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/Example.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/ICallback.class +0 -0
- jni-1.0.0b22/tests/java/classes/org/jt/jni/test/Thing.class +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/LICENSE +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/MANIFEST.in +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/CHANGES.rst +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/MappingPyJNI.txt +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/README.rst +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/_static/.keep +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/_templates/.keep +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/index.rst +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/docs/userguide.rst +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/setup.cfg +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/setup.py +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/__config__.py +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/__init__.py +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/darwin/jni_md.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/jni.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/linux/jni_md.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk/include/win32/jni_md.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/java/jdk-8_android/include/jni.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/capi/jni.c +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cffi/jni.h +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cffi/jni.py +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cython/jni.pxd +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/cython/jni.pyx +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni/jni.cfg +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni.egg-info/dependency_links.txt +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni.egg-info/not-zip-safe +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/src/jni.egg-info/top_level.txt +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/__init__.py +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/lib/.keep +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/org/jt/jni/test/AbstractCallback.java +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/org/jt/jni/test/BaseExample.java +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/org/jt/jni/test/Example.java +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/org/jt/jni/test/ICallback.java +0 -0
- {jni-1.0.0b22 → jni-1.1.0b6}/tests/java/org/jt/jni/test/Thing.java +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
custom: ["https://www.paypal.com/donate/?hosted_button_id=FX8L7CJUGLW7S"]
|
jni-1.1.0b6/.gitignore
ADDED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
1.1.0b6 (2024-12-01)
|
|
5
|
+
--------------------
|
|
6
|
+
- Fixes for embedded python.
|
|
7
|
+
- Java 17 is now the primary build/test environment.
|
|
8
|
+
- Add support for Python 3.13
|
|
9
|
+
- Drop support for Python 3.8
|
|
10
|
+
- jni.c and pvm.c (useful for embedded python apps) have been added.
|
|
11
|
+
- Unittest have been performed for much more JVMs.
|
|
12
|
+
- Tox configuration is now in native (toml) format.
|
|
13
|
+
- Setup fixes.
|
|
14
|
+
- Setup (dependencies) update.
|
|
15
|
+
|
|
4
16
|
1.0.0b22 (2024-01-26)
|
|
5
17
|
---------------------
|
|
6
18
|
- Tox configuration has been moved to pyproject.toml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jni
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.0b6
|
|
4
4
|
Summary: Python bridge for the Java Native Interface.
|
|
5
5
|
Author: Adam Karpierz
|
|
6
6
|
Author-email: adam@karpierz.net
|
|
@@ -22,38 +22,38 @@ Classifier: Operating System :: OS Independent
|
|
|
22
22
|
Classifier: Natural Language :: Polish
|
|
23
23
|
Classifier: Programming Language :: Python
|
|
24
24
|
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
29
28
|
Classifier: Programming Language :: Python :: 3.12
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
30
30
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
31
31
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
32
32
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
33
33
|
Classifier: Programming Language :: Java
|
|
34
34
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
35
35
|
Classifier: Topic :: Software Development :: Libraries :: Java Libraries
|
|
36
|
-
Requires-Python: <4.0.0,>=3.
|
|
36
|
+
Requires-Python: <4.0.0,>=3.9.0
|
|
37
37
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
38
38
|
License-File: LICENSE
|
|
39
|
-
Requires-Dist: setuptools>=
|
|
40
|
-
Requires-Dist: pkg-about>=1.
|
|
39
|
+
Requires-Dist: setuptools>=75.6.0
|
|
40
|
+
Requires-Dist: pkg-about>=1.2.5
|
|
41
41
|
Provides-Extra: cffi
|
|
42
|
-
Requires-Dist: cffi>=1.
|
|
42
|
+
Requires-Dist: cffi>=1.17.1; extra == "cffi"
|
|
43
43
|
Provides-Extra: cython
|
|
44
|
-
Requires-Dist: Cython>=3.0.
|
|
44
|
+
Requires-Dist: Cython>=3.0.11; extra == "cython"
|
|
45
45
|
Provides-Extra: doc
|
|
46
|
-
Requires-Dist: Sphinx>=7.
|
|
47
|
-
Requires-Dist: sphinx-toolbox>=3.
|
|
48
|
-
Requires-Dist: sphinx-tabs>=3.4.
|
|
49
|
-
Requires-Dist: sphinx-copybutton>=0.5.
|
|
50
|
-
Requires-Dist: sphinxcontrib-spelling>=
|
|
51
|
-
Requires-Dist: sphinx-lint>=0.
|
|
46
|
+
Requires-Dist: Sphinx>=7.4.7; extra == "doc"
|
|
47
|
+
Requires-Dist: sphinx-toolbox>=3.8.1; extra == "doc"
|
|
48
|
+
Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
|
|
49
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
|
|
50
|
+
Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
|
|
51
|
+
Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
|
|
52
52
|
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
53
|
-
Requires-Dist: nbsphinx>=0.
|
|
53
|
+
Requires-Dist: nbsphinx>=0.9.5; extra == "doc"
|
|
54
54
|
Provides-Extra: test
|
|
55
|
-
Requires-Dist: deepdiff>=
|
|
56
|
-
Requires-Dist: rich>=13.
|
|
55
|
+
Requires-Dist: deepdiff>=8.0.1; extra == "test"
|
|
56
|
+
Requires-Dist: rich>=13.9.4; extra == "test"
|
|
57
57
|
|
|
58
58
|
jni
|
|
59
59
|
===
|
|
@@ -91,10 +91,10 @@ Installation
|
|
|
91
91
|
|
|
92
92
|
Prerequisites:
|
|
93
93
|
|
|
94
|
-
+ Python 3.
|
|
94
|
+
+ Python 3.9 or higher
|
|
95
95
|
|
|
96
96
|
* https://www.python.org/
|
|
97
|
-
* Java
|
|
97
|
+
* Java 17 is a primary test environment.
|
|
98
98
|
|
|
99
99
|
+ pip and setuptools
|
|
100
100
|
|
|
@@ -141,7 +141,7 @@ or on development mode:
|
|
|
141
141
|
License
|
|
142
142
|
=======
|
|
143
143
|
|
|
144
|
-
|
|
|
144
|
+
| |copyright|
|
|
145
145
|
| Licensed under CC BY-NC-ND 4.0
|
|
146
146
|
| Licensed under proprietary License
|
|
147
147
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -153,6 +153,7 @@ Authors
|
|
|
153
153
|
|
|
154
154
|
.. |package| replace:: jni
|
|
155
155
|
.. |package_bold| replace:: **jni**
|
|
156
|
+
.. |copyright| replace:: Copyright (c) 2004-2024 Adam Karpierz
|
|
156
157
|
.. |respository| replace:: https://github.com/karpierz/jni.git
|
|
157
158
|
.. _Development page: https://github.com/karpierz/jni
|
|
158
159
|
.. _PyPI record: https://pypi.org/project/jni/
|
|
@@ -161,6 +162,18 @@ Authors
|
|
|
161
162
|
Changelog
|
|
162
163
|
=========
|
|
163
164
|
|
|
165
|
+
1.1.0b6 (2024-12-01)
|
|
166
|
+
--------------------
|
|
167
|
+
- Fixes for embedded python.
|
|
168
|
+
- Java 17 is now the primary build/test environment.
|
|
169
|
+
- Add support for Python 3.13
|
|
170
|
+
- Drop support for Python 3.8
|
|
171
|
+
- jni.c and pvm.c (useful for embedded python apps) have been added.
|
|
172
|
+
- Unittest have been performed for much more JVMs.
|
|
173
|
+
- Tox configuration is now in native (toml) format.
|
|
174
|
+
- Setup fixes.
|
|
175
|
+
- Setup (dependencies) update.
|
|
176
|
+
|
|
164
177
|
1.0.0b22 (2024-01-26)
|
|
165
178
|
---------------------
|
|
166
179
|
- Tox configuration has been moved to pyproject.toml
|
|
@@ -34,10 +34,10 @@ Installation
|
|
|
34
34
|
|
|
35
35
|
Prerequisites:
|
|
36
36
|
|
|
37
|
-
+ Python 3.
|
|
37
|
+
+ Python 3.9 or higher
|
|
38
38
|
|
|
39
39
|
* https://www.python.org/
|
|
40
|
-
* Java
|
|
40
|
+
* Java 17 is a primary test environment.
|
|
41
41
|
|
|
42
42
|
+ pip and setuptools
|
|
43
43
|
|
|
@@ -84,7 +84,7 @@ or on development mode:
|
|
|
84
84
|
License
|
|
85
85
|
=======
|
|
86
86
|
|
|
87
|
-
|
|
|
87
|
+
| |copyright|
|
|
88
88
|
| Licensed under CC BY-NC-ND 4.0
|
|
89
89
|
| Licensed under proprietary License
|
|
90
90
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -96,6 +96,7 @@ Authors
|
|
|
96
96
|
|
|
97
97
|
.. |package| replace:: jni
|
|
98
98
|
.. |package_bold| replace:: **jni**
|
|
99
|
+
.. |copyright| replace:: Copyright (c) 2004-2024 Adam Karpierz
|
|
99
100
|
.. |respository| replace:: https://github.com/karpierz/jni.git
|
|
100
101
|
.. _Development page: https://github.com/karpierz/jni
|
|
101
102
|
.. _PyPI record: https://pypi.org/project/jni/
|
|
@@ -34,7 +34,7 @@ release = about.__version__
|
|
|
34
34
|
|
|
35
35
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
36
36
|
#
|
|
37
|
-
needs_sphinx = '
|
|
37
|
+
needs_sphinx = '7.4.7'
|
|
38
38
|
|
|
39
39
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
40
40
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
@@ -48,6 +48,7 @@ extensions = [
|
|
|
48
48
|
#'sphinx.ext.coverage',
|
|
49
49
|
'sphinx.ext.ifconfig',
|
|
50
50
|
'sphinx.ext.napoleon',
|
|
51
|
+
#'sphinx_toolbox',
|
|
51
52
|
'sphinx_tabs.tabs',
|
|
52
53
|
'sphinx_copybutton',
|
|
53
54
|
'sphinxcontrib.spelling',
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# Copyright (c) 2004 Adam Karpierz
|
|
2
|
+
# Licensed under CC BY-NC-ND 4.0
|
|
3
|
+
# Licensed under proprietary License
|
|
4
|
+
# Please refer to the accompanying LICENSE file.
|
|
5
|
+
|
|
6
|
+
[build-system]
|
|
7
|
+
build-backend = 'setuptools.build_meta'
|
|
8
|
+
requires = ['setuptools>=75.6.0', 'packaging>=24.2.0', 'tox>=4.23.2',
|
|
9
|
+
'cffi>=1.17.1', 'Cython>=3.0.11', 'pkg-about>=1.2.5']
|
|
10
|
+
|
|
11
|
+
[project]
|
|
12
|
+
name = 'jni'
|
|
13
|
+
version = '1.1.0b6'
|
|
14
|
+
description = 'Python bridge for the Java Native Interface.'
|
|
15
|
+
urls.Homepage = 'https://pypi.org/project/jni/'
|
|
16
|
+
urls.Documentation = 'https://jni.readthedocs.io/'
|
|
17
|
+
urls.Download = 'https://pypi.org/project/jni/'
|
|
18
|
+
urls.Source = 'https://github.com/karpierz/jni'
|
|
19
|
+
urls.Issues = 'https://github.com/karpierz/jni/issues'
|
|
20
|
+
license = { text = 'Creative Commons BY-NC-ND 4.0 License ; https://creativecommons.org/licenses/by-nc-nd/4.0 ; Copyright (c) 2004-2024 Adam Karpierz, All Rights Reserved, Licensed under proprietary License' }
|
|
21
|
+
authors = [
|
|
22
|
+
{ name = 'Adam Karpierz' },
|
|
23
|
+
{ email = 'adam@karpierz.net' },
|
|
24
|
+
]
|
|
25
|
+
maintainers = [
|
|
26
|
+
{ name = 'Adam Karpierz' },
|
|
27
|
+
{ email = 'adam@karpierz.net' },
|
|
28
|
+
]
|
|
29
|
+
keywords = ['jni', 'jvm', 'jtypes', 'jt', 'jpype', 'jep', 'pyjnius', 'jpy', 'javabridge',
|
|
30
|
+
'pyjava', 'jcc', 'py4j', 'jython', 'java', 'pythonjava', 'rubicon-java']
|
|
31
|
+
classifiers = [
|
|
32
|
+
'Development Status :: 4 - Beta',
|
|
33
|
+
'Intended Audience :: Developers',
|
|
34
|
+
'License :: Free for non-commercial use',
|
|
35
|
+
'License :: Other/Proprietary License',
|
|
36
|
+
'Operating System :: OS Independent',
|
|
37
|
+
'Natural Language :: Polish',
|
|
38
|
+
'Programming Language :: Python',
|
|
39
|
+
'Programming Language :: Python :: 3',
|
|
40
|
+
'Programming Language :: Python :: 3.9',
|
|
41
|
+
'Programming Language :: Python :: 3.10',
|
|
42
|
+
'Programming Language :: Python :: 3.11',
|
|
43
|
+
'Programming Language :: Python :: 3.12',
|
|
44
|
+
'Programming Language :: Python :: 3.13',
|
|
45
|
+
'Programming Language :: Python :: 3 :: Only',
|
|
46
|
+
'Programming Language :: Python :: Implementation :: CPython',
|
|
47
|
+
'Programming Language :: Python :: Implementation :: PyPy',
|
|
48
|
+
'Programming Language :: Java',
|
|
49
|
+
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
50
|
+
'Topic :: Software Development :: Libraries :: Java Libraries',
|
|
51
|
+
]
|
|
52
|
+
requires-python = '>=3.9.0,<4.0.0'
|
|
53
|
+
dependencies = [
|
|
54
|
+
# mandatory
|
|
55
|
+
'setuptools>=75.6.0',
|
|
56
|
+
'pkg-about>=1.2.5',
|
|
57
|
+
# others
|
|
58
|
+
]
|
|
59
|
+
dynamic = ['readme']
|
|
60
|
+
optional-dependencies.'cffi' = [
|
|
61
|
+
'cffi>=1.17.1',
|
|
62
|
+
]
|
|
63
|
+
optional-dependencies.'cython' = [
|
|
64
|
+
'Cython>=3.0.11',
|
|
65
|
+
]
|
|
66
|
+
optional-dependencies.'doc' = [
|
|
67
|
+
'Sphinx>=7.4.7',
|
|
68
|
+
'sphinx-toolbox>=3.8.1',
|
|
69
|
+
'sphinx-tabs>=3.4.5', # don't touch! sphinx-toolbox requires <3.4.7
|
|
70
|
+
'sphinx-copybutton>=0.5.2',
|
|
71
|
+
'sphinxcontrib-spelling>=8.0.0',
|
|
72
|
+
'sphinx-lint>=1.0.0',
|
|
73
|
+
'restructuredtext-lint>=1.4.0',
|
|
74
|
+
'nbsphinx>=0.9.5',
|
|
75
|
+
]
|
|
76
|
+
optional-dependencies.'test' = [
|
|
77
|
+
'deepdiff>=8.0.1',
|
|
78
|
+
'rich>=13.9.4',
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[project.scripts]
|
|
82
|
+
#'jni' = 'jni.__main__:main'
|
|
83
|
+
|
|
84
|
+
[project.gui-scripts]
|
|
85
|
+
#'jni-gui' = 'jni:main_gui'
|
|
86
|
+
|
|
87
|
+
#[project.entry-points.'jni.magical']
|
|
88
|
+
#epoint = 'jni:main_epoint'
|
|
89
|
+
|
|
90
|
+
[tool.setuptools.dynamic]
|
|
91
|
+
readme = { file = ['README.rst', 'CHANGES.rst'], content-type = 'text/x-rst; charset=UTF-8' }
|
|
92
|
+
|
|
93
|
+
[tool.setuptools]
|
|
94
|
+
license-files = ['LICENSE']
|
|
95
|
+
include-package-data = true
|
|
96
|
+
platforms = ['any']
|
|
97
|
+
zip-safe = false
|
|
98
|
+
|
|
99
|
+
[tool.setuptools.packages.find]
|
|
100
|
+
namespaces = false
|
|
101
|
+
where = ['src']
|
|
102
|
+
|
|
103
|
+
[tool.setuptools.package-dir]
|
|
104
|
+
'' = 'src'
|
|
105
|
+
#'jni.tests' = 'tests'
|
|
106
|
+
|
|
107
|
+
[tool.setuptools.package-data]
|
|
108
|
+
jni = [
|
|
109
|
+
'jni.cfg',
|
|
110
|
+
'jni.c',
|
|
111
|
+
'pvm.c',
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
[tool.setuptools.exclude-package-data]
|
|
115
|
+
'*' = ['*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd', '*.txt']
|
|
116
|
+
'jni.capi' = [
|
|
117
|
+
'jni.c',
|
|
118
|
+
]
|
|
119
|
+
'jni.cython' = [
|
|
120
|
+
'jni.c',
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[tool.coverage]
|
|
124
|
+
# run
|
|
125
|
+
run.source = [
|
|
126
|
+
'jni',
|
|
127
|
+
'tests',
|
|
128
|
+
]
|
|
129
|
+
run.omit = [
|
|
130
|
+
]
|
|
131
|
+
run.branch = true
|
|
132
|
+
run.data_file = '.tox/coverage/.coverage'
|
|
133
|
+
run.plugins = ['covdefaults']
|
|
134
|
+
# report
|
|
135
|
+
report.exclude_lines = [
|
|
136
|
+
# Regexes
|
|
137
|
+
# Have to re-enable the standard pragma
|
|
138
|
+
'^\s*if\s+self\.debug\s*:',
|
|
139
|
+
'^\s*if\s+__debug__\s*:',
|
|
140
|
+
'^\s*if\s+(0|False)\s*:',
|
|
141
|
+
'''if\s+__name__.*\s*==\s*['"]__main__['"]\s*:''',
|
|
142
|
+
'^\s*@unittest\.skip\(',
|
|
143
|
+
'^\s*@unittest\.skipIf\(sys\.platform\.startswith\("win"\)',
|
|
144
|
+
]
|
|
145
|
+
report.omit = [
|
|
146
|
+
'tests/run.py',
|
|
147
|
+
]
|
|
148
|
+
report.skip_covered = false
|
|
149
|
+
# html report
|
|
150
|
+
html.directory = '.tox/coverage/.coverage.html'
|
|
151
|
+
|
|
152
|
+
[tool.flake8]
|
|
153
|
+
filename = ['*.py','*.pyx']
|
|
154
|
+
#include = ['tests']
|
|
155
|
+
#exclude = ['.tox','*.egg','.git','__pycache__','build','_build','docs/_build','dist']
|
|
156
|
+
extend-exclude = [
|
|
157
|
+
'jni.py',
|
|
158
|
+
]
|
|
159
|
+
max-line-length = 99
|
|
160
|
+
ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
|
|
161
|
+
'E122','E127','E128','E222','E272','E241','E266','E226','E704',
|
|
162
|
+
'D100','D101','D102','D103','D104','D400','D401','D202',
|
|
163
|
+
'N806','N802','N803','N801',
|
|
164
|
+
'I100','W503']
|
|
165
|
+
# (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
|
|
166
|
+
#select =
|
|
167
|
+
#select = ['E','W','F','N','I']
|
|
168
|
+
per-file-ignores = [
|
|
169
|
+
'*/jni/_util.py: E501',
|
|
170
|
+
'*/jni/ctypes/__init__.py: E501,A005',
|
|
171
|
+
'*/jni/cffi/__init__.py: E501',
|
|
172
|
+
'*/jni/capi/__init__.py: E501,F405',
|
|
173
|
+
'*/jni/cython/__init__.py: E501,F405',
|
|
174
|
+
'*/jni/cython/jni.pyx: E203,E225,E226,E227,E402,E741,E901,E999,W503,W504',
|
|
175
|
+
]
|
|
176
|
+
output-file = '.tox/lint/flake8out.txt'
|
|
177
|
+
count = true
|
|
178
|
+
#show-pep8,
|
|
179
|
+
#show-source
|
|
180
|
+
#verbose
|
|
181
|
+
#quiet
|
|
182
|
+
|
|
183
|
+
#
|
|
184
|
+
# Configuration(s) for tox
|
|
185
|
+
#
|
|
186
|
+
|
|
187
|
+
[tool.tox] # jni
|
|
188
|
+
env_list = [{replace='ref',of=['tool','tox','labels','py'],extend=true}, 'lint', 'docs']
|
|
189
|
+
min_version = '4.23.2'
|
|
190
|
+
skip_missing_interpreters = true
|
|
191
|
+
requires = [
|
|
192
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
193
|
+
'virtualenv>=20.28.0',
|
|
194
|
+
'tox-backtick>=0.5.4',
|
|
195
|
+
'tox-tags>=0.2.0',
|
|
196
|
+
]
|
|
197
|
+
[tool.tox.labels]
|
|
198
|
+
py = ['py39','py310','py311','py312','py313', 'pypy39','pypy310']
|
|
199
|
+
py-build = ['py39-build','py310-build','py311-build','py312-build','py313-build',
|
|
200
|
+
'pypy39-build','pypy310-build']
|
|
201
|
+
prepare = ['prepare']
|
|
202
|
+
coverage = ['coverage']
|
|
203
|
+
lint = ['lint']
|
|
204
|
+
docs = ['docs']
|
|
205
|
+
build = [{replace='ref',of=['tool','tox','labels','py'],extend=true},
|
|
206
|
+
{replace='ref',of=['tool','tox','labels','py-build'],extend=true}, 'docs', 'build']
|
|
207
|
+
deploy = [{replace='ref',of=['tool','tox','labels','build'],extend=true}, 'publish']
|
|
208
|
+
|
|
209
|
+
[tool.tox._.base]
|
|
210
|
+
base_python = ['python3.12']
|
|
211
|
+
deps = [
|
|
212
|
+
'pip>=24.3.1',
|
|
213
|
+
'setuptools>=75.6.0',
|
|
214
|
+
]
|
|
215
|
+
package_subdir = 'jni'
|
|
216
|
+
|
|
217
|
+
[tool.tox.env_run_base]
|
|
218
|
+
description = "Run tests under {base_python}"
|
|
219
|
+
pass_env = ['JAVA_HOME']
|
|
220
|
+
set_env.PYTHONDONTWRITEBYTECODE = '1'
|
|
221
|
+
set_env.PKG_PVER = "`python -W ignore -c \"import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')\" 2> nul`"
|
|
222
|
+
set_env.PKG_NAME = "`python -W ignore -c \"import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')\" 2> nul`"
|
|
223
|
+
set_env.PKG_DIST = "`python -W ignore -c \"import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')\" 2> nul`"
|
|
224
|
+
commands = [
|
|
225
|
+
['{env_python}','--version'],
|
|
226
|
+
['{env_python}','-m','tests',{replace='posargs',extend=true}],
|
|
227
|
+
]
|
|
228
|
+
extras = ['test', 'cffi', 'cython']
|
|
229
|
+
deps = [
|
|
230
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
231
|
+
]
|
|
232
|
+
|
|
233
|
+
[tool.tox.env.'prepare']
|
|
234
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
235
|
+
skip_install = true
|
|
236
|
+
allowlist_externals = [
|
|
237
|
+
'cmd',
|
|
238
|
+
'.build',
|
|
239
|
+
]
|
|
240
|
+
commands = [
|
|
241
|
+
['cmd','/C','if','exist','.build.cmd','.build.cmd'],
|
|
242
|
+
]
|
|
243
|
+
extras = []
|
|
244
|
+
deps = []
|
|
245
|
+
|
|
246
|
+
[tool.tox.env.'coverage']
|
|
247
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
248
|
+
commands = [
|
|
249
|
+
['{env_python}','-m','coverage','erase'],
|
|
250
|
+
['-','{env_python}','-m','coverage','run','-m','tests',{replace="posargs",extend=true}],
|
|
251
|
+
['-','{env_python}','-m','coverage','html'],
|
|
252
|
+
['{env_python}','-m','coverage','report'],
|
|
253
|
+
]
|
|
254
|
+
deps = [
|
|
255
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
256
|
+
'coverage>=7.6.8',
|
|
257
|
+
'covdefaults>=2.3.0',
|
|
258
|
+
'diff-cover>=9.2.0',
|
|
259
|
+
]
|
|
260
|
+
|
|
261
|
+
[tool.tox.env.'docs']
|
|
262
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
263
|
+
commands = [
|
|
264
|
+
['{env_python}','-m','sphinxlint','--ignore','.tox','--ignore','build','--ignore','dist'],
|
|
265
|
+
#['{env_python}','-m','sphinx.apidoc','-f','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}'],
|
|
266
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','html','-E','./docs','./build/docs/html'],
|
|
267
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','linkcheck','./docs','./build/docs/html'],
|
|
268
|
+
['{env_python}','-m','sphinx.cmd.build','-W','-a','-b','doctest', './docs','./build/docs/html'],
|
|
269
|
+
]
|
|
270
|
+
extras = ['doc']
|
|
271
|
+
deps = [
|
|
272
|
+
{replace='ref',of=['tool','tox','_','base','deps'],extend=true},
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[tool.tox.env.'build']
|
|
276
|
+
depends = [{replace='ref',of=['tool','tox','labels','py'],extend=true},
|
|
277
|
+
{replace='ref',of=['tool','tox','labels','py-build'],extend=true}, 'docs']
|
|
278
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
279
|
+
commands = [
|
|
280
|
+
['{env_python}','-W','ignore','setup.py','--quiet','sdist','--formats=zip'],
|
|
281
|
+
# check out for PyPi
|
|
282
|
+
['{env_python}','-m','twine','check','dist/*'],
|
|
283
|
+
]
|
|
284
|
+
deps = [
|
|
285
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
286
|
+
'twine>=6.0.1',
|
|
287
|
+
]
|
|
288
|
+
|
|
289
|
+
#[tool.tox.env]
|
|
290
|
+
[tool.tox.env.'py39-build']
|
|
291
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
292
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
293
|
+
[tool.tox.env.'py310-build']
|
|
294
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
295
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
296
|
+
[tool.tox.env.'py311-build']
|
|
297
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
298
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
299
|
+
[tool.tox.env.'py312-build']
|
|
300
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
301
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
302
|
+
[tool.tox.env.'py313-build']
|
|
303
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
304
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
305
|
+
[tool.tox.env.'pypy39-build']
|
|
306
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
307
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
308
|
+
[tool.tox.env.'pypy310-build']
|
|
309
|
+
commands = [{replace='ref',of=['tool','tox','env','_','build','commands'],extend=true}]
|
|
310
|
+
deps = [{replace='ref',of=['tool','tox','env','_','build','deps'],extend=true}]
|
|
311
|
+
[tool.tox.env._.build]
|
|
312
|
+
#depends = '{envname}'
|
|
313
|
+
commands = [
|
|
314
|
+
#['{env_python}','-W','ignore','setup.py','--quiet','bdist_wheel','--python-tag','py{env:PKG_PVER}'],
|
|
315
|
+
['{env_python}','-W','ignore','setup.py','--quiet','bdist_wheel'],
|
|
316
|
+
#['{env_python}','-m','pyc_wheel','--quiet','"dist/{env:PKG_DIST}*.whl"'],
|
|
317
|
+
]
|
|
318
|
+
deps = [
|
|
319
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
320
|
+
#'pyc-wheel>=1.3.0',
|
|
321
|
+
]
|
|
322
|
+
|
|
323
|
+
[tool.tox.env.'publish']
|
|
324
|
+
depends = ['build']
|
|
325
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
326
|
+
skip_install = true
|
|
327
|
+
commands = [
|
|
328
|
+
# publish on PyPi
|
|
329
|
+
['{env_python}','-m','twine','upload','dist/*'],
|
|
330
|
+
]
|
|
331
|
+
extras = []
|
|
332
|
+
deps = [
|
|
333
|
+
'twine>=6.0.1',
|
|
334
|
+
]
|
|
335
|
+
|
|
336
|
+
[tool.tox.env.'lint']
|
|
337
|
+
base_python = {replace='ref',of=['tool','tox','_','base','base_python']}
|
|
338
|
+
commands = [
|
|
339
|
+
['{env_python}','-m','flake8','{envsitepackagesdir}/{[tool.tox._.base]package_subdir}/'],
|
|
340
|
+
]
|
|
341
|
+
extras = []
|
|
342
|
+
deps = [
|
|
343
|
+
{replace='ref',of=['tool','tox','env_run_base','deps'],extend=true},
|
|
344
|
+
'flake8>=7.1.1',
|
|
345
|
+
'flake8-pyproject>=1.2.3',
|
|
346
|
+
'flake8-docstrings>=1.7.0',
|
|
347
|
+
'pep8-naming>=0.14.1',
|
|
348
|
+
'flake8-builtins>=2.5.0',
|
|
349
|
+
'flake8-deprecated>=2.2.1',
|
|
350
|
+
]
|
|
@@ -61,7 +61,7 @@ class Preprocessor:
|
|
|
61
61
|
null_pattern = r"{bol}({ws_opt}#){ws_opt}{eol}".format(**basic_tokens)
|
|
62
62
|
subst_pattern = r"({bol}|[^\w])({{macro}})({eol}|[^\w\d])".format(**basic_tokens)
|
|
63
63
|
|
|
64
|
-
eval_expr = lambda self,
|
|
64
|
+
eval_expr = lambda self, expr_str, scope: eval(expr_str, {}, scope)
|
|
65
65
|
|
|
66
66
|
def include_action(self, m):
|
|
67
67
|
header = m.group(2)
|
|
@@ -16,7 +16,7 @@ else:
|
|
|
16
16
|
from _ctypes import dlclose as dlclose # noqa: N813
|
|
17
17
|
|
|
18
18
|
__none = object()
|
|
19
|
-
obj = lambda
|
|
19
|
+
obj = lambda ctype, init=__none: ctype() if init is __none else ctype(init)
|
|
20
20
|
|
|
21
21
|
def defined(varname, __getframe=sys._getframe):
|
|
22
22
|
frame = __getframe(1)
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
https://
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
https://raw.githubusercontent.com/openjdk/jdk/
|
|
7
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
8
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
https://raw.githubusercontent.com/openjdk/jdk/
|
|
12
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
13
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
https://raw.githubusercontent.com/openjdk/jdk/
|
|
17
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
18
|
-
https://raw.githubusercontent.com/openjdk/jdk/jdk-
|
|
19
|
-
|
|
1
|
+
# Java roadmap
|
|
2
|
+
https://www.oracle.com/pl/java/technologies/java-se-support-roadmap.html
|
|
3
|
+
|
|
4
|
+
# JNI headers
|
|
5
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/share/javavm/export/jni.h
|
|
6
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-11-ga/src/java.base/share/native/include/jni.h
|
|
7
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/share/native/include/jni.h
|
|
8
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-21-ga/src/java.base/share/native/include/jni.h
|
|
9
|
+
win32:
|
|
10
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/windows/javavm/export/jni_md.h
|
|
11
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-11-ga/src/java.base/windows/native/include/jni_md.h
|
|
12
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/windows/native/include/jni_md.h
|
|
13
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-21-ga/src/java.base/windows/native/include/jni_md.h
|
|
14
|
+
linux:
|
|
15
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/macosx/javavm/export/jni_md.h
|
|
16
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-11-ga/src/java.base/unix/native/include/jni_md.h
|
|
17
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/unix/native/include/jni_md.h
|
|
18
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-21-ga/src/java.base/unix/native/include/jni_md.h
|
|
19
|
+
darwin:
|
|
20
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/macosx/javavm/export/jni_md.h
|
|
21
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-11-ga/src/java.base/unix/native/include/jni_md.h
|
|
22
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-17-ga/src/java.base/unix/native/include/jni_md.h
|
|
23
|
+
https://raw.githubusercontent.com/openjdk/jdk/jdk-21-ga/src/java.base/unix/native/include/jni_md.h
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Url: https://raw.githubusercontent.com/openjdk/jdk/jdk-21-ga/src/java.base/unix/native/include/jni_md.h
|
|
2
|
-
Completed: 2024-
|
|
2
|
+
Completed: 2024-11-11 11:00:12
|
|
3
3
|
File name: jni_md.h
|
|
4
|
-
File date: 2024-
|
|
4
|
+
File date: 2024-11-11 11:00:12
|
|
5
5
|
File size: 2208
|
|
6
6
|
SHA256sum: 88CB5C33E306900DD35A78D5A439087123B8E91B0986BB5ACB42CC9BD2FCC42E
|
|
7
7
|
SHA1sum: AC5A8384419A5E371B57D4273E81AC8DE6E217B9
|