Skip to content

[secops-soar] setup.py is missing python-dotenv dependency from install_requires #294

Description

@dandye

Description

server/secops-soar/setup.py is out of sync with server/secops-soar/pyproject.toml and is missing the python-dotenv dependency.

Root Cause

PR #259 added "python-dotenv>=1.0.0" to server/secops-soar/pyproject.toml to support import dotenv in secops_soar_mcp.bindings.

However, server/secops-soar/setup.py (lines 24-27) was not synchronized:

setup(
    name="secops-soar-mcp",
    version="0.1.2",
    packages=setuptools.find_packages(),
    install_requires=[
        "aiohttp>=3.11.15",
        "mcp[cli]>=1.4.1,<2.0",
    ],  # Missing python-dotenv>=1.0.0
    ...
)

Legacy packaging workflows, source distribution builds, or environments installing via setup.py will not pull in python-dotenv, leading to runtime ModuleNotFoundError: No module named 'dotenv' upon startup.

Proposed Fix

Synchronize server/secops-soar/setup.py by adding "python-dotenv>=1.0.0" to install_requires:

    install_requires=[
        "aiohttp>=3.11.15",
        "mcp[cli]>=1.4.1,<2.0",
        "python-dotenv>=1.0.0",
    ],

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions