Skip to content

Remove transformers upper bound constraint in macOS requirements#4

Merged
lmangani merged 2 commits intomainfrom
copilot/fix-pip-dependency-conflict
Jan 28, 2026
Merged

Remove transformers upper bound constraint in macOS requirements#4
lmangani merged 2 commits intomainfrom
copilot/fix-pip-dependency-conflict

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

Upper bound constraint transformers>=4.35.0,<4.57.0 in requirements_macos.txt conflicts with heartlib's dependencies, preventing pip from resolving a compatible version tree.

Changes

  • requirements_macos.txt: Remove <4.57.0 upper bound, retain >=4.35.0 minimum
-# Transformers (constrain to avoid yanked 4.57.0)
-transformers>=4.35.0,<4.57.0
+# Transformers
+transformers>=4.35.0

Allows pip to resolve transformers 4.57.0 which satisfies both explicit requirements and transitive dependencies from heartlib @ git+https://github.com/HeartMuLa/heartlib.git.

Original prompt

This pull request addresses a pip dependency conflict in the macOS build workflow of the HeartMuLa-Studio repository. The conflict arises from the explicit version constraints in the requirements_macos.txt file. Notably, the dependency transformers is pinned to the version range >=4.35.0,<4.57.0, which conflicts with other dependencies or with the heartlib package imported via git.

Proposed Fixes:

  1. Loosen the transformers version constraints to transformers>=4.35.0. This ensures compatibility with other dependencies and allows pip to resolve a suitable version.
  2. Verify all other package version constraints and update or remove redundant constraints if necessary.
  3. Ensure that the updated requirements_macos.txt resolves all dependencies and builds correctly without conflicts.

Steps Taken:

  1. Edited requirements_macos.txt to loosen the version constraint for transformers.
  2. Reviewed all other dependencies in requirements_macos.txt to ensure no similar issues are present.
  3. Verified that the changes resolve the conflict and maintain compatibility.

Please review the changes and provide feedback if further adjustments are required.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…flicts

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix pip dependency conflict in macOS build workflow Remove transformers upper bound constraint in macOS requirements Jan 28, 2026
Copilot AI requested a review from lmangani January 28, 2026 22:47
@lmangani lmangani marked this pull request as ready for review January 28, 2026 22:54
@lmangani lmangani merged commit d81e90d into main Jan 28, 2026
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