Docker borkened by sei-renae · Pull Request #1102 · CERTCC/SSVC

Fix local build and docker build
This pull request makes several dependency and codebase changes to remove the use of the abnf-to-regexp library and instead directly include the generated regular expression code for parsing namespace patterns. This simplifies the codebase and reduces external dependencies.

Dependency and import changes:

  • Removed the abnf-to-regexp dependency from both the pyproject.toml dependencies list and from imports in src/ssvc/utils/patterns.py. ([[1]](https://github.com/CERTCC/SSVC/pull/1102/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711L51), [[2]](https://github.com/CERTCC/SSVC/pull/1102/files#diff-b97f367a184861197f4c084fc982264a59150a04247f931c349524d9e26eeadcL24-L27))

Pattern generation refactor:

  • Replaced the dynamic generation of regex patterns (previously using abnf-to-regexp at runtime) with a static, directly-included Python section containing the generated regex code for namespace patterns in src/ssvc/utils/patterns.py. ([src/ssvc/utils/patterns.pyL44-R73](https://github.com/CERTCC/SSVC/pull/1102/files#diff-b97f367a184861197f4c084fc982264a59150a04247f931c349524d9e26eeadcL44-R73))

Dependency version pinning:

  • Pinned the mkdocstrings-python dependency to a maximum version of 2.0.3 in pyproject.toml to avoid incompatibilities with newer versions. ([pyproject.tomlL36-R36](https://github.com/CERTCC/SSVC/pull/1102/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711L36-R36))