Skip to content

Fix CI: add setuptools to resolve missing pkg_resources#263

Merged
charlesprost merged 2 commits intomainfrom
fix/ci-setuptools-missing
Apr 13, 2026
Merged

Fix CI: add setuptools to resolve missing pkg_resources#263
charlesprost merged 2 commits intomainfrom
fix/ci-setuptools-missing

Conversation

@charlesprost
Copy link
Copy Markdown
Contributor

Summary

  • pkg_resources (provided by setuptools) is no longer pre-installed in the GitHub Actions runner environment
  • The jira dependency uses it internally, causing an ImportError at collection time across all test jobs
  • Add setuptools explicitly to requirements.txt and to each tox env that does not inherit the base [testenv] deps

Test plan

  • All CI jobs pass on this PR

pkg_resources (provided by setuptools) is no longer pre-installed in
the GitHub Actions runner environment. The jira dependency uses it
internally, causing an ImportError at collection time.

Add setuptools explicitly to requirements.txt and to each tox env that
does not inherit the base [testenv] deps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@charlesprost charlesprost requested a review from a team as a code owner April 13, 2026 08:47
setuptools 82.x removed pkg_resources as a top-level import, breaking
all tox environments. Pin to setuptools<82 to ensure pkg_resources
remains importable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.03%. Comparing base (fcd08a5) to head (6f8ddb2).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #263   +/-   ##
=======================================
  Coverage   89.03%   89.03%           
=======================================
  Files          75       75           
  Lines       10060    10060           
=======================================
  Hits         8957     8957           
  Misses       1103     1103           
Flag Coverage Δ
integration 87.47% <ø> (ø)
tests 87.44% <ø> (ø)
tests-BuildFailedTest 26.98% <ø> (ø)
tests-QuickTest 34.11% <ø> (ø)
tests-RepositoryTests 26.64% <ø> (ø)
tests-TaskQueueTests 51.95% <ø> (ø)
tests-TestBertE 66.12% <ø> (ø)
tests-TestQueueing 53.85% <ø> (ø)
tests-api-mock 16.14% <ø> (ø)
tests-noqueue 77.84% <ø> (ø)
tests-noqueue-BuildFailedTest 26.98% <ø> (ø)
tests-noqueue-QuickTest 34.11% <ø> (ø)
tests-noqueue-RepositoryTests 26.64% <ø> (ø)
tests-noqueue-TaskQueueTests 51.95% <ø> (ø)
tests-noqueue-TestBertE 62.50% <ø> (+0.01%) ⬆️
tests-noqueue-TestQueueing 26.66% <ø> (ø)
tests-server 29.66% <ø> (ø)
unittests 40.82% <ø> (ø)
utests 24.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@charlesprost charlesprost merged commit bb65469 into main Apr 13, 2026
18 checks passed
@charlesprost charlesprost deleted the fix/ci-setuptools-missing branch April 13, 2026 09:24
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