Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
run: |
make generate-llhttp
- name: Upload llhttp generated files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: llhttp
path: vendor/llhttp/build
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
python -m pip install -r requirements/test.in -c requirements/test.txt
- name: Restore llhttp generated files
if: ${{ matrix.no-extensions == '' }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: llhttp
path: vendor/llhttp/build/
Expand Down Expand Up @@ -280,7 +280,7 @@ jobs:
run: |
python -m pip install -r requirements/test.in -c requirements/test.txt
- name: Restore llhttp generated files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: llhttp
path: vendor/llhttp/build/
Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:
python -m
pip install -r requirements/cython.in -c requirements/cython.txt
- name: Restore llhttp generated files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: llhttp
path: vendor/llhttp/build/
Expand All @@ -355,9 +355,9 @@ jobs:
run: |
python -m build --sdist
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-sdist
path: dist

build-wheels:
Expand Down Expand Up @@ -410,7 +410,7 @@ jobs:
python -m
pip install -r requirements/cython.in -c requirements/cython.txt
- name: Restore llhttp generated files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: llhttp
path: vendor/llhttp/build/
Expand All @@ -421,9 +421,15 @@ jobs:
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
- uses: actions/upload-artifact@v3
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: dist
name: >-
dist-${{ matrix.os }}-${{
matrix.qemu
&& matrix.qemu
|| 'native'
}}
path: ./wheelhouse/*.whl

deploy:
Expand All @@ -448,10 +454,10 @@ jobs:
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Download distributions
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist
pattern: dist-*
- name: Collected dists
run: |
tree dist
Expand Down
1 change: 1 addition & 0 deletions CHANGES/10281.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The CI/CD workflow has been updated to use `upload-artifact` v4 and `download-artifact` v4 GitHub Actions -- by :user:`silamon`.
39 changes: 28 additions & 11 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,16 @@ The client session supports the context manager protocol for self closing.
:param aiohttp.BasicAuth auth: an object that represents HTTP
Basic Authorization (optional)

:param bool allow_redirects: If set to ``False``, do not follow redirects.
``True`` by default (optional).
:param bool allow_redirects: Whether to process redirects or not.
When ``True``, redirects are followed (up to ``max_redirects`` times)
and logged into :attr:`ClientResponse.history` and ``trace_configs``.
When ``False``, the original response is returned.
``True`` by default (optional).

:param int max_redirects: Maximum number of redirects to follow.
``10`` by default.
:exc:`TooManyRedirects` is raised if the number is exceeded.
Ignored when ``allow_redirects=False``.
``10`` by default.

:param bool compress: Set to ``True`` if request has to be compressed
with deflate encoding. If `compress` can not be combined
Expand Down Expand Up @@ -542,8 +547,11 @@ The client session supports the context manager protocol for self closing.

:param url: Request URL, :class:`str` or :class:`~yarl.URL`

:param bool allow_redirects: If set to ``False``, do not follow redirects.
``True`` by default (optional).
:param bool allow_redirects: Whether to process redirects or not.
When ``True``, redirects are followed and logged into
:attr:`ClientResponse.history`.
When ``False``, the original response is returned.
``True`` by default (optional).

:return ClientResponse: a :class:`client response
<ClientResponse>` object.
Expand Down Expand Up @@ -611,8 +619,11 @@ The client session supports the context manager protocol for self closing.

:param url: Request URL, :class:`str` or :class:`~yarl.URL`

:param bool allow_redirects: If set to ``False``, do not follow redirects.
``False`` by default (optional).
:param bool allow_redirects: Whether to process redirects or not.
When ``True``, redirects are followed and logged into
:attr:`ClientResponse.history`.
When ``False``, the original response is returned.
``False`` by default (optional).

:return ClientResponse: a :class:`client response
<ClientResponse>` object.
Expand All @@ -629,8 +640,11 @@ The client session supports the context manager protocol for self closing.

:param url: Request URL, :class:`str` or :class:`~yarl.URL`

:param bool allow_redirects: If set to ``False``, do not follow redirects.
``True`` by default (optional).
:param bool allow_redirects: Whether to process redirects or not.
When ``True``, redirects are followed and logged into
:attr:`ClientResponse.history`.
When ``False``, the original response is returned.
``True`` by default (optional).

:return ClientResponse: a :class:`client response
<ClientResponse>` object.
Expand Down Expand Up @@ -862,8 +876,11 @@ certification chaining.
:param aiohttp.BasicAuth auth: an object that represents HTTP Basic
Authorization (optional)

:param bool allow_redirects: If set to ``False``, do not follow redirects.
``True`` by default (optional).
:param bool allow_redirects: Whether to process redirects or not.
When ``True``, redirects are followed (up to ``max_redirects`` times)
and logged into :attr:`ClientResponse.history` and ``trace_configs``.
When ``False``, the original response is returned.
``True`` by default (optional).

:param aiohttp.protocol.HttpVersion version: Request HTTP version (optional)

Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ towncrier==23.11.0
# via
# -r requirements/doc.in
# sphinxcontrib-towncrier
trustme==1.2.0 ; platform_machine != "i686"
trustme==1.2.1 ; platform_machine != "i686"
# via
# -r requirements/lint.in
# -r requirements/test.in
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ towncrier==23.11.0
# via
# -r requirements/doc.in
# sphinxcontrib-towncrier
trustme==1.2.0 ; platform_machine != "i686"
trustme==1.2.1 ; platform_machine != "i686"
# via
# -r requirements/lint.in
# -r requirements/test.in
Expand Down
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ tomli==2.2.1
# mypy
# pytest
# slotscheck
trustme==1.2.0
trustme==1.2.1
# via -r requirements/lint.in
typing-extensions==4.12.2
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ tomli==2.2.1
# coverage
# mypy
# pytest
trustme==1.2.0 ; platform_machine != "i686"
trustme==1.2.1 ; platform_machine != "i686"
# via -r requirements/test.in
typing-extensions==4.12.2
# via
Expand Down
Loading