Remove constraints from GitHub in constraints.txt
#2364
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#2267 added
torch_harmonics
via a GitHub URL to thepip-requirements.txt
file, which subsequently led to it being used in theconstraints.txt
file. This broke the dataflow image build as newer versions ofpip
no longer allow this: #2304.This PR implements the fix suggested in a discussion between @frodre and @oliverwm1 in Slack a while back:
Indeed it seems like even if older versions of
pip
allow GitHub URLs to appear in constraints files, they do not have the desired effect. In other words if one does:in an environment without it already installed,
pip
will download the latest version off of PyPI instead of fetching it from the GitHub URL in the constraints file (perhaps this is not surprising since it is unnamed andpip
is not set up to infer the name from the URL). Thus I suppose it is somewhat misleading to include GitHub URLs in the constraints to begin with, and sufficient / better that we specifytorch_harmonics
from GitHub in thesetup.py
inxtorch_harmonics
:fv3net/external/xtorch_harmonics/setup.py
Line 16 in 314edd5
All that being said, I have implemented this in a way such to retain
git+https://github.com/NVIDIA/torch-harmonics.git@8826246cacf6c37b600cdd63fde210815ba238fd
inpip-requirements.txt
since it appearspip-compile
can still resolve dependencies from packages on GitHub and use that to inform the versions of other packages pinned in theconstraints.txt
file, which is still useful.Requirement changes:
make lock_deps/lock_pip
following these instructionsResolves #2304
Coverage reports (updated automatically):