Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,11 @@ jobs:
with:
version-file: pyproject.toml

- id: get-java-version
run: |
uv run python - >> "$GITHUB_OUTPUT" <<'EOF'
from jdk4py import JAVA_VERSION

version = ".".join(str(number) for number in JAVA_VERSION)
print(f"version={version}")
EOF
- uses: actions/setup-java@v6.2.0
with:
distribution: temurin
java-version: ${{ steps.get-java-version.outputs.version }}
# The exact build, so that setup-java never falls back to the JDK preinstalled on the runner.
java-version: 25.0.5.1+2
- run: uv run python build_java_runtime.py

- if: github.event_name == 'pull_request'
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime/bin/java')

`jdk4py`'s version contains 4 numbers:

- The first 3 numbers correspond to the JDK version.
- The fourth number is the library API version.
- The first 3 numbers are the first 3 numbers of the bundled JDK version.
`JAVA_VERSION` holds them.
- The fourth number starts at 0 and goes up by 1 with each release that keeps the first 3, for instance to bundle a JDK patch or to change the library.
6 changes: 3 additions & 3 deletions prek.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ types = ["python"]
require_serial = true

[[repos.hooks]]
id = "ty"
name = "ty check"
id = "uv-check"
name = "uv check"
language = "system"
entry = "uv run ty check"
entry = "uv check"
pass_filenames = false
types = ["python"]

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ license-files = ["LICENSE"]
name = "jdk4py"
readme = "README.md"
requires-python = ">=3.10"
version = "25.0.5.0"
version = "25.0.5.1"

[project.scripts]
jdk4py = "jdk4py.__main__:main"
Expand Down Expand Up @@ -71,5 +71,5 @@ error-on-warning = true

[tool.uv]
# Keep pinned to ensure same version is used on CI.
required-version = "==0.13.7"
required-version = "==0.13.8"
trusted-publishing = "always"
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading