Exclude compatibility versions from .[dev] install
#286
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.
Hello!
Pull Request overview
devinstall that causes older versions ofdatasets,sentence-transformersandevaluateto be installed.Bug details
In the
setup.py, the following line creates a list of requirements for the compatibility CI tester, i.e. a tester that runs on the lowest working versions ofdatasets,sentence-transformersandevaluate.setfit/setup.py
Line 24 in 0cb8ffd
It is not meant to be used by anyone in practice. It is added to this dictionary for easier installing on the CI runner's side:
setfit/setup.py
Lines 26 to 33 in 0cb8ffd
But, afterwards, the
devinstall is set, which includes all requirements fromEXTRAS_REQUIRE, including the compatibility requirements:setfit/setup.py
Line 40 in 0cb8ffd
Before this PR
This bug causes the following
devrequirements:As you'll note, this includes
'evaluate==0.3.0','sentence-transformers==2.2.1'and'datasets==2.3.0'.The fix
I've simply moved the compatibility test requirements down to below where the
devrequirements are specified. I also reformatted the file slightly.After this PR
As you can see, the compatibility test versions have been removed.