diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index d866110b..cf9f7659 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -19,8 +19,8 @@ jobs:
         with:
           python-version: ${{ matrix.python-version }}
 
-      - name: Install setuptools on python 3.12
-        if: ${{ matrix.python-version == '3.12' }}
+      - name: Install setuptools on python 3.12+
+        if: ${{ matrix.python-version >= '3.12' }}
         run: |
           pip install setuptools
 
diff --git a/setup.py b/setup.py
index 0328ade1..db123e85 100755
--- a/setup.py
+++ b/setup.py
@@ -2,18 +2,10 @@
 # vim: set sw=4 et:
 
 from setuptools import setup, find_packages
-from setuptools.command.test import test as TestCommand
-import glob
 
 __version__ = '1.7.4'
 
 
-class PyTest(TestCommand):
-    def finalize_options(self):
-        TestCommand.finalize_options(self)
-        # should work with setuptools <18, 18 18.5
-        self.test_suite = ' '
-
 setup(
     name='warcio',
     version=__version__,
@@ -35,7 +27,6 @@ def finalize_options(self):
         [console_scripts]
         warcio = warcio.cli:main
     """,
-    cmdclass={'test': PyTest},
     test_suite='',
     extras_require={
         'testing': [
@@ -52,13 +43,13 @@ def finalize_options(self):
         'Development Status :: 5 - Production/Stable',
         'Environment :: Web Environment',
         'License :: OSI Approved :: Apache Software License',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.4',
-        '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 :: 3.11',
+        'Programming Language :: Python :: 3.12',
         'Topic :: Software Development :: Libraries :: Python Modules',
         'Topic :: Utilities',
     ]