From 982d193cc24f2f83cde7d1d4ea07250877df0a49 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 12 Nov 2018 08:54:27 +0530 Subject: [PATCH] Restrict version requirement PyPI way --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 792e9b1..07db6f9 100644 --- a/setup.py +++ b/setup.py @@ -6,10 +6,6 @@ import sys from setuptools import setup, find_packages -if sys.version_info < (3, 4): - print('ERROR: Buku requires at least Python 3.4 to run.') - sys.exit(1) - shutil.copyfile('buku', 'buku.py') with open('buku.py', encoding='utf-8') as f: @@ -55,6 +51,7 @@ setup( author_email='engineerarun@gmail.com', url='https://github.com/jarun/Buku', license='GPLv3', + python_requires='>=3.4', platforms=['any'], py_modules=['buku'], install_requires=[