-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Linux Arm64 and drop support for Python 3.9 (#78)
- Loading branch information
Showing
34 changed files
with
1,115 additions
and
1,278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Conda packages | ||
description: Build the Conda packages | ||
outputs: | ||
platform: | ||
description: The platform targeted by the Conda packages. | ||
value: ${{ steps.get-platform.outputs.platform }} | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
conda-build-version: "24.7.1" | ||
|
||
- run: conda build --no-anaconda-upload --output-folder dist . | ||
# See https://github.com/conda-incubator/setup-miniconda/blame/059455a698430d8b68fa317268fa2e3da3492a98/README.md#L609-L610. | ||
shell: bash -l {0} | ||
|
||
- id: get-platform | ||
run: uv run python -c 'from pathlib import Path; print(f"""platform={next(Path("dist").glob("*/jdk4py-*.tar.bz2")).parts[1]}""")' >> "$GITHUB_OUTPUT" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build Java runtime | ||
description: Build the Java runtime after installing the required dependencies. | ||
inputs: | ||
python-version: | ||
description: The version of Python to set up. | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- run: curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh | ||
shell: bash | ||
|
||
- run: uv python install ${{ inputs.python-version }} | ||
shell: bash | ||
|
||
- run: uv sync --locked | ||
shell: bash | ||
|
||
- id: get-java-version | ||
run: uv run python -c 'from jdk4py import JAVA_VERSION; print(f"""version={".".join(str(number) for number in JAVA_VERSION)}""")' >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ steps.get-java-version.outputs.version }} | ||
|
||
- run: uv run python build_java_runtime.py | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Build Python wheel | ||
description: Build the Python wheel | ||
outputs: | ||
filename: | ||
description: The name of the built Python wheel. | ||
value: ${{ steps.get-filename.outputs.filename }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: uv run python -m build --installer uv --wheel | ||
shell: bash | ||
|
||
- id: get-filename | ||
run: uv run python -c 'from pathlib import Path; print(f"""filename={next(Path("dist").glob("jdk4py-*.whl")).parts[1]}""")' >> "$GITHUB_OUTPUT" | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# Python | ||
__pycache__ | ||
*.egg-info | ||
build | ||
dist | ||
|
||
# Java | ||
java-runtime | ||
.venv/ | ||
__pycache__/ | ||
build/ | ||
dist/ | ||
java-runtime/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"charliermarsh.ruff", | ||
"esbenp.prettier-vscode", | ||
"ms-python.python", | ||
"tamasfe.even-better-toml" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit", | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"editor.formatOnType": true | ||
}, | ||
"[toml]": { | ||
"editor.defaultFormatter": "tamasfe.even-better-toml" | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
"python.analysis.autoImportCompletions": true, | ||
"python.languageServer": "Pylance", | ||
"python.testing.pytestEnabled": true, | ||
} |
Oops, something went wrong.