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 877f6b2430d28b46a6d8ab423a79ad4eae234d50
Author: Dave Andreoli <[email protected]>
AuthorDate: Fri Aug 29 22:54:56 2025 +0200
Modernize build: let setuptools manage the version
---
setup.py | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/setup.py b/setup.py
index 41916e4..4b13a1f 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,6 @@
import os
import sys
-import time
import platform
import subprocess
import unittest
@@ -18,11 +17,6 @@ EFL_MIN_VER = '1.28.0'
# basic utils
-def read_file(rel_path):
- with open(os.path.join(script_path, rel_path)) as fp:
- return fp.read()
-
-
def cmd_output(cmd):
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.wait()
@@ -35,24 +29,6 @@ def cmd_output(cmd):
return p.stdout.read().decode('utf-8').strip()
-def get_version(rel_path):
- for line in read_file(rel_path).splitlines():
- if line.startswith('__version__'):
- return line.split("'")[1]
- raise SystemExit('Unable to find version string.')
-
-
-# python-efl version from sources
-RELEASE = get_version('efl/__init__.py')
-
-# add git commit count for dev builds
-if RELEASE.split('.')[2] == '99':
- count = cmd_output('git rev-list --count HEAD') or '0'
- RELEASE += 'a' + count
-sys.stdout.write('Python-EFL: %s\n' % RELEASE)
-
-
-
# === use cython or pre-generated C files ===
USE_CYTHON = False
if os.getenv('DISABLE_CYTHON') is not None:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.