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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
__pycache__
.coverage
.mypy_cache
.pytest_cache
.*_cache
.venv
*.egg-info
_build
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ dev = [
"sphinx-rtd-theme",
]

[tool.uv]
cache-dir = "./.uv_cache"
cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true } }]

[tool.setuptools_scm]
write_to = "src/python_training_project/version.py"

Expand Down
4 changes: 4 additions & 0 deletions tools/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Get Git root directory
REPO_ROOT=$(git rev-parse --show-toplevel)

# Force the uv cache directory to be located in the repository root
# to avoid permission issues within CI/CD environments.
export UV_CACHE_DIR="${REPO_ROOT}/.uv_cache"

pushd "${REPO_ROOT}" 2>&1 > /dev/null

echo "Building documentation..."
Expand Down
4 changes: 4 additions & 0 deletions tools/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Get Git root directory
REPO_ROOT=$(git rev-parse --show-toplevel)

# Force the uv cache directory to be located in the repository root
# to avoid permission issues within CI/CD environments.
export UV_CACHE_DIR="${REPO_ROOT}/.uv_cache"

pushd "${REPO_ROOT}" 2>&1 > /dev/null

echo "Building package..."
Expand Down
4 changes: 4 additions & 0 deletions tools/deploy-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Get Git root directory
REPO_ROOT=$(git rev-parse --show-toplevel)

# Force the uv cache directory to be located in the repository root
# to avoid permission issues within CI/CD environments.
export UV_CACHE_DIR="${REPO_ROOT}/.uv_cache"

pushd "${REPO_ROOT}" 2>&1 > /dev/null

echo "Deploying package..."
Expand Down
4 changes: 4 additions & 0 deletions tools/lint-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Get Git root directory
REPO_ROOT=$(git rev-parse --show-toplevel)

# Force the uv cache directory to be located in the repository root
# to avoid permission issues within CI/CD environments.
export UV_CACHE_DIR="${REPO_ROOT}/.uv_cache"

pushd "${REPO_ROOT}" 2>&1 > /dev/null

mkdir -p build
Expand Down
4 changes: 4 additions & 0 deletions tools/test-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Get Git root directory
REPO_ROOT=$(git rev-parse --show-toplevel)

# Force the uv cache directory to be located in the repository root
# to avoid permission issues within CI/CD environments.
export UV_CACHE_DIR="${REPO_ROOT}/.uv_cache"

pushd "${REPO_ROOT}" 2>&1 > /dev/null

mkdir -p build
Expand Down
Loading