Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove itsdangerous pin #5403

Merged
merged 13 commits into from
Jan 21, 2025
Merged

remove itsdangerous pin #5403

merged 13 commits into from
Jan 21, 2025

Conversation

sashankaryal
Copy link
Contributor

@sashankaryal sashankaryal commented Jan 17, 2025

open3d 0.19.0 has updated flask dependencies that breaks build

Summary by CodeRabbit

  • Chores
    • Added a new package dependency: awscli==1.37.2.
    • Updated version of boto3 to 1.36.2.
    • Removed version constraint for itsdangerous.
    • Adjusted formatting for twine version constraint for consistency.
    • Updated version constraint for ipywidgets to allow versions 7.5 and above.

Copy link
Contributor

coderabbitai bot commented Jan 17, 2025

Walkthrough

The pull request introduces a new package dependency, awscli==1.37.2, to the requirements/test.txt file. The version constraint for the itsdangerous package is removed, indicating it is no longer required. The line for twine remains unchanged in terms of its version constraint but is reformatted for consistency. Additionally, the version of the boto3 package in requirements/common.txt is updated from 1.17.36 to 1.36.2. The version constraint for ipywidgets in requirements/extras.txt is modified to remove the upper limit, allowing for any version starting from 7.5.

Changes

File Change Summary
requirements/test.txt Added awscli==1.37.2; removed version constraint for itsdangerous; adjusted formatting for twine.
requirements/common.txt Updated boto3 from 1.17.36 to 1.36.2.
requirements/extras.txt Updated ipywidgets constraint from >=7.5,<8 to >=7.5.

Possibly related PRs

  • bump mongoengine, motor, and pymongo #4915: The changes in this PR involve updates to the requirements/common.txt file, which is relevant as the main PR also modifies a requirements file (requirements/test.txt). Both PRs deal with package dependencies, although they focus on different packages.

Poem

🐰 In the garden of code, new tools we find,
awscli hops in, leaving worries behind.
boto3 grows stronger, its version refined,
ipywidgets can flourish, with limits unconfined.
A dance of dependencies, in harmony twined! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Member

@findtopher findtopher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be nice to have a plan to keep up to date with their (what appears to be annual) releases, but this'll work for now!

@sashankaryal sashankaryal enabled auto-merge (squash) January 17, 2025 19:09
@sashankaryal sashankaryal changed the title pin open3d remove itsdangerous pin Jan 17, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6239515 and 8b4b97d.

📒 Files selected for processing (1)
  • requirements/test.txt (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.10)
  • GitHub Check: test / test-app
  • GitHub Check: e2e / test-e2e
  • GitHub Check: build / build
  • GitHub Check: build
🔇 Additional comments (2)
requirements/test.txt (2)

11-11: LGTM!

The formatting change for twine's version constraint maintains consistency without affecting the version requirement.


1-1: Verify compatibility with open3d 0.19.0.

The change from >=0.16.0 to >0.16.0 makes the lower bound exclusive. While this allows compatibility with version 0.19.0, we should verify there are no breaking changes in the intermediate versions.

Let's check the package compatibility:

✅ Verification successful

Version constraint open3d>0.16.0 is appropriate

The change is safe because:

  • Version 0.19.0 exists and is supported
  • The codebase uses lazy imports with package verification
  • No version-specific API dependencies were found
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check open3d version compatibility and its dependencies

# Get latest version and release date
curl -s https://pypi.org/pypi/open3d/json | jq -r '.releases | keys_unsorted[-1] as $latest | [.[$latest][0].upload_time_iso_8601, $latest] | @tsv'

# Check for any Flask dependencies in open3d
curl -s https://pypi.org/pypi/open3d/0.19.0/json | jq -r '.info.requires_dist | .[] | select(contains("Flask"))'

Length of output: 300


Script:

#!/bin/bash
# Try alternative PyPI API endpoint and check repository
# Check if open3d 0.19.0 exists
curl -s -I "https://files.pythonhosted.org/packages/source/o/open3d/open3d-0.19.0.tar.gz" | head -n 1

# Search for version-specific requirements or configuration
fd -e txt -e ini -e cfg -e yaml -e yml . | xargs grep -l "open3d"

# Check if there are any test files using open3d
rg "import.*open3d" -l

Length of output: 460


Script:

#!/bin/bash
# Check actual usage of open3d in source files
rg "import.*open3d" -A 5 tests/unittests/utils3d_tests.py fiftyone/utils/utils3d.py fiftyone/utils/kitti.py

# Check available versions on PyPI
curl -s https://pypi.org/pypi/open3d/json | jq -r '.releases | keys[]' | sort -V | tail -n 5

Length of output: 1155

open3d>=0.16.0
itsdangerous==2.0.1
open3d>0.16.0
itsdangerous==2.1.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Version 2.1.2 of itsdangerous is incompatible with Flask

