HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/pkgs/aiohttp-3.10.5-py312h827c3e9_0/info/recipe/meta.yaml.template
{% set name = "aiohttp" %}
{% set version = "3.10.5" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/aiohttp-{{ version }}.tar.gz
  sha256: f071854b47d39591ce9a17981c46790acb30518e2f83dfca8db2dfa091178691

build:
  skip: true  # [py<38]
  script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
  number: 0

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python
    - pip
    - cython
    - setuptools
    - wheel
  run:
    - python
    - aiohappyeyeballs >=2.3.0
    - aiosignal >=1.1.2
    - async-timeout >=4.0,<5.0  # [py<311]
    - attrs >=17.3.0
    - frozenlist >=1.1.1
    - multidict >=4.5,<7.0
    - yarl >=1.0,<2.0
  run_constrained:
    - aiodns >=3.2.0  # [not win]

test:
  imports:
    - aiohttp
  source_files:
    - tests
    - setup.cfg
    # used by a test
    - README.rst
  requires:
    - pip
    - pytest <8
    # flags '--cov=aiohttp --cov=tests/' are hardcoded in setup.cfg
    - pytest-cov
    - pytest-mock
    - trustme
    - gunicorn  # [not (win or s390x)]
    - uvloop    # [not win]
    - brotli-python
    - re-assert
    - freezegun
  commands:
    - pip check
    # don't want the docker tests in the autobahn subfolder
    - rm -rf tests/autobahn         # [unix]
    - rmdir /s /q tests\autobahn    # [win]

    {% set tests_to_skip = "_not_a_real_test" %}
    # would requires package time-machine
    {% set tests_to_skip = tests_to_skip + " or test_expires or test_max_age or test_cookie_jar_clear_expired" %}
    # not sure why, they do appear in that issue: https://github.com/aio-libs/aiohttp/issues/7675
    {% set tests_to_skip = tests_to_skip + " or test_http_response_parser_bad_chunked_strict_c[pyloop]" %}
    {% set tests_to_skip = tests_to_skip + " or test_http_response_parser_bad_chunked_strict_py[pyloop]" %}
    {% set tests_to_skip = tests_to_skip + " or test_http_response_parser_strict_headers[c-parser-pyloop]" %}
    {% set tests_to_skip = tests_to_skip + " or test_access_root_of_static_handler[pyloop-index_forbidden]" %}
    {% set tests_to_skip = tests_to_skip + " or test_client_session_timeout_zero" %}
    # OSError regarding socket assigment
    {% set tests_to_skip = tests_to_skip + " or test_run_app_preexisting_inet6_socket[pyloop] " %}
    {% set tests_to_skip = tests_to_skip + " or test_handler_cancellation" %}
    {% set tests_to_skip = tests_to_skip + " or test_no_handler_cancellation" %}
    {% set tests_to_skip = tests_to_skip + " or test_shutdown_pending_handler_responds" %}
    {% set tests_to_skip = tests_to_skip + " or test_keepalive_timeout_sync_sleep or test_keepalive_timeout_async_sleep or test_HTTP_304[pyloop]" %}
    # CI is too slow for expected speed
    {% set tests_to_skip = tests_to_skip + " or test_import_time" %}  # [linux]
    # Permission errors on linux
    {% set tests_to_skip = tests_to_skip + " or test_static_directory_without_read_permission or test_static_file_without_read_permission" %}  # [linux]
    # PytestUnraisableExceptionWarning on s390x
    {% set tests_to_skip = tests_to_skip + " or test_release_early[pyloop]" %}
    # would requires package gunicorn
    {% set tests_to_skip = tests_to_skip + " or test_no_warnings[aiohttp.worker]" %} # [win or s390x]
    # ignore test files due to currently unavailable test dependencies (proxy.py)
    - pytest -k "not ({{ tests_to_skip }})" --ignore=tests/test_proxy_functional.py

about:
  home: https://github.com/aio-libs/aiohttp
  license: MIT AND Apache-2.0
  license_file:
    - LICENSE.txt
    - vendor/llhttp/LICENSE-MIT
  license_family: Other
  summary: Async http client/server framework (asyncio)
  description: Async http client/server framework (asyncio)
  doc_url: https://docs.aiohttp.org/
  dev_url: https://github.com/aio-libs/aiohttp

extra:
  recipe-maintainers:
    - sodre
    - xhochy
    - ocefpaf