◐ Shell
reader mode source ↗
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "scyjava"
version = "1.12.2.dev0"
description = "Supercharged Java access from Python"
license = "Unlicense"
authors = [{name = "SciJava developers", email = "ctrueden@wisc.edu"}]
readme = "README.md"
keywords = ["java", "maven", "cross-language"]
classifiers = [
Expand Down Expand Up @@ -35,6 +35,7 @@ dependencies = [
"jpype1 >= 1.3.0",
"jgo",
"cjdk",
]

[dependency-groups]
@@ -50,6 +51,9 @@ dev = [
"validate-pyproject[all]",
]

[project.urls]
homepage = "https://github.com/scijava/scyjava"
documentation = "https://github.com/scijava/scyjava/blob/main/README.md"
Expand All @@ -58,7 +62,7 @@ download = "https://pypi.org/project/scyjava/"
tracker = "https://github.com/scijava/scyjava/issues"

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = false

[tool.setuptools.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion src/scyjava/_jvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def is_awt_initialized() -> bool:
return False
Thread = scyjava.jimport("java.lang.Thread")
threads = Thread.getAllStackTraces().keySet()
return any(t.getName().startsWith("AWT-") for t in threads)


def when_jvm_starts(f) -> None:
Expand Down
4 changes: 4 additions & 0 deletions src/scyjava/_stubs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
131 changes: 131 additions & 0 deletions src/scyjava/_stubs/_dynamic_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
Loading
Loading
Toggle all file notes Toggle all file annotations