Skip to content

Commit 24f98df

Browse files
committed
Simplify setup.py
1 parent 9e56dfc commit 24f98df

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,10 @@
22

33
"""Setup Script for DBUtils"""
44

5-
import warnings
6-
75
try:
86
from setuptools import setup
97
except ImportError:
108
from distutils.core import setup
11-
from sys import version_info
12-
13-
py_version = version_info[:2]
14-
if not (3, 6) <= py_version < (4, 0):
15-
raise ImportError(
16-
'Python {}.{} is not supported by DBUtils.'.format(*py_version))
17-
18-
warnings.filterwarnings('ignore', 'Unknown distribution option')
199

2010
__version__ = '3.1.0b1'
2111

@@ -60,6 +50,7 @@
6050
platforms=['any'],
6151
license='MIT License',
6252
packages=['dbutils'],
53+
python_requires='>3.7',
6354
extras_require={
6455
"pg": ["PyGreSQL>=5"]
6556
},

0 commit comments

Comments
 (0)