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:
parent
c4d3a1098e
commit
96c533d47d
3
setup.py
3
setup.py
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user