File tree Expand file tree Collapse file tree 7 files changed +25
-2
lines changed
Expand file tree Collapse file tree 7 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11__pycache__
22.coverage
3- .mypy_cache
4- .pytest_cache
3+ . * _cache
54.venv
65* .egg-info
76_build
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ dev = [
4848 " sphinx-rtd-theme" ,
4949]
5050
51+ [tool .uv ]
52+ cache-dir = " ./.uv_cache"
53+ cache-keys = [{ file = " pyproject.toml" }, { git = { commit = true } }]
54+
5155[tool .setuptools_scm ]
5256write_to = " src/python_training_project/version.py"
5357
Original file line number Diff line number Diff line change 33# Get Git root directory
44REPO_ROOT=$( git rev-parse --show-toplevel)
55
6+ # Force the uv cache directory to be located in the repository root
7+ # to avoid permission issues within CI/CD environments.
8+ export UV_CACHE_DIR=" ${REPO_ROOT} /.uv_cache"
9+
610pushd " ${REPO_ROOT} " 2>&1 > /dev/null
711
812echo " Building documentation..."
Original file line number Diff line number Diff line change 33# Get Git root directory
44REPO_ROOT=$( git rev-parse --show-toplevel)
55
6+ # Force the uv cache directory to be located in the repository root
7+ # to avoid permission issues within CI/CD environments.
8+ export UV_CACHE_DIR=" ${REPO_ROOT} /.uv_cache"
9+
610pushd " ${REPO_ROOT} " 2>&1 > /dev/null
711
812echo " Building package..."
Original file line number Diff line number Diff line change 33# Get Git root directory
44REPO_ROOT=$( git rev-parse --show-toplevel)
55
6+ # Force the uv cache directory to be located in the repository root
7+ # to avoid permission issues within CI/CD environments.
8+ export UV_CACHE_DIR=" ${REPO_ROOT} /.uv_cache"
9+
610pushd " ${REPO_ROOT} " 2>&1 > /dev/null
711
812echo " Deploying package..."
Original file line number Diff line number Diff line change 33# Get Git root directory
44REPO_ROOT=$( git rev-parse --show-toplevel)
55
6+ # Force the uv cache directory to be located in the repository root
7+ # to avoid permission issues within CI/CD environments.
8+ export UV_CACHE_DIR=" ${REPO_ROOT} /.uv_cache"
9+
610pushd " ${REPO_ROOT} " 2>&1 > /dev/null
711
812mkdir -p build
Original file line number Diff line number Diff line change 33# Get Git root directory
44REPO_ROOT=$( git rev-parse --show-toplevel)
55
6+ # Force the uv cache directory to be located in the repository root
7+ # to avoid permission issues within CI/CD environments.
8+ export UV_CACHE_DIR=" ${REPO_ROOT} /.uv_cache"
9+
610pushd " ${REPO_ROOT} " 2>&1 > /dev/null
711
812mkdir -p build
You can’t perform that action at this time.
0 commit comments