try:
    from snakemake.remote import GS
except WorkflowError:
    print("skipping test_remote_gs: The Python 3 package 'google-cloud-sdk' needs to be installed to use GS remote() file functionality. No module named 'google.cloud'")
else:
    import google.auth
    try:
        GS = GS.RemoteProvider()

        rule copy:
            input:
                GS.remote("gcp-public-data-landsat/LC08/01/001/003/LC08_L1GT_001003_20170430_20170501_01_RT/LC08_L1GT_001003_20170430_20170501_01_RT_MTL.txt")
            output:
                "landsat-data.txt"
            shell:
                "cp {input} {output}"
    except google.auth.exceptions.DefaultCredentialsError:
        # ignore the test if not authenticated
        print("skipping test_remote_gs because we are not authenticated with gcloud")
