-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31167][BUILD] Refactor how we track Python test/build dependencies #27928
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
Closed
Closed
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7a20608
missing test dependencies
nchammas 7273851
add docs requirements file
nchammas 0a9cbbc
reference new docs requirements file
nchammas 9c3a7af
pin doc gem requirements in github workflow
nchammas de9fbbd
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas 1086d81
merge docs reqs into general dev reqs
nchammas cd05e25
merged reqs
nchammas 4326933
open python reqs to latest patch version
nchammas 75682a6
Unidecode 04 -> 4
nchammas bb83262
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas 839669d
add requirements and pinned requirements
nchammas 473c85d
requirements.txt -> requirements-pinned.txt
nchammas 4b540a9
run pip-tools from within dev/
nchammas b088d15
add dev readme
nchammas 9704c60
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas 7df0040
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas bae2c0c
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas e21d97d
Merge branch 'master' of https://github.com/apache/spark into SPARK-3…
nchammas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| flake8==3.5.0 | ||
| flake8==3.7.* | ||
| jira==1.0.3 | ||
| pycodestyle==2.5.* | ||
| PyGithub==1.26.0 | ||
| Unidecode==0.04.19 | ||
| sphinx | ||
|
|
||
| # docs | ||
| mkdocs==1.0.* | ||
| numpy==1.18.* | ||
| sphinx==2.3.* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
While I still think we should pin every version here, perhaps this approach is a compromise we can agree on.
==3.7.*means pip will install the latest bugfix release on 3.7. If you already have any 3.7 version installed, even if it's not the latest one, pip will consider the requirement satisfied and won't do anything. To force pip to upgrade to the latest bugfix release of 3.7 when you already have a compatible version installed, simply request it viapip install --upgrade.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.
If we can assume these dependencies follow SemVer, it we should better use wildcards on minor versions ...
Uh oh!
There was an error while loading. Please reload this page.
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.
I mentioned it elsewhere but I'll mention it again here: Linters like flake8 and pycodestyle introduce new checks in minor/feature releases. There is very high chance that every new check they introduce will flag new problems and fail the build.
In fact, we saw exactly that behavior with pydocstyle just before we removed it. And I experienced this with pycodestyle in Flintrock before pinning the version.
I don't understand the point of waiting for the build to break before pinning or severely limiting the versions for libraries like these.