Skip to content

Commit

Permalink
Merge branch 'trunk' into typing
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Nov 6, 2023
2 parents 86eca52 + 707c833 commit 28b6af9
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 65 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
78 changes: 63 additions & 15 deletions .github/workflows/ci.yaml
Expand Up @@ -12,13 +12,13 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.11'

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key:
Expand All @@ -38,13 +38,13 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: "3.11"

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key:
Expand All @@ -53,7 +53,7 @@ jobs:
${{ runner.os }}-pip-docs-
${{ runner.os }}-pip-
- run: python -m pip install tox
- run: python -m pip install 'tox<4'

- run: tox -q -e docs

Expand All @@ -65,27 +65,47 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.8", "pypy-3.9"]
# Python versions common to lowest and latest
python-version: ["3.8", "3.9", "3.10", "pypy-3.9"]
twisted-version: ["lowest", "latest"]
experimental: [false]

include:
- python-version: "3.8"
twisted-version: "trunk"
experimental: true
# Pythons too old for latest
- python-version: "3.7"
twisted-version: "lowest"
experimental: false

- python-version: "pypy-3.8"
twisted-version: "lowest"
experimental: false

# Pythons too new for lowest
- python-version: "3.11"
twisted-version: "latest"
experimental: false

- python-version: "3.12"
twisted-version: "latest"
experimental: false

- python-version: "pypy-3.10"
twisted-version: "latest"
experimental: false

# Experimental trunk build
- python-version: "3.9"
twisted-version: "trunk"
experimental: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key:
Expand All @@ -103,8 +123,11 @@ jobs:
"3.8": "py38",
"3.9": "py39",
"3.10": "py310",
"3.11": "py311",
"3.12": "py312",
"pypy-3.8": "pypy3",
"pypy-3.9": "pypy3",
"pypy-3.10": "pypy3",
}
factor = table["${{ matrix.python-version }}"]
print("::set-output name=value::" + factor)
Expand All @@ -119,3 +142,28 @@ jobs:
COVERALLS_REPO_TOKEN: 4nctuKHTnVtbdmty2FgdO3iiWm1nb7xc4
COVERALLS_FLAG_NAME: python_${{ matrix.python-version }}-twisted_${{ matrix.twisted-version }}
COVERALLS_PARALLEL: true

# Helper so that on GitHub repo settings we can configure to single job.
# Then required jobs can be updated directly form the code,
# without having to go the GitHub repo setting -> Protected branch
# and all the clicking.
treq-required:
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ !cancelled() }}
# Add here the jobs that should block the merge of a PR.
needs:
- lint
- docs
- test
steps:
- name: Require all successes
shell: python3 {0}
env:
RESULTS: ${{ toJSON(needs.*.result) }}
run: |
import json
import os
import sys
results = json.loads(os.environ["RESULTS"])
sys.exit(0 if all(result == "success" for result in results) else 1)
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -13,4 +13,4 @@ MANIFEST
coverage
htmlcov
_trial_temp*
.tox
/.tox
29 changes: 29 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -8,6 +8,35 @@ Changelog

.. towncrier release notes start
23.11.0 (2023-11-03)
====================

Features
--------

- When the collector passed to ``treq.collect(response, collector)`` throws an exception, that error will now be returned to the caller of ``collect()`` via the result ``Deferred``, and the underlying HTTP transport will be closed. (`#347 <https://github.com/twisted/treq/issues/347>`__)
- Python 3.11 is now supported. (`#364 <https://github.com/twisted/treq/issues/364>`__)
- Python 3.12 is now supported. (`#375 <https://github.com/twisted/treq/issues/375>`__)
- PyPy 3.9 is now supported. (`#365 <https://github.com/twisted/treq/issues/365>`__)
- PyPy 3.10 is now supported. (`#374 <https://github.com/twisted/treq/issues/374>`__)


Deprecations and Removals
-------------------------

- The minimum supported Twisted version has increased to 22.10.0. Older versions are no longer tested in CI. (`#374 <https://github.com/twisted/treq/issues/374>`__)
- Support for Python 3.6, which has reached end of support, has been dropped. (`#363 <https://github.com/twisted/treq/issues/363>`__)
- Support for Python 3.7, which reaches end of support 2023-06-27, is deprecated. This is the last release with support for Python 3.7. (`#361 <https://github.com/twisted/treq/issues/361>`__)
- Support for PyPy 3.7, which has reached end of support, has been removed. (`#365 <https://github.com/twisted/treq/issues/365>`__)
- Support for PyPy 3.8, which has reached end of support, is deprecated. This is the last release with support for PyPy 3.8. (`#374 <https://github.com/twisted/treq/issues/374>`__)


Misc
----

- `#349 <https://github.com/twisted/treq/issues/349>`__, `#350 <https://github.com/twisted/treq/issues/350>`__, `#352 <https://github.com/twisted/treq/issues/352>`__


22.2.0 (2022-02-08)
===================

Expand Down
1 change: 0 additions & 1 deletion changelog.d/347.feature.rst

This file was deleted.

Empty file removed changelog.d/349.misc.rst
Empty file.
Empty file removed changelog.d/350.misc.rst
Empty file.
Empty file removed changelog.d/352.misc.rst
Empty file.
1 change: 0 additions & 1 deletion changelog.d/363.removal.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/365.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/365.removal.rst

This file was deleted.

3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -7,10 +7,11 @@
"Operating System :: OS Independent",
"Framework :: Twisted",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
Expand Down
2 changes: 1 addition & 1 deletion src/treq/_version.py
Expand Up @@ -7,5 +7,5 @@

from incremental import Version

__version__ = Version("treq", 22, 2, 0)
__version__ = Version("treq", 23, 11, 0)
__all__ = ["__version__"]

0 comments on commit 28b6af9

Please sign in to comment.