Commits


Raúl Cumplido authored and GitHub committed 8be70c13728
GH-35193: [Python][Packaging] Enable GCS on Windows wheels (#35255) ### Rationale for this change GCS could be enabled on Windows wheels. ### What changes are included in this PR? Enabling GCS on Windows wheel ### Are these changes tested? Crossbow jobs for wheels run tests for GCS now. I have tested locally that I can install the built wheel and I can import `GcsFileSystem`: ``` Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation Type "help", "copyright", "credits" or "license" for more information. >>> from pyarrow.fs import GcsFileSystem >>> fs = GcsFileSystem(access_token='abc',target_service_account='service_account@ apache',credential_token_expiration=datetime.now(),default_bucket_location='us-west2',scheme='https', endpoint_override='localhost:8999') >>> fs.default_bucket_location 'us-west2' >>> fs.create_dir('hello') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pyarrow\_fs.pyx", line 593, in pyarrow._fs.FileSystem.create_dir File "pyarrow\error.pxi", line 113, in pyarrow.lib.check_status PermissionError: [Errno 13] google::cloud::Status(UNAUTHENTICATED: Permanent error GetBucketMetadata: Could not create a OAuth2 access token to authenticate the request. The request was not sent, as such an access token is required to complete the request successfully. Learn more about Google Cloud authentication at https://cloud.google.com/docs/authentication. The underlying error message was: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.). Detail: [errno 13] Permission denied ``` ### Are there any user-facing changes? No but Windows wheels should contain `ARROW_GCS` * Closes: #35193 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>