Skip to content

Commit

Permalink
new idea
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Oct 8, 2023
1 parent b5ee44e commit 8ee1e3a
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 8ee1e3a

Please sign in to comment.