Skip to content

BigQuery: Exclude PyArrow from Windows Python 2.7 tests - #5442

Merged
tswast merged 2 commits into
googleapis:masterfrom
tswast:bq-windows
Jun 5, 2018
Merged

tswast merged 2 commits into
googleapis:masterfrom
tswast:bq-windows

Conversation

@tswast

@tswast tswast commented Jun 5, 2018

Copy link
Copy Markdown
Contributor

Closes #5441

@tswast
tswast requested a review from tseaver as a code owner June 5, 2018 21:11
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 5, 2018
@tswast
tswast requested review from alixhami and theacodes June 5, 2018 21:11
@theacodes

Copy link
Copy Markdown
Contributor

Could you try using sys.platform != windows in the extras in setup.py?

@tswast

tswast commented Jun 5, 2018

Copy link
Copy Markdown
Contributor Author

Could you try using sys.platform != windows in the extras in setup.py?

We don't want to exclude all Windows installs, just those for Python 2.7. Do platform-specific dependencies "and" together?

@theacodes

theacodes commented Jun 5, 2018 via email

Copy link
Copy Markdown
Contributor

@tswast

tswast commented Jun 5, 2018

Copy link
Copy Markdown
Contributor Author

Hmm, I guess extras_require doesn't allow exclusions? I tried

extras = {
    'pandas': 'pandas>=0.17.1',
    # Exclude PyArrow dependency from Windows Python 2.7.
    'pyarrow': 'pyarrow>=0.4.1; platform_system!=Windows or python_version>2.7',
}

and got "error in google-cloud-bigquery setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers."

@theacodes

theacodes commented Jun 5, 2018 via email

Copy link
Copy Markdown
Contributor

@tswast

tswast commented Jun 5, 2018

Copy link
Copy Markdown
Contributor Author

Update: the syntax is different than I expected, but I still haven't figured out how to and/or multiple markers.

extras = {
    'pandas': 'pandas>=0.17.1',
    # Exclude PyArrow dependency from Windows Python 2.7.
    'pyarrow: platform_system!=Windows or python_version>2.7': 'pyarrow>=0.4.1',
}

"error in google-cloud-bigquery setup command: Invalid environment marker: platform_system!=Windows or python_version>2.7"

@theacodes

theacodes commented Jun 5, 2018 via email

Copy link
Copy Markdown
Contributor

@tswast

tswast commented Jun 5, 2018

Copy link
Copy Markdown
Contributor Author

I've confirmed that the previously failing unit tests pass on my Windows machine.

@tswast
tswast merged commit dcce8b5 into googleapis:master Jun 5, 2018
@tswast
tswast deleted the bq-windows branch June 5, 2018 23:34
@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants