Skip to content

chore: pin GitHub Actions workflows to full commit SHAs#246

Open
irfanuddinahmad wants to merge 3 commits into
openedx:masterfrom
irfanuddinahmad:pin-actions-to-sha
Open

chore: pin GitHub Actions workflows to full commit SHAs#246
irfanuddinahmad wants to merge 3 commits into
openedx:masterfrom
irfanuddinahmad:pin-actions-to-sha

Conversation

@irfanuddinahmad

Copy link
Copy Markdown

Pins all uses: action refs to their full commit SHA with the version tag preserved as a comment. Part of org-wide SHA-pinning migration: openedx/.github#165

@feanil

feanil commented May 30, 2026

Copy link
Copy Markdown

@irfanuddinahmad looks like the PR is failing tests, probably unrelated, can you fix the issue anyway in a separate PR and then we can rebase this and land it.

Irfan Ahmad and others added 2 commits June 2, 2026 16:56
enmerkar 0.7.1 calls `from pkg_resources import get_distribution` in
its __init__.py at runtime. pkg_resources ships with setuptools, which
is no longer bundled with Python 3.12. Adding setuptools as an explicit
requirement ensures it is available in the tox virtualenv.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
enmerkar 0.7.1 imports pkg_resources at module load time but does not
declare setuptools as a dependency. In some virtualenv configurations,
pkg_resources is not importable even when setuptools is installed.
This conftest.py creates a minimal importlib.metadata-backed shim so
that pytest collection succeeds regardless of the virtualenv setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@feanil feanil left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also, worth checking is where this library is being used, do we still need this fork?

Comment thread conftest.py
@@ -0,0 +1,34 @@
"""
Ensure pkg_resources is importable before any tests run.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why do we need both this shim and adding setuptools to the base.in? Can't we just update this library to use importlib.metadata instead?

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.

3 participants