Add tests for grpc-stubs, bump version.
{% set name = "grpc-stubs" %}
-{% set version = "1.24.5" %}
+{% set version = "1.24.6" %}
package:
@@ -8,7 +8,7 @@ package:
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/grpc-stubs-{{ version }}.tar.gz
- sha256: d875d5827e0a1ee6003aa5848243ea5df650f89cef8cf8abd917a27493e970e7
+ sha256: 98f307afcb180676ce3181262d01a7f1b0773b4c4c92724a761030ba2c44ff6b
build:
number: 0
@@ -25,6 +25,22 @@ requirements:
- python >=3.6
- typing-extensions
+test:
+ commands:
+ # grpc-stubs doesn't include py.typed
+ # https://www.python.org/dev/peps/pep-0561/#stub-only-packages
+ - test -f $SP_DIR/grpc-stubs/__init__.pyi # [unix]
+ - test -f $SP_DIR/grpc_channelz-stubs/__init__.pyi # [unix]
+ - test -f $SP_DIR/grpc_health-stubs/__init__.pyi # [unix]
+ - test -f $SP_DIR/grpc_reflection-stubs/__init__.pyi # [unix]
+ - test -f $SP_DIR/grpc_status-stubs/__init__.pyi # [unix]
+
+ - if not exist %SP_DIR%\\grpc-stubs\\__init__.pyi exit # [win]
+ - if not exist %SP_DIR%\\grpc_channelz-stubs\\__init__.pyi exit # [win]
+ - if not exist %SP_DIR%\\grpc_health-stubs\\__init__.pyi exit # [win]
+ - if not exist %SP_DIR%\\grpc_reflection-stubs\\__init__.pyi exit # [win]
+ - if not exist %SP_DIR%\\grpc_status-stubs\\__init__.pyi exit # [win]
+
about:
home: https://github.com/shabbyrobe/grpc-stubs
summary: Mypy stubs for gRPC
