Skip to content

fix(Hubspot): Fix unexpected setuptools dependency#6793

Merged
emyller merged 1 commit intomainfrom
fix/hubspot-setuptools-dependency
Feb 26, 2026
Merged

fix(Hubspot): Fix unexpected setuptools dependency#6793
emyller merged 1 commit intomainfrom
fix/hubspot-setuptools-dependency

Conversation

@emyller
Copy link
Contributor

@emyller emyller commented Feb 26, 2026

Changes

Closes #6791

Upgrade python-hubspot-client from 8.x to 12.x.

This is a hotfix that attempts to move the ball forward rather than reinstate setuptools back as a core dependency.

How did you test this code?

  • Used AI to collect data on our SDK usage vs the python-hubspot-client CHANGELOG since 8.x, and got convinced no changes are relevant to our use.
  • Ran tests relevant to this integration locally. All pass.

python-hubspot-client CHANGELOG highlights (according to Claude):

  • 9.0.0: Association object IDs changed from int to str (we already use str).
  • 9.0.0: auth.oauth client moved to oauth (we use access token auth).
  • 10.0.0: All GDPR and PublicObject APIs removed (we don't use them).
  • 12.0.0: BatchInputSimplePublicObjectInputForCreate renamed (we use the single variant).
  • 12.0.0: object_write_trace_id removed from input models (we don't set it).
  • 12.0.0: pkg_resources replaced with importlib.metadatathis is the actual fix we need.

@emyller emyller self-assigned this Feb 26, 2026
@emyller emyller requested a review from a team as a code owner February 26, 2026 18:18
@emyller emyller requested review from gagantrivedi and removed request for a team February 26, 2026 18:18
@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Feb 26, 2026 6:18pm
flagsmith-frontend-preview Ignored Ignored Feb 26, 2026 6:18pm
flagsmith-frontend-staging Ignored Ignored Feb 26, 2026 6:18pm

Request Review

@emyller emyller changed the title fix(Hubspot): Fix unexpected dependency on setuptools fix(Hubspot): Fix unexpected setuptools dependency Feb 26, 2026
@github-actions github-actions bot added api Issue related to the REST API fix labels Feb 26, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-6793 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-6793 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api-test:pr-6793 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-6793 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-6793 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-6793 Finished ✅ Results

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.30%. Comparing base (5df4fe9) to head (697f94d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6793   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files        1331     1331           
  Lines       49332    49332           
=======================================
  Hits        48494    48494           
  Misses        838      838           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@emyller emyller merged commit b7a81d5 into main Feb 26, 2026
33 checks passed
@emyller emyller deleted the fix/hubspot-setuptools-dependency branch February 26, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'pkg_resources' in tasks.update_hubspot_active_subscription

2 participants