Skip to content

Commit

Permalink
fix: Avoid symlinks for user-docs venv creation (#73)
Browse files Browse the repository at this point in the history
* fix: Avoid symlinks for user-docs venv creation
* fix: Setup Python for creating venv
  • Loading branch information
wulmer authored Nov 20, 2024
1 parent cc358b4 commit c79d4c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-user-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/cache@v3
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ SPDX-License-Identifier: MIT
-->

# Yaku

[![Build](https://github.com/B-S-F/yaku/actions/workflows/build.yml/badge.svg)](https://github.com/B-S-F/yaku/actions/workflows/build.yml)
[![User Documentation](https://github.com/B-S-F/yaku/actions/workflows/publish-user-docs-to-gh-pages.yml/badge.svg)](https://b-s-f.github.io/yaku/)

!! THIS PROJECT IS UNDER CONSTRUCTION !!

Expand All @@ -15,7 +17,9 @@ Foto from Mabel Amber from <a href="https://www.pexels.com/de-de/foto/nahaufnahm
</figcaption>

## Development

Developer docu for the project see [DEVELOPMENT.md](./DEVELOPMENT.md).

## Licenses

See [LICENSES](./LICENSES) folder for the project's licenses.
9 changes: 8 additions & 1 deletion user-documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ requirements.lock: requirements.txt
.PHONY: make-virtualenv
make-virtualenv:
rm -rf .venv
if compgen uv; then uv venv --python 3.12; else python3.12 -m venv .venv; fi
python3.12 -m venv --copies .venv
# uv does not work for CI, see https://github.com/astral-sh/uv/issues/6782
# as it creates symlinks to system Python which are not cached properly
#if compgen uv; then \
uv venv --link-mode hardlink --python 3.12; \
else \
python3.12 -m venv --copies .venv; \
fi

.PHONY: checklinks
checklinks:
Expand Down
2 changes: 1 addition & 1 deletion user-documentation/requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ sphinxcontrib-mermaid==1.0.0
sphinxcontrib-openapi==0.8.4
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
starlette==0.41.2
starlette==0.41.3
typing-extensions==4.12.2
uc-micro-py==1.0.3
urllib3==2.2.3
Expand Down

0 comments on commit c79d4c6

Please sign in to comment.