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
6 changes: 3 additions & 3 deletions .github/workflows/build-torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
- name: Patch pytorch source
working-directory: pytorch
run: |
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}/0001-CI-Add-manywheel-Dockerfile-for-riscv64.patch
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}/0002-CI-Add-cpu-riscv64-support-to-manywheel-scripts.patch
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}/0003-CI-Add-native-build-image-for-linux-riscv64.patch
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}+cpu/0001-CI-Add-manywheel-Dockerfile-for-riscv64.patch
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}+cpu/0002-CI-Add-cpu-riscv64-support-to-manywheel-scripts.patch
git apply ../python-wheels/patches/torch/${{ env.TORCH_VERSION }}+cpu/0003-CI-Add-native-build-image-for-linux-riscv64.patch

- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
Expand Down
15 changes: 15 additions & 0 deletions docs/packages/generate_packages_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
GITLAB_WHEEL_BUILDER_URL = (
"https://gitlab.com/riseproject/python/wheel_builder/-/tree/main"
)
GITHUB_PYTHON_WHEELS_URL = (
"https://github.com/riseproject-dev/python-wheels/tree/main"
)
PYPI_INDEX_URL = "https://pypi.riseproject.dev/simple/"

# Match RST inline external refs: `Label <url>`_ or `Label <url>`__
Expand Down Expand Up @@ -219,6 +222,18 @@ def generate_md_page(yaml_file, output_md, package_list):
f"[{patch_link}]({patch_link})"
)
lines.append("")
else:
# if upstream tag is not present, it means the package was uploaded from github action
# on github we changed the way we store patches: we use package_name and version
# instead of project_name and tag
patch_link = (
f"{GITHUB_PYTHON_WHEELS_URL}/"
f"patches/{package_name}/{version_number}"
)
lines.append(
f"**Patch applied for this version:** "
f"[{patch_link}]({patch_link})"
)

if version.get("comment"):
_callout(lines, "note", version["comment"])
Expand Down
Loading