Skip to content

Bump yardstick for python 3.13 support#185

Merged
wagoodman merged 2 commits intomainfrom
bump-yardstick
Feb 13, 2026
Merged

Bump yardstick for python 3.13 support#185
wagoodman merged 2 commits intomainfrom
bump-yardstick

Conversation

@wagoodman
Copy link
Copy Markdown
Contributor

@wagoodman wagoodman commented Feb 13, 2026

I'm starting to see failures in the vunnel repo for the download script:

export ORAS_CACHE=/home/runner/_work/vunnel/vunnel/tests/quality/.oras-cache && . vulnerability-match-labels/venv/bin/activate &&
  ./vulnerability-match-labels/sboms.py download -r pr_vs_latest_via_sbom_nvd"
  Traceback (most recent call last):
  File "/home/runner/_work/vunnel/vunnel/tests/quality/./vulnerability-match-labels/sboms.py", line 13, in <module>
  from yardstick.cli import config
  File "/home/runner/_work/vunnel/vunnel/tests/quality/vulnerability-match-labels/venv/lib/python3.13/site-packages/yardstick/cli/config.py", line 9, in <module>
  from dataclass_wizard import asdict, fromdict  # type: ignore[import]
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/_work/vunnel/vunnel/tests/quality/vulnerability-match-labels/venv/lib/python3.13/site-packages/dataclass_wizard/__init__.py", line 100, in <module>
  from .bases_meta import LoadMeta, DumpMeta
  File "/home/runner/_work/vunnel/vunnel/tests/quality/vulnerability-match-labels/venv/lib/python3.13/site-packages/dataclass_wizard/bases_meta.py", line 10, in <module>
  from .abstractions import AbstractJSONWizard
  File "/home/runner/_work/vunnel/vunnel/tests/quality/vulnerability-match-labels/venv/lib/python3.13/site-packages/dataclass_wizard/abstractions.py", line 14, in <module>
  from .models import Extras
  File "/home/runner/_work/vunnel/vunnel/tests/quality/vulnerability-match-labels/venv/lib/python3.13/site-packages/dataclass_wizard/models.py", line 3, in <module>
  from dataclasses import MISSING, Field, _create_fn
  ImportError: cannot import name '_create_fn' from 'dataclasses' (/opt/hostedtoolcache/Python/3.13.12/x64/lib/python3.13/dataclasses.py)

The issue is that _create_fn was removed in python 3.13, which was fixed in rnag/dataclass-wizard#129 being used in a later version of yardstick. This bumps yardstick to a later version.

This also bumps the python version used in CI here to python 3.13.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman merged commit 8c21992 into main Feb 13, 2026
2 checks passed
@wagoodman wagoodman deleted the bump-yardstick branch February 13, 2026 14:40
@wagoodman wagoodman added the bug Something isn't working label Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants