Skip to content

Commit 6edfe47

Browse files
authored
Merge pull request #102 from at-gmbh/SimonCW-patch-1
This patch release fixes an issue with Conda package caching in GitLab CI. The caching configuration in `{{ cookiecutter.project_slug }}/.gitlab-ci.yml` has been updated to include the new `.conda` file format as well as additional cache directories. **Changes include:** - Updated caching paths to: - `$PIP_CACHE_DIR` - `$CONDA_PKGS_DIRS/*.conda` - `$CONDA_PKGS_DIRS/*.tar.bz2` - `$CONDA_PKGS_DIRS/urls*` - `$CONDA_PKGS_DIRS/cache` For a full list of changes, please refer to the [CHANGELOG.md](./CHANGELOG.md).
2 parents 6c0540c + 1281c6d commit 6edfe47

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Placeholder for future updates and new features.
12+
-
13+
## [1.0.1] - 2025-02-26
14+
### Fixed
15+
- **Conda package caching in GitLab CI:** Updated caching paths in `{{ cookiecutter.project_slug }}/.gitlab-ci.yml` to include the new `.conda` file format and additional cache directories. The updated paths now cache:
16+
- `$PIP_CACHE_DIR`
17+
- `$CONDA_PKGS_DIRS/*.conda`
18+
- `$CONDA_PKGS_DIRS/*.tar.bz2`
19+
- `$CONDA_PKGS_DIRS/urls*`
20+
- `$CONDA_PKGS_DIRS/cache`
21+
22+
This change ensures that all relevant Conda packages and related metadata are properly cached, addressing issues with the previous configuration ([Conda docs](https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#force-conda-to-download-only-tar-bz2-packages-use-only-tar-bz2), [Damiankula’s guide](https://damiankula.com/using_conda_cache_in_gitlabci.html)). cc @ChrsBaur
1223

1324
## [1.0.0] - 2025-02-26
1425

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "at-python-template"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "This is the official Python Project Template of Alexander Thamm GmbH (AT)"
55
authors = [
66
"Sebastian Straub <sebastian.straub@alexanderthamm.com>",

{{cookiecutter.project_slug}}/.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ test-unit:
8484
- environment-dev.yml
8585
paths:
8686
- $PIP_CACHE_DIR
87+
- $CONDA_PKGS_DIRS/*.conda
8788
- $CONDA_PKGS_DIRS/*.tar.bz2
88-
- $CONDA_PKGS_DIRS/urls.txt
89+
- $CONDA_PKGS_DIRS/urls*
90+
- $CONDA_PKGS_DIRS/cache
8991
before_script:
9092
- export PATH="/opt/conda/bin:$PATH"
9193
- conda env create -n .venv -f environment-dev.yml environment.yml

0 commit comments

Comments
 (0)