diff --git a/bot/setup.py b/bot/setup.py
index 5d25045e8fad4a2d5053065b748e3a8e087c4db1..0acc42bc097d3b2625973d12fe44b7de1bfc8807 100755
--- a/bot/setup.py
+++ b/bot/setup.py
@@ -106,7 +106,7 @@ setup(
     install_requires=[
         'appdirs>=1.4.4',
         'celery~=5.3',
-        'RBTools~=4.0',
+        'RBTools>=4.0,<6',
 
         # We unconditionally include these plugins to ensure they're present.
         'flake8-json>=21.1',
@@ -114,24 +114,15 @@ setup(
     extras_require={
         'all': [
             'cpplint>=1.6',
-            'doc8>=0.8,<0.8.999; python_version == "2.7"',
-            'doc8>=0.10.1; python_version >= "3.6"',
-            'flake8>=3.3.0,<3.999; python_version == "2.7"',
-            'flake8>=4.0; python_version >= "3.6"',
+            'doc8>=0.10.1',
+            'flake8>=4.0',
             'pycodestyle>=2.8',
-            'pydocstyle>=3.0,<=3.999; python_version == "2.7"',
-            'pydocstyle>=6.1.1; python_version >= "3.6"',
+            'pydocstyle>=6.1.1',
             'pyflakes>=2.4',
         ],
     },
     python_requires=','.join([
-        '>=2.7',
-        '!=3.0.*',
-        '!=3.1.*',
-        '!=3.2.*',
-        '!=3.3.*',
-        '!=3.4.*',
-        '!=3.5.*',
+        '>=3.8',
     ]),
     cmdclass={
         'develop': DevelopCommand,
@@ -144,14 +135,12 @@ setup(
         'License :: OSI Approved :: MIT License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        '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 :: 3.11',
+        'Programming Language :: Python :: 3.12',
         'Topic :: Software Development',
         'Topic :: Software Development :: Quality Assurance',
     ],
diff --git a/extension/setup.py b/extension/setup.py
index 56d75934dba8c878c0919e9895258f31d1a86460..ab7f08180013a8475d1f63fc29a7b73cb644a188 100755
--- a/extension/setup.py
+++ b/extension/setup.py
@@ -98,14 +98,12 @@ setup(
         'License :: OSI Approved :: MIT License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        '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 :: 3.11',
+        'Programming Language :: Python :: 3.12',
         'Topic :: Software Development',
         'Topic :: Software Development :: Quality Assurance',
     ],
