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 4138d688bd2825f829d57eba41ea6d6271b5f866
Author: Dave Andreoli <[email protected]>
AuthorDate: Sat Aug 30 12:03:37 2025 +0200
Modernize build: tests in Makefile
---
Makefile | 2 +-
setup.py | 31 +------------------------------
2 files changed, 2 insertions(+), 31 deletions(-)
diff --git a/Makefile b/Makefile
index 2687df5..10f8623 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ doc:
.PHONY: test
test:
- $(PY) setup.py test
+ $(PY) -m unittest discover tests/ --verbose
.PHONY: clean
diff --git a/setup.py b/setup.py
index 7312f5a..3032499 100755
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,8 @@
import os
import sys
-import platform
import subprocess
-import unittest
-from setuptools import setup, Extension, Command
+from setuptools import setup, Extension
from packaging.version import Version
script_path = os.path.dirname(os.path.abspath(__file__))
@@ -244,34 +242,7 @@ if {'build', 'build_ext', 'install', 'bdist', 'bdist_wheel', 'sdist'} & set(sys.
)
-# === setup.py test command ===
-class Test(Command):
- description = 'Run all the available unit tests using efl in build/'
- user_options = []
-
- def initialize_options(self):
- pass
-
- def finalize_options(self):
- pass
-
- def run(self):
- sys.path.insert(0, 'build/lib.%s-%s-%d.%d' % (
- platform.system().lower(), platform.machine(),
- sys.version_info[0], sys.version_info[1]))
- if 'efl' in sys.modules:
- del sys.modules['efl']
-
- loader = unittest.TestLoader()
- suite = loader.discover('./tests')
- runner = unittest.TextTestRunner(verbosity=1, buffer=True)
- runner.run(suite)
-
-
dist = setup(
- cmdclass={
- 'test': Test,
- },
packages=packages,
ext_modules=ext_modules,
py_modules=py_modules,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.