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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "ml4t-coursework"
version = "0.2.0"
version = "0.3.0"
description = "Project folder, component conformance checks and results log for the ML4T courses"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/ml4t_coursework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
rather than for a course, because more than one course installs it.
"""

__version__ = "0.2.0"
__version__ = "0.3.0"

from .components import catalog, load_component, save_component, source_of, status
from .contracts import add_source
Expand Down
13 changes: 13 additions & 0 deletions tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,16 @@ def test_the_fingerprint_check_reads_the_columns_the_fingerprint_has():
assert "checked 100 of 100" in text
assert "Worth a look" in text, "400 random sessions should not look like the course's panel"
assert set(reference.columns) >= {"sessions", "annualized_vol", "mean_abs_return"}


def test_the_declared_version_and_the_installed_version_agree():
"""`helper_version` on every run row comes from the module, the distribution metadata comes
from pyproject, and the release workflow checks the tag against the module only. Two static
strings that nothing compares will drift, and a student's recorded version would then name
something pip never installed. Reading the metadata rather than pyproject also catches a build
that is stale against the source tree."""
from importlib.metadata import version

import ml4t_coursework

assert ml4t_coursework.__version__ == version("ml4t-coursework")
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.