Skip to content

Commit

Permalink
bump minimum twisted to 24.3.0 (#1635)
Browse files Browse the repository at this point in the history
* bump minimum twisted to 24.3.0

* adjust GH actions workflow
  • Loading branch information
oberstet authored Apr 13, 2024
1 parent 5ab9461 commit 924604e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# python 3.11 fails with "src/twisted/test/raiser.c:198:12: fatal error: longintrepr.h: No such file or directory"
# twisted doesn't yet support 3.11 formally: https://github.com/twisted/twisted/blob/trunk/pyproject.toml#L24
python-version: ['3.9', '3.11', 'pypy-3.9']
framework: ['asyncio', 'tw2210', 'twtrunk']
framework: ['asyncio', 'tw2403', 'twtrunk']

# https://github.blog/changelog/2020-04-15-github-actions-new-workflow-features/
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
Expand Down
2 changes: 1 addition & 1 deletion autobahn/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
#
###############################################################################

__version__ = '23.6.2'
__version__ = '24.4.1'

__build__ = '00000000-0000000'
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
Changelog
=========

24.4.1
------

- new: bump minimum required Twisted version to 24.3.0 (`see also <https://github.com/crossbario/autobahn-python/pull/1634>`_)

23.6.2
------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# as we make claim to support older Twisted!)
extras_require_twisted = [
"zope.interface>=5.2.0", # Zope Public License
"twisted>=20.3.0", # MIT license (https://pypi.org/project/Twisted/20.3.0/)
"twisted>=24.3.0", # MIT license (https://pypi.org/project/Twisted/24.3.0/)
"attrs>=20.3.0" # MIT license (https://pypi.org/project/attrs/19.2.0/)
]

Expand Down
19 changes: 7 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ skip_missing_interpreters = true
envlist =
flake8
sphinx
py39-{tw203,tw2210,twtrunk,asyncio}
# Twisted <22.10 on Python 3.11 fails with:
# src/twisted/test/raiser.c:198:12: fatal error: longintrepr.h: Datei oder Verzeichnis nicht gefunden
py311-{tw2210,twtrunk,asyncio}
pypy39-{tw2210,twtrunk,asyncio}
py39-{tw2403,twtrunk,asyncio}
py311-{tw2403,twtrunk,asyncio}
pypy39-{tw2403,twtrunk,asyncio}


# MAP: GitHub Actions Python Name => Tox Env Name (for Python)
Expand Down Expand Up @@ -38,14 +36,11 @@ deps =
git+https://github.com/ilanschnell/bitarray.git@master#egg=bitarray

cytoolz

; twisted dependencies
tw203: twisted==20.3.0
tw2210: twisted==22.10.0
tw2403: twisted==24.3.0

# twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
twtrunk: git+https://github.com/twisted/twisted
{tw203,tw2210,twtrunk}: pytest-twisted
{tw2403,twtrunk}: pytest-twisted

; asyncio dependencies
asyncio: pytest_asyncio
Expand Down Expand Up @@ -91,7 +86,7 @@ setenv =
# controls test setup according to networking framework
asyncio: USE_ASYNCIO=1
asyncio: PYTHONPATH={toxinidir}
tw203,tw2210,twtrunk: USE_TWISTED=1
tw2403,twtrunk: USE_TWISTED=1

# this enables "autobahn/test/test_rng.py" (on Linux),
# which tests entropy depletion, and tests how to correctly
Expand All @@ -109,7 +104,7 @@ commands =
asyncio: pytest -s -v -rfP --ignore=./autobahn/twisted ./autobahn

# IMPORTANT: trial doesn't allow to recurse-and-exclude, and hence we need this looong list (because we must exclude "asyncio")
tw203,tw2210: trial --no-recurse autobahn.test autobahn.twisted.test autobahn.websocket.test autobahn.rawsocket.test autobahn.wamp.test autobahn.xbr.test autobahn.nvx.test
tw2403: trial --no-recurse autobahn.test autobahn.twisted.test autobahn.websocket.test autobahn.rawsocket.test autobahn.wamp.test autobahn.xbr.test autobahn.nvx.test
twtrunk: python -m twisted.trial --no-recurse autobahn.test autobahn.twisted.test autobahn.websocket.test autobahn.rawsocket.test autobahn.wamp.test autobahn.xbr.test autobahn.nvx.test


Expand Down

0 comments on commit 924604e

Please sign in to comment.