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

Allow Docker to install web.py from git rather than latest release #8987

Merged

Conversation

rebecca-shoptaw
Copy link
Collaborator

@rebecca-shoptaw rebecca-shoptaw commented Mar 28, 2024

Fix. Fixes bug that was preventing successful runs of the i18n script to extract messages in Docker by ensuring Docker installs the git-installed version of web.py if that is what is in requirements.txt.

Technical

Currently Docker runs of the script are causing TokenErrors as a result of a mismatch between Python 3.12 and the web.py version, which was solved in a recent web.py git commit, but not in the latest release.

Testing

  1. Start a Docker container
  2. Run the following command: docker compose run --rm -uroot home ./scripts/i18n-messages extract
    A new messages.pot file should be generated!

Stakeholders

@cdrini

@cdrini cdrini self-assigned this Mar 28, 2024
@cdrini cdrini added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Mar 28, 2024
@cdrini
Copy link
Collaborator

cdrini commented Mar 28, 2024

Labelling as high priority since this is blocking folks trying to work on internationalization.

Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Before:

image

After: No error! Lgtm 👍

After:

docker/Dockerfile.oldev Outdated Show resolved Hide resolved
@cdrini cdrini merged commit e548eb2 into internetarchive:master Mar 28, 2024
2 of 3 checks passed
Achorn pushed a commit to Achorn/openlibrary that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 1 Do this week, receiving emails, time sensitive, . [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants