diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 9e2799e..a5c0d01 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -5,21 +5,17 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/a/aiohttp/aiohttp-{{ version }}.tar.gz - sha256: cecc64fd7bae6debdf43437e3c83183c40d4f4d86486946f412c113960598eee + - url: https://pypi.io/packages/source/a/aiohttp/aiohttp-{{ version }}.tar.gz + sha256: cecc64fd7bae6debdf43437e3c83183c40d4f4d86486946f412c113960598eee + # download sources to have tests, which don't get installed; + # installing from source is very painful, beware... + - url: https://github.com/aio-libs/aiohttp/archive/refs/tags/v{{ version }}.tar.gz + sha256: 8a01be9ea85f2b9d101080246c4f4e82b2df4b9ec04afd8d9f546bf47f40d850 + folder: sources build: number: 0 - script: - - {{ PYTHON }} -m pip install . -vv - # manually install tests insto site-packages, - # because installing from source is a massive pain - - mkdir -p $SP_DIR/aiohttp/tests # [unix] - - cp -R tests/. $SP_DIR/aiohttp/tests # [unix] - - move tests %SP_DIR%\aiohttp\tests # [win] - # don't want the docker tests in the autobahn subfolder - - rm -rf $SP_DIR/aiohttp/tests/autobahn # [unix] - - rmdir /s /q %SP_DIR%\aiohttp\tests\autobahn # [win] + script: {{ PYTHON }} -m pip install . -vv requirements: build: @@ -44,17 +40,23 @@ test: requires: - pip - pytest + - pytest-mock - brotli - brotlicffi - freezegun - proxy-py - re-assert - trustme + source_files: + - sources/tests imports: - aiohttp commands: - pip check - - pytest --pyargs aiohttp + # don't want the docker tests in the autobahn subfolder + - rm -rf sources/tests/autobahn # [unix] + - rmdir /s /q sources\tests\autobahn # [win] + - pytest sources/tests/ about: home: https://github.com/aio-libs/aiohttp