validate grpcio pin
{% set name = "grpcio-health-checking" %}
{% set version = "1.33.2" %}
-
+# appears to have matched since 1.0.0, but...
+{% set grpc_version = version %}
package:
name: {{ name|lower }}
@@ -20,16 +21,19 @@ requirements:
- pip
- python
run:
- - grpcio >=1.33.2
+ - grpcio >={{ grpc_version }}
- protobuf >=3.6.0
- python
test:
+ source_files:
+ - grpc_version.py
imports:
- grpc_health
- grpc_health.v1
commands:
- pip check
+ - python -c 'from grpc_version import VERSION; print(VERSION); assert VERSION == "{{ grpc_version }}"'
requires:
- pip
