-
Notifications
You must be signed in to change notification settings - Fork 113
Use --no-deps when installing compiled requirements files #2752
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
Conversation
google-api-core==1.31.5 # transitive dep that needs dependabot updates | ||
google-cloud-bigquery==2.34.0 | ||
google-cloud-storage==2.1.0 | ||
googleapis-common-protos==1.54.0 # transitive dep that needs dependabot updates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove previous workaround from #2064 which was having no impact
Integration report for "Use --no-deps when installing compiled requirements files"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You read my mind! (thanks for tackling this)
- There are some
pip install
commands in.circleci/config.yml
which also need to be updated. - A similar change needs to be made wherever pip-sync is used (e.g.
--pip-args "--no-deps"
), or pip-sync could be swapped out forpip install
.- On a related note, in the readme's "Installing bqetl" section, running pip-sync in step 4 ends up uninstalling bqetl from the venv because bqetl isn't in the requirements files, which would be a reason to use
pip install
instead.
- On a related note, in the readme's "Installing bqetl" section, running pip-sync in step 4 ends up uninstalling bqetl from the venv because bqetl isn't in the requirements files, which would be a reason to use
👍
CI caches the pip venv, and needs to use
not using pip-sync is outside the scope of this PR |
but we can retain bqetl with |
Integration report for "don't erase bqetl with pip-sync"
|
@@ -34,7 +34,7 @@ jobs: | |||
command: | | |||
python3.8 -m venv venv/ | |||
venv/bin/pip install pip-tools --constraint requirements.in | |||
venv/bin/pip-sync | |||
venv/bin/pip-sync --pip-args=--no-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default I think pip-sync only looks for requirements.txt
, so should this specify both requirements.txt
and java-requirements.txt
like is done elsewhere?
venv/bin/pip-sync --pip-args=--no-deps | |
venv/bin/pip-sync --pip-args=--no-deps requirements.txt \ | |
java-requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java requirements are intentionally left out here, as they are optional and should not be required for unit tests.
Co-authored-by: Sean Rose <[email protected]>
Integration report for "Merge branch 'main' into pip-no-deps"
|
to work around pypa/pip#9644
see also mozilla/gcp-ingestion#2001
Checklist for reviewer:
<username>:<branch>
of the fork as parameter. The parameter will also show upin the logs of the
manual-trigger-required-for-fork
CI task together with more detailed instructions.For modifications to schemas in restricted namespaces (see
CODEOWNERS
):