This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository python-efl.

View the commit online.

commit a237007011967db05cab42bda4d71fb974dd2a8c
Author: Dave Andreoli <[email protected]>
AuthorDate: Fri Aug 29 22:35:38 2025 +0200

    Modernize build: let build check python version
---
 pyproject.toml |  1 +
 setup.py       | 16 ----------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index c8023a0..285cb3e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,6 +6,7 @@ build-backend = 'setuptools.build_meta'
 [project]
 dynamic = ['version']
 name = 'python-efl'
+requires-python = '>= 3.6'
 description = 'Python bindings for Enlightenment Foundation Libraries'
 readme = 'README.md'
 license = 'LGPL-3.0-only'
diff --git a/setup.py b/setup.py
index ad8cf99..41916e4 100755
--- a/setup.py
+++ b/setup.py
@@ -52,22 +52,6 @@ if RELEASE.split('.')[2] == '99':
 sys.stdout.write('Python-EFL: %s\n' % RELEASE)
 
 
-# === check python version ===
-sys.stdout.write('Checking for Python: ')
-py_ver = sys.version_info
-py_ver = '%s.%s.%s' % (py_ver[0], py_ver[1], py_ver[2])
-if sys.hexversion < 0x020700f0:
-    raise SystemExit('too old. Found: %s  Need at least 2.7.0' % py_ver)
-sys.stdout.write('OK, found %s\n' % py_ver)
-if sys.version_info.major == 2:
-    print(
-        '\n'
-        'WARNING: Python 2 support is deprecated and will be removed soon.\n'
-        '         You should really upgrade to python 3, NOW !\n'
-        '         ...you have been warned, continue at your own risk.\n'
-    )
-    time.sleep(5)  # you really need to read the above message :P
-
 
 # === use cython or pre-generated C files ===
 USE_CYTHON = False

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to