Skip to content

improve ABNF integration of ssvc namespaces via runtime parsing#1067

Merged
ahouseholder merged 2 commits intoCERTCC:mainfrom
csaf-auxiliary:abnf-runtime-reading
Mar 6, 2026
Merged

improve ABNF integration of ssvc namespaces via runtime parsing#1067
ahouseholder merged 2 commits intoCERTCC:mainfrom
csaf-auxiliary:abnf-runtime-reading

Conversation

@bernhardreiter
Copy link
Copy Markdown
Contributor

  • add abnf-to-python as dependency
  • remove hardcoded result of abnf-to-python and replace it with
    a dynamic call that parses ssvc_namespace_pattern.abnf at runtime.

resolve #899

is an alternative to #1065

 * add abnf-to-python as dependency
 * remove hardcoded result of abnf-to-python and replace it with
   a dynamic call that parses `ssvc_namespace_pattern.abnf` at runtime.

resolve CERTCC#899
@bernhardreiter
Copy link
Copy Markdown
Contributor Author

/!\ only merge either #1065 or the alternative in this request.

@ahouseholder ahouseholder merged commit 288c0bf into CERTCC:main Mar 6, 2026
2 checks passed
ahouseholder added a commit that referenced this pull request Mar 27, 2026
… namespace_patterns.py

- Move abnf-to-regexp from runtime to dev dependency group in pyproject.toml
- Replace dynamic ABNF parsing in patterns.py with static import from
  namespace_patterns.py (no runtime dependency on abnf-to-regexp)
- Add namespace_patterns.py with pre-generated static regex patterns
- Add Makefile rule to regenerate namespace_patterns.py from ABNF source
- Add --no-dev to 'uv sync --frozen' in Dockerfile dependencies stage so
  abnf-to-regexp (and its sdist-only regex==2021.4.4 dep) are not installed
  in production images
- Add gcc+libc-dev to test stage for compiling regex when running dev sync

Fixes docker-compose --project-directory docker build --no-cache

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate ABNF to python namespace patterns

2 participants