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

tools: Don't include extras in the requirements.txt #2270

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

t-b
Copy link
Collaborator

@t-b t-b commented Sep 30, 2024

This fixes a CI issue where we could not regenerate the container image due to 1

11 19.13 Collecting pydantic~=2.0
11 19.13 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
11 19.13 pydantic~=2.0 from https://files.pythonhosted.org/packages/df/e4/ba44652d562cbf0bf320e0f3810206149c8a4e99cdbf66da82e97ab53a15/pydantic-2.9.2-py3-none-any.whl (from dandi==0.63.0->-r requirements.txt (line 364))
11 ERROR: process "/bin/sh -c python -m venv --system-site-packages /home/ci/.venv && . /home/ci/.venv/bin/activate && pip3 install -r requirements.txt" did not complete successfully: exit code: 1

The problem is that pip from debian bookworm seems to be misparsing this entry.

As we also don't need the extras we can just not include them.

@t-b t-b self-assigned this Sep 30, 2024
This fixes a CI issue where we could not regenerate the container image
due to [1]

11 19.13 Collecting pydantic~=2.0
11 19.13 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
11 19.13     pydantic~=2.0 from https://files.pythonhosted.org/packages/df/e4/ba44652d562cbf0bf320e0f3810206149c8a4e99cdbf66da82e97ab53a15/pydantic-2.9.2-py3-none-any.whl (from dandi==0.63.0->-r requirements.txt (line 364))
11 ERROR: process "/bin/sh -c python -m venv --system-site-packages /home/ci/.venv &&     . /home/ci/.venv/bin/activate                        &&     pip3 install -r requirements.txt" did not complete successfully: exit code: 1

The exact source of the problem is unkonwn but regenerating
tools/nwb-read-tests/requirements.txt on debian bookworm seems to fix the
issue.

As we also don't need the extras we can just not include them.

[1]: https://github.com/AllenInstitute/MIES/actions/runs/11076005552/job/30822809003
@t-b t-b force-pushed the bugfix/2270-requirements-no-extras branch from dfd70f3 to 698f5fe Compare September 30, 2024 22:06
@t-b t-b merged commit 349947f into main Oct 1, 2024
20 checks passed
@t-b t-b deleted the bugfix/2270-requirements-no-extras branch October 1, 2024 09:41
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.

1 participant