Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

chore(dev): remove the empty editable Python distribution (#1724)

Michael D'Angelo662190ad02da
diff --git a/.devcontainer/install.sh b/.devcontainer/install.sh
index f27386239..ad4fb9ead 100644
--- a/.devcontainer/install.sh
+++ b/.devcontainer/install.sh
@@ -29,4 +29,4 @@ fi
pnpm --dir sdk/typescript install --frozen-lockfile
pnpm --dir plugins/codex-security/mcp-app install --frozen-lockfile
-python -m pip install --disable-pip-version-check --no-input -e 'plugins/codex-security[test]'
+python -m pip install --disable-pip-version-check --no-input -r plugins/codex-security/requirements-test.txt
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index 6a7ff6c9b..26e5c9ddc 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -406,9 +406,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
cache: pip
- cache-dependency-path: plugins/codex-security/pyproject.toml
+ cache-dependency-path: plugins/codex-security/requirements-test.txt
- name: Install Python test dependencies
- run: python -m pip install --disable-pip-version-check --no-input -e 'plugins/codex-security[test]'
+ run: python -m pip install --disable-pip-version-check --no-input -r plugins/codex-security/requirements-test.txt
- name: Install ripgrep
if: runner.os == 'Linux'
run: |
diff --git a/plugins/codex-security/pyproject.toml b/plugins/codex-security/pyproject.toml
index 33ab1c7e5..a995cde00 100644
--- a/plugins/codex-security/pyproject.toml
+++ b/plugins/codex-security/pyproject.toml
@@ -1,18 +1,3 @@
-[project]
-name = "codex-security"
-version = "0.1.0"
-requires-python = ">=3.10"
-
-[project.optional-dependencies]
-test = [
- "jsonschema[format-nongpl]==4.26.0",
- "packaging==26.3",
- "pytest==9.1.1",
- "pytest-xdist==3.8.0",
- "PyYAML==6.0.3",
- "ruff==0.17.0",
-]
-
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
@@ -196,10 +181,3 @@ preview = true
[tool.ruff.lint.isort]
detect-same-package = false
-
-[tool.setuptools.packages.find]
-include = []
-
-[build-system]
-requires = ["setuptools>=84.0.0"]
-build-backend = "setuptools.build_meta"
diff --git a/plugins/codex-security/requirements-test.txt b/plugins/codex-security/requirements-test.txt
new file mode 100644
index 000000000..1afee02a6
--- /dev/null
+++ b/plugins/codex-security/requirements-test.txt
@@ -0,0 +1,7 @@
+# Development test and lint dependencies; install from the repository root.
+jsonschema[format-nongpl]==4.26.0
+packaging==26.3
+pytest==9.1.1
+pytest-xdist==3.8.0
+PyYAML==6.0.3
+ruff==0.17.0
diff --git a/sdk/typescript/TESTING.md b/sdk/typescript/TESTING.md
index ba5051ef8..41af0485f 100644
--- a/sdk/typescript/TESTING.md
+++ b/sdk/typescript/TESTING.md
@@ -68,6 +68,17 @@ Refresh the artifact after changing native source or toolchain. The standalone
plugin supports a host-only build; that does not satisfy the SDK's universal
packaging tests. See the [native build guide](../../plugins/codex-security/native/README.md).
+## Python test dependencies
+
+Use Python 3.10 or later. From the repository root, install the Python test and lint dependencies with:
+
+```sh
+python -m pip install --disable-pip-version-check --no-input -r plugins/codex-security/requirements-test.txt
+```
+
+This replaces `pip install -e 'plugins/codex-security[test]'`. Tests load the plugin scripts from source; the repository does not need an installed Python distribution.
+The requirements file is the single list of pinned Python test dependencies. Ruff and pytest settings remain in `plugins/codex-security/pyproject.toml`; the Ruff dependency and its `required-version` setting must agree.
+
## Writing tests
- Test observable results, failures, cancellation, and cleanup. Prefer a