Repository navigation
Add [all] extras to install all extra dependencies #7610
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,14 +34,25 @@ | |
| "google-resumable-media >= 0.3.1", | ||
| ] | ||
| extras = { | ||
| "bqstorage": "google-cloud-bigquery-storage >= 0.2.0dev1, <2.0.0dev", | ||
| "pandas": "pandas>=0.17.1", | ||
| "bqstorage": [ | ||
| "google-cloud-bigquery-storage >= 0.2.0dev1, <2.0.0dev", | ||
| "fastavro>=0.21.2", | ||
| ], | ||
| "pandas": ["pandas>=0.17.1"], | ||
| # Exclude PyArrow dependency from Windows Python 2.7. | ||
| 'pyarrow: platform_system != "Windows" or python_version >= "3.4"': "pyarrow>=0.4.1", | ||
| "tqdm": "tqdm >= 4.0.0, <5.0.0dev", | ||
| 'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [ | ||
| "pyarrow>=0.4.1" | ||
| ], | ||
| "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"], | ||
| "fastparquet": ["fastparquet", "python-snappy"], | ||
| } | ||
|
|
||
| all_extras = [] | ||
|
|
||
| for extra in extras: | ||
| all_extras.extend(extras[extra]) | ||
|
|
||
| extras["all"] = all_extras | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't we just normalize the extras above to always be lists?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fear if we miss one, then we end up with a bad dependency list. That means we still would need a check for string type or something else to validate they are all lists.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't what I was thinking with that comment. This is why we have tests. I assume by using the [all] extra in the nox session, we'd catch such errors. I'll simplify this on Monday as you suggest.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 17e65d7. |
||
|
|
||
| # Setup boilerplate below this line. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.