Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (95 loc) · 2.8 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (95 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["scikit-build-core>=0.9"]
build-backend = "scikit_build_core.build"
[project]
name = "jpype1"
version = '1.7.2.dev0'
authors = [
{name = "Steve Menard", email = "devilwolf@users.sourceforge.net"},
{name = "Karl Einar Nelson", email = "thrameos@gmail.com"},
]
maintainers = [
{name = "Martin K. Scherer", email = "martin.k.scherer@gmail.com"},
]
description = "A Python to Java bridge"
readme = "README.rst"
requires-python = ">=3.8"
license = "Apache-2.0"
classifiers = [
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Software Development',
'Topic :: Scientific/Engineering'
]
dependencies = [
'packaging',
]
[project.optional-dependencies]
docs = [
'sphinx',
'sphinx-rtd-theme',
]
tests = [
"pytest",
]
[project.entry-points.pyinstaller40]
"hook-dirs" = "jpype._pyinstaller.entry_points:get_hook_dirs"
"tests" = "jpype._pyinstaller.entry_points:get_PyInstaller_tests"
[project.urls]
homepage = "https://github.com/jpype-project/jpype"
[[tool.mypy.overrides]]
module = [
"_jpype", # todo: add a proper _jpype.pyi file
"commonx",
"brokenx",
"java.*",
"jpypex.common",
"jedi.*",
]
ignore_missing_imports = true
[tool.pytest]
# pytest's built-in faulthandler plugin calls faulthandler.enable() before the
# JVM exists and faulthandler.disable() at exit, which reinstalls the pre-JVM
# SIGSEGV handler over HotSpot's. The JVM then dies on the first armed
# safepoint poll during shutdown (random ~25% crash rate in CI). Keep the
# plugin off; conftest.py enables faulthandler itself before startJVM.
addopts = ["--verbose", "-p", "no:faulthandler"]
testpaths = ["test", "jpype/_pyinstaller"]
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
build.verbose = true
logging.level = "INFO"
wheel.packages = ["jpype", "jpype._pyinstaller", "_jpype"]
# editable mode installs an import hook to redirect the extension and the python code.
# since this does not work for the JAR, CMake copies the JAR next to CMakelists.txt (root).
editable.mode = "redirect"
# todo: try out automatic rebuild feature.
#editable.rebuild = true
sdist.include = [
"native/**/*.h",
"native/**/*.xml",
"native/**/*.java",
"native/**/*.jar",
"*.rst",
"doc/*",
"test/**",
"org.jpype.jar",
]
sdist.exclude = [
"test/classes/**",
".azure",
".github",
"project/",
]
# keep debug info
cmake.build-type = "RelWithDebInfo"
install.strip = false
[tool.scikit-build.cmake.define]
ENABLE_BUILD_JAR = "OFF"
BUILD_TEST_HARNESS = "OFF"