1
0
mirror of https://git.envs.net/envs/twtxt.git synced 2024-09-16 14:24:59 +00:00

Remove version check from setup.py, so older Python versions can parse it.

This commit is contained in:
buckket 2016-03-21 20:11:36 +01:00
parent c4d3a1098e
commit 96c533d47d

View File

@ -8,9 +8,6 @@ from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
if sys.version_info < (3, 4, 1):
raise RuntimeError("twtxt requires Python 3.4.1+")
with open('twtxt/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))