From f837892e2b4e5fda98d273defda343bb38e6e185 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Mon, 3 Mar 2025 14:06:40 -0500 Subject: [PATCH 1/4] Add explicit setuptools requirement --- docs/history.rst | 4 ++++ requires/installation.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/history.rst b/docs/history.rst index 06c1408..84df694 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,6 +3,10 @@ Release History =============== +`Next Release`_ +--------------- +- Add explicit dependency on setuptools package since we use it at runtime + `2.5.0`_ (26 May 2022) ---------------------- - Add customization of **Server** header diff --git a/requires/installation.txt b/requires/installation.txt index 616640f..9993ef8 100644 --- a/requires/installation.txt +++ b/requires/installation.txt @@ -1 +1,2 @@ +setuptools>=64 tornado>=5,<7 From 03073c35f099c61636e3106b4364db8b2b447e12 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Mon, 3 Mar 2025 14:07:10 -0500 Subject: [PATCH 2/4] Bump LICENSE date --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 0f39f88..adc3c76 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2015-2020 AWeber Communications +Copyright (c) 2015-2025 AWeber Communications All rights reserved. Redistribution and use in source and binary forms, with or without modification, From 1ba731361199482bab66cbe2aca5b947370a5f23 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Thu, 24 Jul 2025 11:50:39 -0400 Subject: [PATCH 3/4] Fix tests.AsyncRunTests --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 71db30b..646956a 100644 --- a/tests.py +++ b/tests.py @@ -532,7 +532,7 @@ def test_that_calling_with_non_sprockets_application_is_deprecated(self): self.assertEqual(len(captured), 0) -class AsyncRunTests(unittest.TestCase): +class AsyncRunTests(unittest.IsolatedAsyncioTestCase): def test_that_on_start_callbacks_are_invoked(self): future = concurrent.Future() From aca1e8cdc3166aa4237ba18e5e8dd742cd0646eb Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Thu, 24 Jul 2025 11:55:42 -0400 Subject: [PATCH 4/4] Stop testing older python versions I had to switch to IsolatedAsyncioTestCase in one place which is a pain to get right in older python versions. --- .github/workflows/testing.yaml | 2 +- docs/history.rst | 2 ++ setup.py | 4 ---- tox.ini | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 25adc78..7e0c38d 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -15,7 +15,7 @@ jobs: timeout-minutes: 3 strategy: matrix: - python: ["3.7", "3.8", "3.9", "3.10"] + python: ["3.9", "3.10"] container: image: python:${{ matrix.python }}-alpine steps: diff --git a/docs/history.rst b/docs/history.rst index 84df694..c8eec3b 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -6,6 +6,8 @@ Release History `Next Release`_ --------------- - Add explicit dependency on setuptools package since we use it at runtime +- Remove support for Python < 3.9. The library will continue to work but we + are no longer testing older versions. `2.5.0`_ (26 May 2022) ---------------------- diff --git a/setup.py b/setup.py index 4887be5..46b6310 100755 --- a/setup.py +++ b/setup.py @@ -45,10 +45,6 @@ def read_requirements(name): 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', diff --git a/tox.ini b/tox.ini index eb3930c..4442426 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37,py38,py39,tornado,tornado50 +envlist = py39,tornado,tornado50 indexserver = default = https://pypi.python.org/simple toxworkdir = build/tox