Skip to content

Commit 7469bbb

Browse files
committed
Use python_requires in setup.py
1 parent 1283bd7 commit 7469bbb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
import os
88
import platform
99

10-
if sys.version_info < (3, 5):
11-
raise RuntimeError('Only Python versions >= 3.5 are supported')
12-
1310
from pkg_resources import parse_version
1411
from setuptools import setup, find_packages, Extension
1512
from setuptools.command.build_ext import build_ext
@@ -164,10 +161,10 @@ def build_extension(self, ext):
164161
'pyparsing',
165162
'jinja2>=2.7',
166163
'py-cpuinfo;platform_system=="Windows"',
167-
'setuptools>=24'
164+
'setuptools>=24.2'
168165
],
169166
setup_requires=['numpy>=1.10',
170-
'setuptools>=24'
167+
'setuptools>=24.2'
171168
],
172169
cmdclass={'build_ext': optional_build_ext},
173170
provides=['brian2'],
@@ -194,5 +191,6 @@ def build_extension(self, ext):
194191
'Programming Language :: Python',
195192
'Programming Language :: Python :: 3',
196193
'Topic :: Scientific/Engineering :: Bio-Informatics'
197-
]
194+
],
195+
python_requires='>=3.5'
198196
)

0 commit comments

Comments
 (0)