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
22 changes: 14 additions & 8 deletions .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '**/*.md'

env:
UV_VERSION: 0.7.12
UV_VERSION: 0.8.4

jobs:
lint_and_type_check:
Expand Down Expand Up @@ -56,16 +56,22 @@ jobs:
- name: Pin python version
run: uv python pin ${{ matrix.python-version }}

- name: Install dependencies
- name: Build and install package
run: |
if [ "${{ matrix.include-extras }}" = "true" ]; then
uv sync --all-extras
else
uv sync
fi
uv build
uv venv
source .venv/bin/activate
DIST_FILE=$(ls dist/snappylapy-*.tar.gz | head -n 1)
uv pip install "snappylapy@$DIST_FILE"

# Remove the snappylapy folder to ensure the installed package is used for the test
- name: Remove snappylapy folder in the cloned repository
run: rm -rf snappylapy

- name: Run tests
run: uv run pytest tests/ --junit-xml=test-results.xml
run: |
source .venv/bin/activate
pytest tests/ --junit-xml=test-results.xml

- name: Surface failing tests
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "[0-9]+\\.[0-9]+\\.[0-9]+rc[0-9]+"

env:
UV_VERSION: 0.7.12
UV_VERSION: 0.8.4

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
PACKAGE_NAME: "snappylapy"
UV_VERSION: 0.7.12
UV_VERSION: 0.8.4

jobs:
details:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

*NOTE:* Version 0.X.X might have breaking changes in bumps of the minor version number. This is because the project is still in early development and the API is not yet stable. It will still be marked clearly in the release notes.

## [0.5.1] - 2025-08-31
- 🐞 Fix missing submodule `expectation_classes`, missing in build version of the package.

## [0.5.0] - 2025-07-30
- 🆕 Add new cli command for easy update of snapshots without the need to rerun tests. Added: `snappylapy update` CLI command that will update the snapshots that have changed or create new snapshots.

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ Planned data types:
| pathlib.Path | .txt | ❌ |
| decimal.Decimal | .txt | ❌ |
| uuid.UUID | .txt | ❌ |
| pydantic.BaseModel | .json | ❌ |
| python dataclasses | .json | ❌ |



Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies = [
"typing-extensions ; python_full_version == '3.9.*'",
]
name = "snappylapy"
version = "0.5.0"
version = "0.5.1"
description = "A snapshot library for python optimized for easy of use, human readable snapshots and enabling decoupling of chained integration tests."
readme = "README.md"
classifiers = [
Expand Down Expand Up @@ -67,7 +67,7 @@ pandas = [
]

[tool.setuptools.package-data]
snappylapy = ["py.typed"]
snappylapy = ["**/*.py", "py.typed"]

[dependency-groups]
dev = [
Expand Down
Loading