Skip to content

fix(amplify): cap setuptools<82 to preserve pkg_resources#1574

Merged
pstjohn merged 1 commit into
NVIDIA-BioNeMo:mainfrom
svc-bionemo:svc-bionemo/fix-nightly-20260515-f4be46c0
May 15, 2026
Merged

fix(amplify): cap setuptools<82 to preserve pkg_resources#1574
pstjohn merged 1 commit into
NVIDIA-BioNeMo:mainfrom
svc-bionemo:svc-bionemo/fix-nightly-20260515-f4be46c0

Conversation

@svc-bionemo
Copy link
Copy Markdown
Collaborator

Description

Fixes nightly CI failure in unit-tests (models/amplify) (run #25911784459).

Root Cause

When pip install -e . runs for the amplify recipe, pip resolves setuptools>=61.0 to v82.0.1. In setuptools 82+, pkg_resources was removed as a bundled module. The hypothesis testing library (installed in the base container image) imports pkg_resources in its entry_points.py, causing pytest to crash at startup:

ModuleNotFoundError: No module named 'pkg_resources'

Fix

  • Cap setuptools>=61.0,<82 in [build-system].requires
  • Add setuptools<82 to [project].dependencies to prevent runtime upgrade

This preserves backward compatibility until either the base image is updated with a newer hypothesis that does not use pkg_resources, or setuptools-pkg-resources is added.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)

Signed-off-by: svc-bionemo 267129667+svc-bionemo@users.noreply.github.com

Signed-off-by: svc-bionemo <267129667+svc-bionemo@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e14d7c77-af85-4c85-a65b-5a0cea802a8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@pstjohn pstjohn added this pull request to the merge queue May 15, 2026
Merged via the queue into NVIDIA-BioNeMo:main with commit 3a9d005 May 15, 2026
18 checks passed
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.

2 participants