Skip to content

Commit ca3966f

Browse files
authored
Merge pull request #398 from twisted/397-release-24.9.0
Prep release 24.9.0
2 parents bbf9114 + 96ce747 commit ca3966f

File tree

15 files changed

+97
-19
lines changed

15 files changed

+97
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
timeout-minutes: 5
1313

1414
steps:
1515
- uses: actions/checkout@v4
1616

1717
- uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.11'
19+
python-version: "3.12"
2020

2121
- uses: actions/cache@v4
2222
with:
@@ -34,15 +34,15 @@ jobs:
3434
TOX_PARALLEL_NO_SPINNER: 1
3535

3636
docs:
37-
runs-on: ubuntu-20.04
37+
runs-on: ubuntu-24.04
3838
timeout-minutes: 5
3939

4040
steps:
4141
- uses: actions/checkout@v4
4242

4343
- uses: actions/setup-python@v5
4444
with:
45-
python-version: "3.11"
45+
python-version: "3.12"
4646

4747
- uses: actions/cache@v4
4848
with:

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: [ "treq-*" ]
6+
pull_request:
7+
branches: [ trunk ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.12'
22+
23+
- run: pip install build twine
24+
25+
- run: python3 -m build
26+
27+
- run: twine check dist/*.*
28+
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: dist
32+
path: dist/*.*
33+
if-no-files-found: error
34+
35+
pypi-publish:
36+
runs-on: ubuntu-24.04
37+
if: startsWith(github.ref, 'refs/tags/treq-')
38+
needs: [build]
39+
40+
environment:
41+
name: PyPI.org
42+
url: https://pypi.org/project/treq
43+
44+
permissions:
45+
id-token: write
46+
47+
steps:
48+
49+
- uses: actions/download-artifact@v4
50+
with:
51+
name: dist
52+
path: dist/
53+
54+
- uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,37 @@ Changelog
88

99
.. towncrier release notes start
1010
11+
24.9.0 (2024-09-17)
12+
===================
13+
14+
Features
15+
--------
16+
17+
- treq now ships type annotations. (`#366 <https://github.com/twisted/treq/issues/366>`__)
18+
- The new :mod:`treq.cookies` module provides helper functions for working with `http.cookiejar.Cookie` and `CookieJar` objects. (`#384 <https://github.com/twisted/treq/issues/384>`__)
19+
- Python 3.13 is now supported. (`#391 <https://github.com/twisted/treq/issues/391>`__)
20+
21+
22+
Bugfixes
23+
--------
24+
25+
- :mod:`treq.content.text_content()` no longer generates deprecation warnings due to use of the ``cgi`` module. (`#355 <https://github.com/twisted/treq/issues/355>`__)
26+
27+
28+
Deprecations and Removals
29+
-------------------------
30+
31+
- Mixing the *json* argument with *files* or *data* now raises `TypeError`. (`#297 <https://github.com/twisted/treq/issues/297>`__)
32+
- Passing non-string (`str` or `bytes`) values as part of a dict to the *headers* argument now results in a `TypeError`, as does passing any collection other than a `dict` or `Headers` instance. (`#302 <https://github.com/twisted/treq/issues/302>`__)
33+
- Support for Python 3.7 and PyPy 3.8, which have reached end of support, has been dropped. (`#378 <https://github.com/twisted/treq/issues/378>`__)
34+
35+
36+
Misc
37+
----
38+
39+
- `#336 <https://github.com/twisted/treq/issues/336>`__, `#382 <https://github.com/twisted/treq/issues/382>`__, `#395 <https://github.com/twisted/treq/issues/395>`__
40+
41+
1142
23.11.0 (2023-11-03)
1243
====================
1344

changelog.d/297.removal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/302.removal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/336.misc.rst

Whitespace-only changes.

changelog.d/355.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/366.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/378.removal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/382.misc.rst

Whitespace-only changes.

0 commit comments

Comments
 (0)