From 9bd30bbeec5993e8ebfacd08a32d30c0d89e78cd Mon Sep 17 00:00:00 2001 From: Tanner Date: Wed, 18 Nov 2026 17:52:06 +0000 Subject: [PATCH] Upgrade to Python 3.11 --- requirements.in | 3 ++ requirements.txt | 73 ++++++++++++++++++++++++++---------------------- tests.py | 3 ++ 3 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 requirements.in diff --git a/requirements.in b/requirements.in new file mode 100644 index 0000000..81579c3 --- /dev/null +++ b/requirements.in @@ -0,0 +1,3 @@ +aiohttp +Telethon +validators diff --git a/requirements.txt b/requirements.txt index 465a582..08b449e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,35 +1,40 @@ -aiohttp==3.7.3 -appdirs==1.4.3 -async-timeout==3.0.1 -attrs==20.3.0 -CacheControl==0.12.6 -certifi==2019.11.28 -chardet==3.0.4 -colorama==0.4.3 -contextlib2==0.6.0 -decorator==4.4.2 -distlib==0.3.0 -distro==1.4.0 -html5lib==1.0.1 -idna==2.8 -ipaddr==2.2.0 -lockfile==0.12.2 -msgpack==0.6.2 -multidict==5.1.0 -packaging==20.3 -pep517==0.8.2 -progress==1.5 +# This file was autogenerated by uv via the following command: +# uv pip compile --python-version 3.11 -o requirements.txt requirements.in +aiohappyeyeballs==2.7.1 + # via aiohttp +aiohttp==3.14.5 + # via -r requirements.in +aiosignal==1.4.0 + # via aiohttp +attrs==26.1.0 + # via aiohttp +frozenlist==1.8.0 + # via + # aiohttp + # aiosignal +idna==3.20 + # via yarl +multidict==7.2.1 + # via + # aiohttp + # yarl +propcache==0.5.4 + # via + # aiohttp + # yarl pyaes==1.6.1 -pyasn1==0.4.8 -pyparsing==2.4.6 -pytoml==0.1.21 -requests==2.22.0 -retrying==1.3.3 -rsa==4.7.1 -six==1.14.0 -Telethon==1.19.5 -typing-extensions==3.7.4.3 -urllib3==1.25.8 -validators==0.18.2 -webencodings==0.5.1 -yarl==1.6.3 + # via telethon +pyasn1==0.6.5 + # via rsa +rsa==4.9.1 + # via telethon +telethon==1.46.0 + # via -r requirements.in +typing-extensions==4.16.0 + # via + # aiohttp + # aiosignal +validators==0.36.0 + # via -r requirements.in +yarl==1.25.1 + # via aiohttp diff --git a/tests.py b/tests.py index 5306a1d..81e6c5a 100644 --- a/tests.py +++ b/tests.py @@ -49,6 +49,9 @@ service = load_service() class GreenOceanUpgradeTests(unittest.TestCase): + def test_python_311_or_newer_runtime(self): + self.assertGreaterEqual(sys.version_info[:2], (3, 11)) + def test_domain_and_url_inputs_keep_their_distinct_redirect_paths(self): self.assertTrue(validators.domain('example.com')) self.assertFalse(validators.url('example.com'))