-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Generate requirements.txt from Python spec #7289
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2c3218a
Generate requirements.txt from Python spec.
areusch 4243326
add tests, collect actual requirements (first cut).
areusch 9b9b4e1
add tornado and cloudpickle
areusch 25c68b9
add xgboost
areusch 2f51d15
add xgboost version restriction
areusch ea85b36
cleanup and prepare for merge
areusch 53577a4
black format
areusch 4649c74
add type annotations and docstrings
areusch cca494b
remove example requirements.txt
areusch c2235cb
fix setup.py extras_require
areusch a7d2b4b
use typing. classes for type annotations, python 2 compatible :)
areusch 6e8ff1e
fix python2 typing.Pattern
areusch 316e586
retrigger CI
areusch f20544b
address comaniac comments
areusch 6386b3e
retrigger ci
areusch 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
fix setup.py extras_require
- Loading branch information
commit c2235cbca7025e60708f8946b2723539a2c75e23
There are no files selected for viewing
This file contains 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.
Do you want to print out some details on what the requirements identified are, to help with debugging?
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.
what do you mean exactly?
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.
Well, just a suggestion that when this is being invoked, and the requirements being generated automatically, it might be useful to have them dumped to stdout during the invocation (perhaps optionally) so someone debugging issues with Python deps can readily see what they were. Not sure if they are exposed in an obvious way elsewhere.
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 guess, I don't typically expect to see the requirements printed when I run
python setup.py
. are there cases where you do? I could add a comment saying: to produce requirements.txt files, runpython gen_requirements.py
above this line, which is kind of the typical case i'd expect someone to be looking for them.