Flask requires itsdangerous>=2.2, but the requirements file specifies version 2.1.2. Please upgrade itsdangerous to at least version 2.2 to ensure compatibility.

🔗 Analysis chain

Verify Flask compatibility with itsdangerous 2.1.2.

The version update to 2.1.2 should resolve the build issues with Flask dependencies. Let's verify the compatibility.

Run this script to check version compatibility:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check itsdangerous version compatibility with Flask

# Get Flask's dependency on itsdangerous
curl -s https://pypi.org/pypi/Flask/json | jq -r '.info.requires_dist | .[] | select(contains("itsdangerous"))'

# Check for any known issues with itsdangerous 2.1.2
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: PIP, package: "itsdangerous", package: "Flask") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Length of output: 733


Script:

#!/bin/bash
# Check for security vulnerabilities in itsdangerous
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: PIP, package: "itsdangerous") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Length of output: 345

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
requirements/test.txt (1)

3-3: ⚠️ Potential issue

Upgrade itsdangerous to version >=2.2.

Flask requires itsdangerous>=2.2, but version 2.1.2 is specified. This will cause compatibility issues.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b4b97d and aaac3ee.

📒 Files selected for processing (1)
  • requirements/test.txt (2 hunks)
🧰 Additional context used
🪛 GitHub Actions: Build docs
requirements/test.txt

[error] 2-2: Dependency conflict between ipywidgets and open3d. open3d requires ipywidgets>=8.0.4, but there is a conflicting requirement for ipywidgets<8 and >=7.5

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.11)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.10)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.9)
  • GitHub Check: e2e / test-e2e

open3d>=0.16.0
itsdangerous==2.0.1
boto3==1.17.36
open3d>0.16.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Resolve dependency conflict with ipywidgets.

The pipeline failure indicates that open3d requires ipywidgets>=8.0.4, but there's a conflicting requirement for ipywidgets<8. Consider one of these solutions:

  1. Pin open3d to a version that's compatible with ipywidgets<8
  2. Update the ipywidgets constraint to allow version 8
🧰 Tools
🪛 GitHub Actions: Build docs

[error] 2-2: Dependency conflict between ipywidgets and open3d. open3d requires ipywidgets>=8.0.4, but there is a conflicting requirement for ipywidgets<8 and >=7.5

requirements/test.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 209e16f and b2d028c.

📒 Files selected for processing (1)
  • requirements/extras.txt (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.11)
  • GitHub Check: test / test-python (ubuntu-latest-m, 3.10)
  • GitHub Check: e2e / test-e2e
  • GitHub Check: test / test-app
  • GitHub Check: build
🔇 Additional comments (1)
requirements/extras.txt (1)

4-4: Verify alignment with PR objectives.

This change appears to be unrelated to the main PR objective of fixing Flask dependencies and removing the itsdangerous pin. Please clarify if this modification is necessary for the current PR scope.

Let's check if there are any dependency relationships between ipywidgets and the Flask-related packages:

@@ -1,7 +1,7 @@
google-api-python-client>=1.6.5
google-cloud-storage>=1.36
httplib2<=0.15
ipywidgets>=7.5,<8
ipywidgets>=7.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Maintain version constraint for ipywidgets

The removal of the upper version bound (<8) could lead to compatibility issues as ipywidgets has undergone a major version change (current latest is 8.1.5). Since major versions often introduce breaking changes and the package has tightly coupled dependencies, it's recommended to maintain version constraints:

  • Consider using ipywidgets>=7.5,<8 to ensure stability
  • If v8 support is needed, verify compatibility with your usage first
🔗 Analysis chain

Verify compatibility with newer ipywidgets versions.

Removing the upper version bound (<8) could potentially introduce compatibility issues with newer versions of ipywidgets. While this change allows for more flexibility, it may need additional testing to ensure compatibility with the rest of the ecosystem.

Let's check for any known compatibility issues or breaking changes in newer versions:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for major version changes and dependencies of ipywidgets

# Get the latest version and its dependencies
curl -s https://pypi.org/pypi/ipywidgets/json | jq -r '.releases | keys[]' | sort -V | tail -n 1
curl -s https://pypi.org/pypi/ipywidgets/json | jq '.info.requires_dist'

# Check if this package is a dependency of other packages in the project
rg -l "ipywidgets" requirements/

Length of output: 531

@sashankaryal sashankaryal merged commit 073693d into develop Jan 21, 2025
14 checks passed
@sashankaryal sashankaryal deleted the pin-open3d branch January 21, 2025 19:13
benjaminpkane pushed a commit that referenced this pull request Jan 22, 2025
* pin open3d

* more than 16, less than 19

* remove itsdangerous
benjaminpkane pushed a commit that referenced this pull request Jan 22, 2025
* pin open3d

* more than 16, less than 19

* remove itsdangerous
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