Skip to content

Commit

Permalink
Merge pull request #398 from twisted/397-release-24.9.0
Browse files Browse the repository at this point in the history
Prep release 24.9.0
  • Loading branch information
twm authored Sep 18, 2024
2 parents bbf9114 + 96ce747 commit ca3966f
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.12"

- uses: actions/cache@v4
with:
Expand All @@ -34,15 +34,15 @@ jobs:
TOX_PARALLEL_NO_SPINNER: 1

docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- uses: actions/cache@v4
with:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
push:
tags: [ "treq-*" ]
pull_request:
branches: [ trunk ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- run: pip install build twine

- run: python3 -m build

- run: twine check dist/*.*

- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.*
if-no-files-found: error

pypi-publish:
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/treq-')
needs: [build]

environment:
name: PyPI.org
url: https://pypi.org/project/treq

permissions:
id-token: write

steps:

- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- uses: pypa/gh-action-pypi-publish@release/v1
31 changes: 31 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,37 @@ Changelog

.. towncrier release notes start
24.9.0 (2024-09-17)
===================

Features
--------

- treq now ships type annotations. (`#366 <https://github.com/twisted/treq/issues/366>`__)
- 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>`__)
- Python 3.13 is now supported. (`#391 <https://github.com/twisted/treq/issues/391>`__)


Bugfixes
--------

- :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>`__)


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

- Mixing the *json* argument with *files* or *data* now raises `TypeError`. (`#297 <https://github.com/twisted/treq/issues/297>`__)
- 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>`__)
- 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>`__)


Misc
----

- `#336 <https://github.com/twisted/treq/issues/336>`__, `#382 <https://github.com/twisted/treq/issues/382>`__, `#395 <https://github.com/twisted/treq/issues/395>`__


23.11.0 (2023-11-03)
====================

Expand Down
1 change: 0 additions & 1 deletion changelog.d/297.removal.rst

This file was deleted.

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

This file was deleted.

Empty file removed changelog.d/336.misc.rst
Empty file.
1 change: 0 additions & 1 deletion changelog.d/355.bugfix.rst

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Empty file removed changelog.d/382.misc.rst
Empty file.
1 change: 0 additions & 1 deletion changelog.d/384.feature.rst

This file was deleted.

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

This file was deleted.

Empty file removed changelog.d/395.misc.rst
Empty file.
4 changes: 2 additions & 2 deletions src/treq/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"""

# This file is auto-generated! Do not edit!
# Use `python -m incremental.update treq` to change this file.
# Use `incremental` to change this file.

from incremental import Version

__version__ = Version("treq", 23, 11, 0)
__version__ = Version("treq", 24, 9, 0)
__all__ = ["__version__"]
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ commands =
{envbindir}/trial {posargs:treq}

[testenv:mypy]
basepython = python3.8
basepython = python3.12
deps =
mypy==1.0.1
mypy-zope==0.9.1
Expand All @@ -38,27 +38,27 @@ commands =
{posargs:src}

[testenv:flake8]
python = python3.11
python = python3.12
skip_install = True
deps = flake8
commands = flake8 src/treq/

[testenv:towncrier]
python = python3.11
python = python3.12
deps =
towncrier
commands =
towncrier {posargs:--draft}

[testenv:twine]
python = python3.11
python = python3.12
deps =
twine
commands =
twine check {distdir}/*.*

[testenv:check-manifest]
python = python3.11
python = python3.12
deps =
check-manifest
commands =
Expand All @@ -67,7 +67,7 @@ commands =
[testenv:docs]
extras = docs
changedir = docs
basepython = python3.8
basepython = python3.12
commands =
sphinx-build -b html . html

Expand Down

0 comments on commit ca3966f

Please sign in to comment.