Skip to content

Move python-dateutil from the package's runtime dependencies to its Poetry development group. #157

Description

@suliuzh

Summary

Move python-dateutil from the package's runtime dependencies to its Poetry development group.

Rationale

python-dateutil is currently one of the package's two default dependencies (pyproject.toml:28-32).
In the repository, its only direct import is in the test comparison helper (tests/abstract_sbom_compare.py:13).
The distributed siemens_standard_bom package does not import it.

The project already maintains a Poetry development group, including the corresponding type stubs (pyproject.toml:44-50).

Changes

  • Remove python-dateutil from [project].dependencies.
  • Add the same version range to [tool.poetry.group.dev.dependencies].
 dependencies = [
-    "python-dateutil (>=2.9.0.post0,<3.0.0)",
     "cyclonedx-python-lib(>=11.11.0,<12.0.0)",
 ]

 [tool.poetry.group.dev.dependencies]
+python-dateutil = ">=2.9.0.post0,<3.0.0"
 types-python-dateutil = "2.9.0.20260716"

Impact

This would keep the test helper available to contributors without adding python-dateutil to every library installation.

If you agree with this change, I would be happy to open a pull request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency filegood first issueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions