{% set name = "google-api-core" %}
{% set version = "1.31.5" %}

package:
  name: {{ name|lower }}-split
  version: {{ version }}

source:
  url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: 85d2074f2c8f9c07e614d7f978767d71ceb7d40647814ef4236d3a0ef671ee75

build:
  number: 0
  noarch: python

outputs:
  - name: {{ name }}
    build:
      noarch: python
      script: python -m pip install . -vv --no-deps
    requirements:
      host:
        - python >=3.6
        - pip
      run:
        - python >=3.6
        - googleapis-common-protos >=1.6.0,<2.0dev
        - protobuf >=3.12.0
        - google-auth >=1.25.1,<2.0dev
        - requests >=2.18.0,<3.0.0dev
        - setuptools >=40.3.0
        - packaging >=14.3
        - six >=1.13.0
        - pytz
    test:
      requires:
        - pip
      imports:
        - google.auth
        - google.auth.credentials
        - google.auth.transport.requests
        - google.longrunning
        - google.longrunning.operations_pb2
        - google.protobuf
        - google.rpc
        - google.api_core
        - google.api_core.exceptions
        - google.api_core.future
        - google.api_core.future.base
        - google.api_core.future.polling
        - google.api_core.general_helpers
        - google.api_core.page_iterator
        - google.api_core.protobuf_helpers
        - google.api_core.retry
        - google.api_core.timeout
      commands:
        - python -m pip check

  - name: {{ name }}-grpc
    build:
      noarch: generic
    requirements:
      run:
        - {{ pin_subpackage(name, exact=True) }}
        - grpcio >=1.29.0,<2.0dev
    test:
      requires:
        - pip
      imports:
        - google.api_core
      commands:
        - python -m pip check
    about:
      home: https://github.com/googleapis/python-api-core
      license: Apache-2.0
      license_family: APACHE
      summary: Core Library for Google Client Libraries with grpc

  - name: {{ name }}-grpcio-gcp
    build:
      noarch: generic
    requirements:
      run:
        - {{ pin_subpackage(name, exact=True) }}
        - grpcio-gcp
    test:
      requires:
        - pip
      imports:
        - google.api_core
        - grpc
      commands:
        - python -m pip check
    about:
      home: https://github.com/googleapis/python-api-core
      license: Apache-2.0
      license_family: APACHE
      summary: Core Library for Google Client Libraries with grpcio-gcp

  - name: {{ name }}-grpcgcp
    build:
      noarch: generic
    requirements:
      run:
        - {{ pin_subpackage(name + '-grpcio-gcp', exact=True) }}
    test:
      requires:
        - pip
      imports:
        - google.api_core
        - grpc
        - grpc_gcp
      commands:
        - python -m pip check
    about:
      home: https://github.com/googleapis/python-api-core
      license: Apache-2.0
      license_family: APACHE
      summary: Core Library for Google Client Libraries with grpcio-gcp

about:
  home: https://github.com/googleapis/python-api-core
  license: Apache-2.0
  license_family: APACHE
  license_file: LICENSE
  summary: Core Library for Google Client Libraries
  description: |
    Core Library for Google Client Libraries
    -------------------------

    This package does not include the grpc, grpcio-gcp or grpcgcp extra requirements.

    This library is not meant to stand-alone. Instead it defines
    common helpers used by all Google API clients. For more information, see the
    [documentation](https://googleapis.dev/python/google-api-core/latest/index.html).

    Supported Python Versions
    -------------------------
    Python >= 3.5

    Deprecated Python Versions
    --------------------------
    Python == 2.7
    - Python 2.7 support will be removed on January 1, 2020.
    - protobuf does not support Visual C++ 2008, windows py27 package not available

  doc_url: https://googleapis.dev/python/google-api-core/latest/index.html
  dev_url: https://github.com/googleapis/python-api-core

extra:
  feedstock-name: google-api-core
  recipe-maintainers:
    - BrentDorsey
    - leahecole
    - parthea
    - tswast
