Browse Source

ref: remove out-of-date version checks (#65239)

<!-- Describe your PR here. -->
anthony sottile 1 year ago
parent
commit
09ceac9f11
2 changed files with 1 additions and 14 deletions
  1. 1 2
      setup.cfg
  2. 0 12
      setup.py

+ 1 - 2
setup.cfg

@@ -16,13 +16,12 @@ classifiers =
     License :: Other/Proprietary License
     Operating System :: POSIX :: Linux
     Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3 :: Only
     Topic :: Software Development
 
 [options]
 packages = find:
-python_requires = >=3.8
+python_requires = >=3.11
 include_package_data = True
 package_dir =
     =src

+ 0 - 12
setup.py

@@ -2,18 +2,6 @@
 
 import os
 import sys
-
-python_version = sys.version_info[:2]
-
-if python_version < (3, 8):
-    sys.exit(f"Error: Sentry requires at least Python 3.8 ({python_version})")
-if python_version != (3, 8):
-    import logging
-
-    logger = logging.getLogger()
-    logger.warning("A Python version different than 3.8 is being used (%s)", python_version)
-
-
 from distutils.command.build import build as BuildCommand
 
 from setuptools import setup