Skip to content

Commit 17e65d7

Browse files
committed
Use lists for all extras.
1 parent aec0163 commit 17e65d7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

bigquery/setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,19 @@
3838
"google-cloud-bigquery-storage >= 0.2.0dev1, <2.0.0dev",
3939
"fastavro>=0.21.2",
4040
],
41-
"pandas": "pandas>=0.17.1",
41+
"pandas": ["pandas>=0.17.1"],
4242
# Exclude PyArrow dependency from Windows Python 2.7.
43-
'pyarrow: platform_system != "Windows" or python_version >= "3.4"': "pyarrow>=0.4.1",
44-
"tqdm": "tqdm >= 4.0.0, <5.0.0dev",
43+
'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
44+
"pyarrow>=0.4.1"
45+
],
46+
"tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
4547
"fastparquet": ["fastparquet", "python-snappy"],
4648
}
4749

4850
all_extras = []
4951

5052
for extra in extras:
51-
if isinstance(extras[extra], str):
52-
all_extras.append(extras[extra])
53-
else:
54-
all_extras.extend(extras[extra])
53+
all_extras.extend(extras[extra])
5554

5655
extras["all"] = all_extras
5756

0 commit comments

Comments
 (0)